Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2023 11:41:57 GMT
From:      =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6b6f60bbc3b9 - main - dns/powerdns-recursor: fix build on 14.0-CURRENT (+ OpenSSL 3.0.9)
Message-ID:  <202306291141.35TBfvmP020595@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6b6f60bbc3b9870016650d3feab9a39e8c02d1c0

commit 6b6f60bbc3b9870016650d3feab9a39e8c02d1c0
Author:     Ralf van der Enden <tremere@cainites.net>
AuthorDate: 2023-06-28 10:04:57 +0000
Commit:     Fernando ApesteguĂ­a <fernape@FreeBSD.org>
CommitDate: 2023-06-29 11:41:44 +0000

    dns/powerdns-recursor: fix build on 14.0-CURRENT (+ OpenSSL 3.0.9)
    
    This fixes the way OpenSSL is detected (it now uses a non-deprecated function),
    which is not available anymore on 14.0-CURRENT. Doesn't change anything for
    previous versions of FreeBSD.
    
    PR:             272232
    Reported by:    tremere@cainites.net (maintainer)
---
 .../files/patch-m4_pdns__check__libcrypto.m4                  | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/dns/powerdns-recursor/files/patch-m4_pdns__check__libcrypto.m4 b/dns/powerdns-recursor/files/patch-m4_pdns__check__libcrypto.m4
index 7d4a832a79e6..7348da12d752 100644
--- a/dns/powerdns-recursor/files/patch-m4_pdns__check__libcrypto.m4
+++ b/dns/powerdns-recursor/files/patch-m4_pdns__check__libcrypto.m4
@@ -1,4 +1,4 @@
---- m4/pdns_check_libcrypto.m4.orig	2020-11-16 16:30:04 UTC
+--- m4/pdns_check_libcrypto.m4.orig	2023-03-27 15:08:37 UTC
 +++ m4/pdns_check_libcrypto.m4
 @@ -75,8 +75,10 @@ AC_DEFUN([PDNS_CHECK_LIBCRYPTO], [
          for ssldir in $ssldirs; do
@@ -13,3 +13,12 @@
                  LIBCRYPTO_LIBS="-lcrypto"
                  found=true
                  AC_MSG_RESULT([yes])
+@@ -108,7 +110,7 @@ AC_DEFUN([PDNS_CHECK_LIBCRYPTO], [
+     LIBS="$LIBCRYPTO_LIBS $LIBS"
+     CPPFLAGS="$LIBCRYPTO_INCLUDES $CPPFLAGS"
+     AC_LINK_IFELSE(
+-        [AC_LANG_PROGRAM([#include <openssl/crypto.h>], [ERR_load_CRYPTO_strings()])],
++        [AC_LANG_PROGRAM([#include <openssl/bn.h>], [BN_new()])],
+         [
+             AC_MSG_RESULT([yes])
+             AC_CHECK_FUNCS([RAND_bytes RAND_pseudo_bytes CRYPTO_memcmp OPENSSL_init_crypto EVP_MD_CTX_new EVP_MD_CTX_free RSA_get0_key])



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306291141.35TBfvmP020595>