svn commit: r486390 - head/www/varnish6

Mark Linimon linimon at FreeBSD.org
Sun Dec 2 02:37:30 UTC 2018


Author: linimon
Date: Sun Dec  2 02:37:29 2018
New Revision: 486390
URL: https://svnweb.freebsd.org/changeset/ports/486390

Log:
  Flags -Wno-unknown-warning-option -Wno-implicit-fallthrough are not
  supported by base GCC, making build fail on GCC-based architectures.
  
  This changes the location of the BAD_TESTS conditional.
  
  PR:		233576
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/www/varnish6/Makefile

Modified: head/www/varnish6/Makefile
==============================================================================
--- head/www/varnish6/Makefile	Sun Dec  2 01:35:00 2018	(r486389)
+++ head/www/varnish6/Makefile	Sun Dec  2 02:37:29 2018	(r486390)
@@ -46,9 +46,14 @@ EXTRA_PATCHES+=	${FILESDIR}/no-inet6.patch
 
 OPTIONS_DEFINE=	DOCS
 
-.if defined(BAD_TESTS)
+.include <bsd.port.pre.mk>
+
 post-patch:
+.if defined(BAD_TESTS)
 	${RM} ${BAD_TESTS:C|.+|${WRKSRC}/bin/varnishtest/tests/\0.vtc|}
 .endif
+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+	${REINPLACE_CMD} -e '/-Wno-unknown-warning-option -Wno-implicit-fallthrough/d' ${WRKSRC}/configure.ac
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list