From 36ef9ab669049f8e181762430099a7ed8c2661db Mon Sep 17 00:00:00 2001 From: Bernard Spil Date: Tue, 3 Apr 2018 12:50:30 +0000 Subject: [PATCH] dns/powerdns-recursor: Fix build with LibreSSL 2.7 - LibreSSL 2.7 implements OpenSSL 1.1 API PR: 227183 Approved by: Ralf van der Enden (maintainer) --- dns/powerdns-recursor/files/patch-opensslsigners.cc | 12 ++++++++++++ dns/powerdns-recursor40/patch-opensslsigners.cc | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 dns/powerdns-recursor/files/patch-opensslsigners.cc create mode 100644 dns/powerdns-recursor40/patch-opensslsigners.cc diff --git a/dns/powerdns-recursor/files/patch-opensslsigners.cc b/dns/powerdns-recursor/files/patch-opensslsigners.cc new file mode 100644 index 000000000000..be96d5f57172 --- /dev/null +++ b/dns/powerdns-recursor/files/patch-opensslsigners.cc @@ -0,0 +1,12 @@ +--- opensslsigners.cc.orig 2018-01-22 13:39:07 UTC ++++ opensslsigners.cc +@@ -33,7 +33,8 @@ + #include "opensslsigners.hh" + #include "dnssecinfra.hh" + +-#if (OPENSSL_VERSION_NUMBER < 0x1010000fL || defined LIBRESSL_VERSION_NUMBER) ++#if (OPENSSL_VERSION_NUMBER < 0x1010000fL || \ ++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)) + /* OpenSSL < 1.1.0 needs support for threading/locking in the calling application. */ + static pthread_mutex_t *openssllocks; + diff --git a/dns/powerdns-recursor40/patch-opensslsigners.cc b/dns/powerdns-recursor40/patch-opensslsigners.cc new file mode 100644 index 000000000000..be96d5f57172 --- /dev/null +++ b/dns/powerdns-recursor40/patch-opensslsigners.cc @@ -0,0 +1,12 @@ +--- opensslsigners.cc.orig 2018-01-22 13:39:07 UTC ++++ opensslsigners.cc +@@ -33,7 +33,8 @@ + #include "opensslsigners.hh" + #include "dnssecinfra.hh" + +-#if (OPENSSL_VERSION_NUMBER < 0x1010000fL || defined LIBRESSL_VERSION_NUMBER) ++#if (OPENSSL_VERSION_NUMBER < 0x1010000fL || \ ++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)) + /* OpenSSL < 1.1.0 needs support for threading/locking in the calling application. */ + static pthread_mutex_t *openssllocks; +