Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Aug 2022 14:20:46 GMT
From:      Bernard Spil <brnrd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 56ddef0a5f41 - main - devel/libevent: Fix build with LibreSSL 3.5
Message-ID:  <202208071420.277EKk7r055533@gitrepo.freebsd.org>

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

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

commit 56ddef0a5f41a11fbbafd3507b9b1cfdf98780be
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2022-08-07 14:19:59 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2022-08-07 14:19:59 +0000

    devel/libevent: Fix build with LibreSSL 3.5
    
    Approved by:    kbowling (maintainer)
---
 devel/libevent/files/patch-openssl-compat.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/devel/libevent/files/patch-openssl-compat.h b/devel/libevent/files/patch-openssl-compat.h
new file mode 100644
index 000000000000..00fc85fde80e
--- /dev/null
+++ b/devel/libevent/files/patch-openssl-compat.h
@@ -0,0 +1,16 @@
+We have BIO_get_init() now.
+https://github.com/libevent/libevent/pull/1227
+
+Index: openssl-compat.h
+--- openssl-compat.h.orig
++++ openssl-compat.h
+@@ -40,7 +40,8 @@ static inline BIO_METHOD *BIO_meth_new(int type, const
+ #endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
+ 	(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) */
+ 
+-#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L
++#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L && \
++	LIBRESSL_VERSION_NUMBER < 0x30500000L
+ #define BIO_get_init(b) (b)->init
+ #endif
+ 



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