aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-08 07:54:26 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-08 09:55:13 +0000
commita494fa741d57fdebce9868eed7726a82a000dc83 (patch)
tree16a9364391d3dfb88d043dd5f2df99fffbb02f02
parent89afc91dd9695a80acb6df02c1df46350c1d2180 (diff)
downloadports-a494fa741d57fdebce9868eed7726a82a000dc83.tar.gz
ports-a494fa741d57fdebce9868eed7726a82a000dc83.zip
devel/libpdel: Fix build with llvm16
This actually fixes the build of net/sl2tps. Although ERR_GET_FUNC has ben deprecated in OpenSSL3 but it still manages to build as it does not throw an error however the consumers faces build failures. Sponsored by: The FreeBSD Foundation
-rw-r--r--devel/libpdel/Makefile1
-rw-r--r--devel/libpdel/files/patch-io_ssl__fp.c18
2 files changed, 19 insertions, 0 deletions
diff --git a/devel/libpdel/Makefile b/devel/libpdel/Makefile
index 0501f2ab2515..f52b875424d5 100644
--- a/devel/libpdel/Makefile
+++ b/devel/libpdel/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libpdel
PORTVERSION= 0.6.1
+PORTREVISION= 1
CATEGORIES= devel net www
MASTER_SITES= SF/libpdel/libpdel-combined/${PORTVERSION}/
diff --git a/devel/libpdel/files/patch-io_ssl__fp.c b/devel/libpdel/files/patch-io_ssl__fp.c
new file mode 100644
index 000000000000..64dd7f5bcc60
--- /dev/null
+++ b/devel/libpdel/files/patch-io_ssl__fp.c
@@ -0,0 +1,18 @@
+--- io/ssl_fp.c.orig 2023-08-08 07:48:05 UTC
++++ io/ssl_fp.c
+@@ -361,8 +361,10 @@ ssl_log(ssl_logger_t *logger, void *logarg)
+ strlcat(buf, t, sizeof(buf));
+ strlcat(buf, ": ", sizeof(buf));
+ } else {
++#if OPENSSL_VERSION_NUMBER < 0x30000000L
+ snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
+ "func=%u: ", ERR_GET_FUNC(e));
++#endif
+ }
+
+ /* Add reason */
+@@ -388,4 +390,3 @@ null_logger(void *arg, int sev, const char *fmt, ...)
+ {
+ return;
+ }
+-