From b2f6d7df7e53395ff56d4c0eeb087a51d9035f19 Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Tue, 11 Apr 2023 02:59:02 +0200 Subject: [PATCH] net-mgmt/nagnu: unbreak on FreeBSD 13+ Build with -fcommon to avoid a duplicate symbol error. See also: https://github.com/frlen/nagnu/issues/5 Approved by: portmgr (build fix blanket) --- net-mgmt/nagnu/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net-mgmt/nagnu/Makefile b/net-mgmt/nagnu/Makefile index 510a98443c5e4..5ee8e0a6c6e89 100644 --- a/net-mgmt/nagnu/Makefile +++ b/net-mgmt/nagnu/Makefile @@ -1,5 +1,6 @@ PORTNAME= nagnu PORTVERSION= 1.1.3 +PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= fredrik@min-hemsida.net @@ -9,9 +10,6 @@ WWW= https://github.com/frlen/nagnu LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_13= ld: error: duplicate symbol: errorss -BROKEN_FreeBSD_14= ld: error: duplicate symbol: errorss - LIB_DEPENDS= libcurl.so:ftp/curl USES= ncurses @@ -22,6 +20,7 @@ PLIST_FILES= bin/nagnu \ share/examples/nagnu/nagnu.conf.sample GNU_CONFIGURE= yes +CFLAGS+= -fcommon do-install: ${INSTALL_PROGRAM} ${WRKSRC}/nagnu ${STAGEDIR}${PREFIX}/bin