Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2019 03:53:48 +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: r494770 - head/net-mgmt/chillispot
Message-ID:  <201903060353.x263rmr2048068@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Wed Mar  6 03:53:48 2019
New Revision: 494770
URL: https://svnweb.freebsd.org/changeset/ports/494770

Log:
  This port requires adding -fnested-functions to CFLAGS when building
  with base GCC.
  
  Additionally, replace USE_GCC=any with USES=compiler:nestedfct.
  
  PR:		236009
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/net-mgmt/chillispot/Makefile

Modified: head/net-mgmt/chillispot/Makefile
==============================================================================
--- head/net-mgmt/chillispot/Makefile	Wed Mar  6 03:48:42 2019	(r494769)
+++ head/net-mgmt/chillispot/Makefile	Wed Mar  6 03:53:48 2019	(r494770)
@@ -12,19 +12,14 @@ MASTER_SITES=	http://www.chillispot.info/download/ \
 MAINTAINER=	venture37@geeklan.co.uk
 COMMENT=	Wireless LAN Access Point Controller
 
-BROKEN_mips=		fails to build: error: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_mips64=		fails to build: error: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_powerpc64=	fails to build: error: nested functions are disabled, use -fnested-functions to re-enable
-
 CONFLICTS=	coovachilli-[0-9]*
 
-USES=		shebangfix
+USES=		compiler:nestedfct shebangfix
 SHEBANG_FILES=	doc/hotspotlogin.cgi
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=-sysconfdir=${PREFIX}/etc
 USE_RC_SUBR=	chillispot
 SUB_FILES=	pkg-message installguide.txt
-USE_GCC=	any
 
 OPTIONS_DEFINE=	APACHE RADIUS
 OPTIONS_SINGLE=	RADIUS
@@ -36,6 +31,10 @@ OPENRADIUS_DESC=depend on OpenRADIUS
 APACHE_USE=	apache_run=22+
 FREERADIUS_RUN_DEPENDS=	radiusd:net/freeradius
 OPENRADIUS_RUN_DEPENDS=	radiusd:net/openradius
+
+.if exists(/usr/lib/libstdc++.so)
+CFLAGS+=	-fnested-functions
+.endif
 
 post-install:
 	${MKDIR} ${STAGEDIR}${DATADIR}



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