Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Aug 2023 23:52:42 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: 8967ed2438a7 - main - devel/kore: Fix build with llvm16 and openssl3
Message-ID:  <202308062352.376NqgWP075529@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=8967ed2438a73449c1688c27f177f17b1776460f

commit 8967ed2438a73449c1688c27f177f17b1776460f
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 23:29:55 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 23:52:28 +0000

    devel/kore: Fix build with llvm16 and openssl3
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 devel/kore/Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/devel/kore/Makefile b/devel/kore/Makefile
index b576e1c075cf..6b5cd35b7d01 100644
--- a/devel/kore/Makefile
+++ b/devel/kore/Makefile
@@ -51,6 +51,16 @@ TLS_MAKE_ARGS_OFF=	NOTLS=1
 
 .include <bsd.port.options.mk>
 
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
+CFLAGS+=	-DOPENSSL_API_COMPAT=0x10100000L
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CFLAGS+=	-Wno-error=incompatible-pointer-types-discards-qualifiers
+.endif
+
 post-patch:
 .if ${LOCALBASE} != /usr/local
 	@${REINPLACE_CMD} 's|/usr/local/|${LOCALBASE}/|g' \
@@ -67,4 +77,4 @@ post-install-EXAMPLES-on:
 	@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 	@cd ${WRKSRC}/conf && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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