Add upstream patch to fix build with openssl 1.1.0

This commit is contained in:
Orion Poplawski 2016-11-19 11:45:07 -07:00
parent ad628291d1
commit 04edbfdef8
2 changed files with 18 additions and 0 deletions

11
pdns-openssl.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up pdns-4.0.1/pdns/dns_random.cc.openssl pdns-4.0.1/pdns/dns_random.cc
--- pdns-4.0.1/pdns/dns_random.cc.openssl 2016-11-19 11:35:33.865736519 -0700
+++ pdns-4.0.1/pdns/dns_random.cc 2016-11-19 11:36:13.357295050 -0700
@@ -2,6 +2,7 @@
#include "config.h"
#endif
#include <openssl/aes.h>
+#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER > 0x1000100fL
// Older OpenSSL does not have CRYPTO_ctr128_encrypt. Before 1.1.0 the header
// file did not have the necessary extern "C" wrapper. In 1.1.0, AES_ctr128_encrypt

View File

@ -11,6 +11,9 @@ URL: http://powerdns.com
Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
Source1: pdns.service
Patch0: pdns-disable-secpoll.patch
# Fix build with openssl 1.1.0
# https://github.com/PowerDNS/pdns/commit/e6fc073faf3b1d9b4da301821da40dff33186057
Patch1: pdns-openssl.patch
Requires(pre): shadow-utils
Requires(post): systemd-units
@ -151,6 +154,7 @@ This package contains the TinyDNS backend for %{name}
%prep
%setup -q
%patch0 -p1 -b .disable-secpoll
%patch1 -p1 -b .openssl
%build
export CPPFLAGS="-DLDAP_DEPRECATED"
@ -312,6 +316,9 @@ exit 0
%{_libdir}/%{name}/libtinydnsbackend.so
%changelog
* Sat Nov 19 2016 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-3
- Add upstream patch to fix build with openssl 1.1.0
* Sat Nov 19 2016 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-3
- Rebuild for protobuf 3.1.0