Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 2023 14:46:50 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: a2c48babbb8e - main - net/trickle: Fix build with llvm16
Message-ID:  <202308051446.375EkoLd059535@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=a2c48babbb8e61650609e6a63a0a09c89ba1b745

commit a2c48babbb8e61650609e6a63a0a09c89ba1b745
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-05 14:04:01 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 14:46:35 +0000

    net/trickle: Fix build with llvm16
    
    - Pet portclippy
    
    Sponsored by:   The FreeBSD Foundation
---
 net/trickle/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/net/trickle/Makefile b/net/trickle/Makefile
index 8f9dbfab2b39..a6747b5e8982 100644
--- a/net/trickle/Makefile
+++ b/net/trickle/Makefile
@@ -14,10 +14,11 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LIB_DEPENDS=	libevent.so:devel/libevent
 
 USES=		libtool localbase
+USE_LDCONFIG=	yes
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-libevent=${LOCALBASE} \
 		--sysconfdir=${PREFIX}/etc
-USE_LDCONFIG=	yes
 
 MAKE_JOBS_UNSAFE=	yes
 
@@ -25,6 +26,11 @@ PORTDOCS=	*
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/trickle/trickle-overload.so
 	${INSTALL_DATA} ${FILESDIR}/trickled.conf ${STAGEDIR}${PREFIX}/etc/trickled.conf.sample



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