Fix build with GCC 10 (#1799286)

This commit is contained in:
Ruben Kerkhof 2020-03-03 13:51:40 +01:00
parent adcce25f08
commit 845dbbd800
2 changed files with 18 additions and 2 deletions

View File

@ -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 <ruben@rubenkerkhof.com> - 1.4.0-4
- Fix build with GCC 10 (#1799286)
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View File

@ -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<Request>;
+
bool isspace(char c) {
return std::isspace(c) != 0;
}