git: 2e75dce3261c - main - sysutils/vector: Mark BROKEN with openssl3

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 08 Aug 2023 01:49:09 UTC
The branch main has been updated by bofh:

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

commit 2e75dce3261c3a0e9de1a13fc4e00d0a3f8fe3ad
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-08 00:43:32 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-08 01:48:38 +0000

    sysutils/vector: Mark BROKEN with openssl3
    
    OpenSSL 3 has been merged into OSVERSION 1400092 so also mark BROKEN_SSL
    for 14 and OSVERSION 1400092 onwards.
    
    Sponsored by:   The FreeBSD Foundation
---
 sysutils/vector/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/sysutils/vector/Makefile b/sysutils/vector/Makefile
index c39894e05658..cd22d7e29f23 100644
--- a/sysutils/vector/Makefile
+++ b/sysutils/vector/Makefile
@@ -18,8 +18,6 @@ LIB_DEPENDS=	libonig.so:devel/oniguruma \
 		librdkafka.so:net/librdkafka
 
 USES=		cargo lua:53 ssl
-BROKEN_SSL=	openssl30 openssl31
-BROKEN_SSL_REASON=	Fails to detect OpenSSL 3.0.0 and later
 USE_GITHUB=	yes
 GH_ACCOUNT=	timberio
 GH_TUPLE=	bytecodealliance:wasmtime:3de418630a263ca214931d69f796879be50d4f72:wasmtime \
@@ -564,6 +562,13 @@ CARGO_CRATES=	adler-0.2.3 \
 # this crate's panic strategy `abort`
 LTO_UNSAFE=	yes
 
+.include <bsd.port.options.mk>
+
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
+BROKEN_SSL=	base openssl30 openssl31
+BROKEN_SSL_REASON=	Fails to detect OpenSSL 3.0.0 and later
+.endif
+
 post-extract:
 	${RMDIR} ${WRKSRC_wasmtime}/crates/wasi-common/WASI
 	${MV} ${WRKSRC_wasi_wasmtime} ${WRKSRC_wasmtime}/crates/wasi-common/WASI