From 5b120f55fdb44e5884d48908c74c4d749b88176a Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 29 Mar 2020 20:01:04 -0700 Subject: [PATCH] pdns: fix compilation without deprecated OpenSSL APIs The bn.h header is missing. Signed-off-by: Rosen Penev --- net/pdns/Makefile | 2 +- net/pdns/patches/200-openssl-deprecated.patch | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 net/pdns/patches/200-openssl-deprecated.patch diff --git a/net/pdns/Makefile b/net/pdns/Makefile index aee3f2a3d8..fe80565e8f 100644 --- a/net/pdns/Makefile +++ b/net/pdns/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pdns PKG_VERSION:=4.2.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/ diff --git a/net/pdns/patches/200-openssl-deprecated.patch b/net/pdns/patches/200-openssl-deprecated.patch new file mode 100644 index 0000000000..cc6544b894 --- /dev/null +++ b/net/pdns/patches/200-openssl-deprecated.patch @@ -0,0 +1,20 @@ +--- a/pdns/opensslsigners.cc ++++ b/pdns/opensslsigners.cc +@@ -29,6 +29,7 @@ + #if defined(HAVE_LIBCRYPTO_ED25519) || defined(HAVE_LIBCRYPTO_ED448) + #include + #endif ++#include + #include + #include + #include +--- a/pdns/pkcs11signers.cc ++++ b/pdns/pkcs11signers.cc +@@ -15,6 +15,7 @@ + #include "pdns/lock.hh" + + #ifdef HAVE_LIBCRYPTO_ECDSA ++#include + #include + #endif +