From 845dbbd80017be8e2d742aa24b5323c9fbc3acf6 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 3 Mar 2020 13:51:40 +0100 Subject: [PATCH] Fix build with GCC 10 (#1799286) --- dnsdist.spec | 8 ++++++-- fix-build-with-gcc10.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 fix-build-with-gcc10.patch diff --git a/dnsdist.spec b/dnsdist.spec index e14a76d..eaa4097 100644 --- a/dnsdist.spec +++ b/dnsdist.spec @@ -4,11 +4,12 @@ Name: dnsdist Version: 1.4.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Highly DNS-, DoS- and abuse-aware loadbalancer License: GPLv2 URL: https://dnsdist.org Source0: https://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2 +Patch0: fix-build-with-gcc10.patch BuildRequires: boost-devel BuildRequires: fstrm-devel @@ -47,7 +48,7 @@ legitimate users while shunting or blocking abusive traffic. %prep -%autosetup +%autosetup -p1 # run as dnsdist user sed -i '/^ExecStart/ s/dnsdist/dnsdist -u dnsdist -g dnsdist/' dnsdist.service.in @@ -115,6 +116,9 @@ exit 0 %changelog +* Tue Mar 03 2020 Ruben Kerkhof - 1.4.0-4 +- Fix build with GCC 10 (#1799286) + * Tue Jan 28 2020 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/fix-build-with-gcc10.patch b/fix-build-with-gcc10.patch new file mode 100644 index 0000000..a288649 --- /dev/null +++ b/fix-build-with-gcc10.patch @@ -0,0 +1,12 @@ +diff -up dnsdist-1.4.0/ext/yahttp/yahttp/reqresp.cpp.orig dnsdist-1.4.0/ext/yahttp/yahttp/reqresp.cpp +--- dnsdist-1.4.0/ext/yahttp/yahttp/reqresp.cpp.orig 2020-02-24 11:00:09.002212621 +0100 ++++ dnsdist-1.4.0/ext/yahttp/yahttp/reqresp.cpp 2020-02-24 11:13:04.583572369 +0100 +@@ -2,6 +2,8 @@ + + namespace YaHTTP { + ++ template class AsyncLoader; ++ + bool isspace(char c) { + return std::isspace(c) != 0; + }