void-packages/srcpkgs/xbps/patches/openssl3.patch

47 lines
1.4 KiB
Diff

From db1766986c4389eb7e17c0e0076971b711617ef9 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Thu, 16 Apr 2020 14:57:18 +0200
Subject: [PATCH] configure: accept any openssl version.
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index da8ae75fa..383bc927b 100755
--- a/configure
+++ b/configure
@@ -704,7 +704,7 @@ fi
# libssl with pkg-config support is required.
#
printf "Checking for libssl via pkg-config ... "
-if pkg-config --exists 'libssl < 1.2' && ! pkg-config --exists libtls ; then
+if pkg-config --exists 'libssl' && ! pkg-config --exists libtls ; then
echo "found OpenSSL version $(pkg-config --modversion libssl)."
elif pkg-config --exists libssl libtls; then
echo "found LibreSSL version $(pkg-config --modversion libssl)."
---
From a65013e7370479243de62d56b44eb08d6bae943d Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 8 Aug 2023 01:32:17 -0400
Subject: [PATCH] configure: workaround for openssl3 compat
---
configure | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure b/configure
index 303c90a1..c7d78bf1 100755
--- a/configure
+++ b/configure
@@ -368,6 +368,8 @@ fi
if [ "$CC" = "tcc" ]; then
echo "CFLAGS += -Wno-error" >>$CONFIG_MK
fi
+# openssl 3 compatibility
+echo "CFLAGS += -Wno-error=deprecated-declarations">>$CONFIG_MK
# libfetch
echo "CPPFLAGS += -I\$(TOPDIR)/lib/fetch" >>$CONFIG_MK