Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2020 03:44:42 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r547316 - head/security/yersinia
Message-ID:  <202009020344.0823igqR067050@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Sep  2 03:44:42 2020
New Revision: 547316
URL: https://svnweb.freebsd.org/changeset/ports/547316

Log:
  - Force -fcommon to unbreak the build against modern compilers
  - Respect CFLAGS, remove bogus += and EOL whitespace while here
  
  Reported by:	pkg-fallout

Modified:
  head/security/yersinia/Makefile

Modified: head/security/yersinia/Makefile
==============================================================================
--- head/security/yersinia/Makefile	Wed Sep  2 03:43:59 2020	(r547315)
+++ head/security/yersinia/Makefile	Wed Sep  2 03:44:42 2020	(r547316)
@@ -16,7 +16,7 @@ LIB_DEPENDS=	libnet.so:net/libnet \
 		libfreetype.so:print/freetype2
 
 USES=		autoreconf gnome ncurses pkgconfig
-USE_GNOME+=	cairo gdkpixbuf2 gtk20 
+USE_GNOME=	cairo gdkpixbuf2 gtk20
 PKGNAMESUFFIX=	-gtk
 USE_GITHUB=	yes
 GH_TUPLE=	tomac:yersinia:8c0d7c5
@@ -24,6 +24,10 @@ GNU_CONFIGURE=	yes
 
 PLIST_FILES=	sbin/yersinia \
 		man/man8/yersinia.8.gz
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,-O3 -Wall -g,${CFLAGS} -fcommon,' \
+		${WRKSRC}/configure.ac
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/yersinia ${STAGEDIR}${PREFIX}/sbin/



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