summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-18 04:53:50 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-18 04:57:11 +0200
commitfe2bbe58908f4c3577ba2ffae0ded22db6e804ec (patch)
tree5d6db3193dcb457fc8766b44f64aaf71cf20f157 /news
parentshells/ast-ksh: Mark BROKEN on 14 (diff)
news/nzbget: Fix build with openssl3
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'news')
-rw-r--r--news/nzbget/Makefile2
-rw-r--r--news/nzbget/files/patch-configure.ac4
-rw-r--r--news/nzbget/files/patch-daemon_connect_TlsSocket.cpp11
3 files changed, 14 insertions, 3 deletions
diff --git a/news/nzbget/Makefile b/news/nzbget/Makefile
index ea5a08273a4c..20807b0566df 100644
--- a/news/nzbget/Makefile
+++ b/news/nzbget/Makefile
@@ -41,7 +41,7 @@ CONFIGURE_ARGS+= --disable-sigchld-handler
.endif
.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
-CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L
+CXXFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L
.endif
post-install:
diff --git a/news/nzbget/files/patch-configure.ac b/news/nzbget/files/patch-configure.ac
index 727d6b320cfa..f23d7de16403 100644
--- a/news/nzbget/files/patch-configure.ac
+++ b/news/nzbget/files/patch-configure.ac
@@ -1,4 +1,4 @@
---- configure.ac.orig 2018-06-06 19:34:34 UTC
+--- configure.ac.orig 2023-08-18 02:50:39 UTC
+++ configure.ac
@@ -37,7 +37,7 @@ dnl Check for programs.
dnl
@@ -9,7 +9,7 @@
AC_PROG_INSTALL
-@@ -553,7 +553,7 @@ dnl
+@@ -554,7 +554,7 @@ dnl
AC_MSG_CHECKING(whether to use SIMD-optimized routines)
USE_SIMD=no
case $host_cpu in
diff --git a/news/nzbget/files/patch-daemon_connect_TlsSocket.cpp b/news/nzbget/files/patch-daemon_connect_TlsSocket.cpp
new file mode 100644
index 000000000000..ac3bb6bb6199
--- /dev/null
+++ b/news/nzbget/files/patch-daemon_connect_TlsSocket.cpp
@@ -0,0 +1,11 @@
+--- daemon/connect/TlsSocket.cpp.orig 2023-08-18 02:50:58 UTC
++++ daemon/connect/TlsSocket.cpp
+@@ -188,7 +188,7 @@ void TlsSocket::Final()
+ #endif /* HAVE_LIBGNUTLS */
+
+ #ifdef HAVE_OPENSSL
+-#ifndef LIBRESSL_VERSION_NUMBER
++#if OPENSSL_VERSION_NUMBER < 0x30000000L && ! defined (LIBRESSL_VERSION_NUMBER)
+ FIPS_mode_set(0);
+ #endif
+ #ifdef NEED_CRYPTO_LOCKING