From 69b0a891c39f10f41e3b8ed8430add43758632dc Mon Sep 17 00:00:00 2001 From: Morten Stevens Date: Mon, 27 Jan 2020 16:48:58 +0100 Subject: [PATCH] Fix build with GCC 10.0 --- pdns-gcc10.patch | 12 ++++++++++++ pdns.spec | 9 +++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 pdns-gcc10.patch diff --git a/pdns-gcc10.patch b/pdns-gcc10.patch new file mode 100644 index 0000000..00c8eeb --- /dev/null +++ b/pdns-gcc10.patch @@ -0,0 +1,12 @@ +diff -Nrup a/ext/yahttp/yahttp/reqresp.cpp b/ext/yahttp/yahttp/reqresp.cpp +--- a/ext/yahttp/yahttp/reqresp.cpp 2019-02-07 12:24:13.000000000 -0700 ++++ b/ext/yahttp/yahttp/reqresp.cpp 2019-11-06 19:40:29.039325844 -0700 +@@ -2,6 +2,8 @@ + + namespace YaHTTP { + ++ template class AsyncLoader; ++ + bool isspace(char c) { + return std::isspace(c) != 0; + } diff --git a/pdns.spec b/pdns.spec index 639cce7..e4a5d4d 100644 --- a/pdns.spec +++ b/pdns.spec @@ -3,12 +3,13 @@ Name: pdns Version: 4.2.1 -Release: 2%{?dist} +Release: 3%{?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-disable-secpoll.patch +Patch1: pdns-gcc10.patch Requires(pre): shadow-utils Requires(post): systemd-units @@ -132,7 +133,8 @@ This package contains the ixfrdist program. %prep %setup -q -%patch0 -p1 -b .disable-secpoll +%patch0 -p1 +%patch1 -p1 %build export CPPFLAGS="-DLDAP_DEPRECATED" @@ -306,6 +308,9 @@ exit 0 %{_unitdir}/ixfrdist@.service %changelog +* Mon Jan 27 2020 Morten Stevens - 4.2.1-3 +- Fix build with GCC 10.0 + * Thu Dec 19 2019 Orion Poplawski - 4.2.1-2 - Rebuild for protobuf 3.11