Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 2023 09:55:23 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a494fa741d57 - main - devel/libpdel: Fix build with llvm16
Message-ID:  <202308080955.3789tNqm075231@gitrepo.freebsd.org>

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

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

commit a494fa741d57fdebce9868eed7726a82a000dc83
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-08 07:54:26 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-08 09:55:13 +0000

    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
---
 devel/libpdel/Makefile                 |  1 +
 devel/libpdel/files/patch-io_ssl__fp.c | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

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;
+ }
+-



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