[Bug 191085] New: [patch] Mk/bsd.options.mk small fix for ${opt}_WITH if option is off
bz-noreply at freebsd.org
bz-noreply at freebsd.org
Mon Jun 16 12:45:29 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191085
Bug ID: 191085
Summary: [patch] Mk/bsd.options.mk small fix for ${opt}_WITH if
option is off
Product: Ports Tree
Version: Latest
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Many People
Priority: ---
Component: Infrastructure
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: ohauer at FreeBSD.org
The ${opt}_WITH construct is not usable in case the option has additional
parameters like paths
E.g dns/powerdns uses:
PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}
PGSQL_CONFIGURE_OFF= --without-pgsql
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}
MYSQL_CONFIGURE_OFF= --without-mysql
For testing change the four lines to the following two
PGSQL_CONFIGURE_WITH= pgsql=${LOCALBASE}
MYSQL_CONFIGURE_WITH= mysql=${LOCALBASE}
Then test with make -V CONFIGURE_ARGS WITHOUT=PGSQL -C dns/powerdns
... --without-pgsql=/usr/local
-> ${LOCALBASE} is not stripped
With the patch below it works as expected and many Makefiles can be simplified
make -V CONFIGURE_ARGS WITHOUT=PGSQL -C dns/powerdns
... --without-pgsql
Index: /usr/ports/Mk/bsd.options.mk
===================================================================
--- /usr/ports/Mk/bsd.options.mk (revision 357956)
+++ /usr/ports/Mk/bsd.options.mk (working copy)
@@ -470,7 +470,7 @@
. endif
. if defined(${opt}_CONFIGURE_WITH)
. for iopt in ${${opt}_CONFIGURE_WITH}
-CONFIGURE_ARGS+= --without-${iopt}
+CONFIGURE_ARGS+= --without-${iopt:C/=.*//}
. endfor
. endif
. for configure in CONFIGURE CMAKE QMAKE
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list