aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2024-04-02 20:28:48 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2024-04-02 23:23:31 +0000
commitdd015eeb653cb73ab694196b5ce20d0a03fd8c16 (patch)
tree9515b043bab17377761d0ca4c0392d3eb222a654
parent9efa900590948cb91abb0c3fe886a7d742fed5fb (diff)
downloadports-dd015eeb653cb73ab694196b5ce20d0a03fd8c16.tar.gz
ports-dd015eeb653cb73ab694196b5ce20d0a03fd8c16.zip
security/gnutls: Fix zlib support
PR: 278104
-rw-r--r--security/gnutls/Makefile2
-rw-r--r--security/gnutls/files/patch-lib_compress.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/security/gnutls/Makefile b/security/gnutls/Makefile
index 2151187cb697..c8f289e86ada 100644
--- a/security/gnutls/Makefile
+++ b/security/gnutls/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gnutls
DISTVERSION= 3.8.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security net
MASTER_SITES= GNUPG/${PORTNAME}/v${DISTVERSION:R}
diff --git a/security/gnutls/files/patch-lib_compress.c b/security/gnutls/files/patch-lib_compress.c
new file mode 100644
index 000000000000..dcd4c6379c88
--- /dev/null
+++ b/security/gnutls/files/patch-lib_compress.c
@@ -0,0 +1,11 @@
+--- lib/compress.c.orig 2024-01-23 08:52:59 UTC
++++ lib/compress.c
+@@ -72,7 +72,7 @@ static int zlib_init(void)
+ #ifndef _WIN32
+ if (_zlib_handle != NULL)
+ return 0;
+- if ((_zlib_handle = dlopen("libz.so.1", RTLD_NOW | RTLD_GLOBAL)) ==
++ if ((_zlib_handle = dlopen("libz.so.6", RTLD_NOW | RTLD_GLOBAL)) ==
+ NULL)
+ goto error;
+ if ((_gnutls_zlib_compressBound =