Fix missing include for gcc13

This commit is contained in:
Morten Stevens 2023-01-23 15:15:41 +01:00
parent b213e1183e
commit 5c76e4f542
2 changed files with 27 additions and 2 deletions

21
pdns-gcc13.patch Normal file
View File

@ -0,0 +1,21 @@
From d8b4ea24dc5dbe7c53c24bfffba24bcae7f58e02 Mon Sep 17 00:00:00 2001
From: Peter van Dijk <peter.van.dijk@powerdns.com>
Date: Mon, 23 Jan 2023 14:54:09 +0100
Subject: [PATCH] lock.hh: include <stdexcept>
---
pdns/lock.hh | 1 +
1 file changed, 1 insertion(+)
diff --git a/pdns/lock.hh b/pdns/lock.hh
index e8bd82988da..a08951a266d 100644
--- a/pdns/lock.hh
+++ b/pdns/lock.hh
@@ -22,6 +22,7 @@
#pragma once
#include <mutex>
#include <shared_mutex>
+#include <stdexcept>
/*
This file provides several features around locks:

View File

@ -3,11 +3,12 @@
Name: pdns
Version: 4.7.2
Release: 3%{?dist}
Release: 4%{?dist}
Summary: A modern, advanced and high performance authoritative-only nameserver
License: GPLv2
URL: http://powerdns.com
Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
Patch0: pdns-gcc13.patch
ExcludeArch: %{arm} %{ix86}
Requires(pre): shadow-utils
@ -138,7 +139,7 @@ BuildRequires: yaml-cpp-devel
This package contains the ixfrdist program.
%prep
%autosetup
%autosetup -p1
%build
export CPPFLAGS="-DLDAP_DEPRECATED"
@ -320,6 +321,9 @@ exit 0
%{_unitdir}/ixfrdist@.service
%changelog
* Mon Jan 23 2023 Morten Stevens <mstevens@fedoraproject.org> - 4.7.2-4
- Fix missing include for gcc13
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild