Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jul 2023 19:27:27 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: 524c1cd189cb - main - security/pks: Fix build with llvm16
Message-ID:  <202307191927.36JJRRaF015993@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=524c1cd189cb88c2aa74d3b4efafdf97be6f3109

commit 524c1cd189cb88c2aa74d3b4efafdf97be6f3109
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-19 18:48:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-19 19:27:15 +0000

    security/pks: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 security/pks/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/security/pks/Makefile b/security/pks/Makefile
index 6ecedd1cfd41..ac5482fd76e0 100644
--- a/security/pks/Makefile
+++ b/security/pks/Makefile
@@ -23,7 +23,7 @@ CONFIGURE_ARGS=	--datadir=${DATADIR} \
 		--with-db --with-ipv6 --with-libwrap \
 		--with-openssl=${OPENSSLBASE}
 CONFIGURE_ENV=	DBLIB="-L${BDB_LIB_DIR} -l${BDB_LIB_NAME}" \
-		DBINC=-I${BDB_INCLUDE_DIR} DBHDR=db.h
+		DBINC=-I${BDB_INCLUDE_DIR} DBHDR=db.h cflags="${CFLAGS}"
 
 SUB_FILES=	pkg-message
 SUB_LIST=	PORTNAME="${PORTNAME}"
@@ -31,6 +31,12 @@ SUB_LIST=	PORTNAME="${PORTNAME}"
 OPTIONS_DEFINE=	DOCS
 PORTDOCS=	pks_help.* README EMAIL
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-extract:
 	@${CP} -a ${FILESDIR}/EMAIL ${WRKSRC}
 



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