[packages/pdns] upstream patch for fixing build with gcc 11

atler atler at pld-linux.org
Mon Aug 16 21:17:02 CEST 2021


commit bc3052e2da457a37ac7d406bba0824f2d49da806
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Aug 16 21:16:38 2021 +0200

    upstream patch for fixing build with gcc 11

 gcc11.patch | 18 ++++++++++++++++++
 pdns.spec   |  2 ++
 2 files changed, 20 insertions(+)
---
diff --git a/pdns.spec b/pdns.spec
index ac775ac..a132811 100644
--- a/pdns.spec
+++ b/pdns.spec
@@ -19,6 +19,7 @@ Source4:	%{name}.conf
 Source5:	%{name}.sysconfig
 Patch0:		%{name}-boost.patch
 Patch1:		%{name}-openldap-2.3.patch
+Patch2:		gcc11.patch
 URL:		https://www.powerdns.com/
 BuildRequires:	autoconf >= 2.61
 BuildRequires:	automake >= 1:1.11
@@ -140,6 +141,7 @@ LDAP.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 cp -p %{SOURCE1} .
 cp -p %{SOURCE2} .
 cp -p %{SOURCE4} .
diff --git a/gcc11.patch b/gcc11.patch
new file mode 100644
index 0000000..861b74d
--- /dev/null
+++ b/gcc11.patch
@@ -0,0 +1,18 @@
+From 2c010a9f0ff0e292d31b949065e1d5c245dc084e Mon Sep 17 00:00:00 2001
+From: Morten Stevens <mstevens at fedoraproject.org>
+Date: Mon, 21 Dec 2020 12:11:01 +0100
+Subject: [PATCH] Fix missing #include for gcc-11
+
+---
+ pdns/lua-record.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc
+index 682759432ad..8d51c7937ed 100644
+--- a/pdns/lua-record.cc
++++ b/pdns/lua-record.cc
+@@ -1,3 +1,4 @@
++#include <thread>
+ #include <future>
+ #include <mutex>
+ #include <boost/format.hpp>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pdns.git/commitdiff/bc3052e2da457a37ac7d406bba0824f2d49da806



More information about the pld-cvs-commit mailing list