Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2018 02:37:30 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r486390 - head/www/varnish6
Message-ID:  <201812020237.wB22bUD4070193@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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