ports/184285: [bsd.port.mk][regression][patch] checking for STRIP doesn't work with OPTIONSng
Jan Beich
jbeich at tormail.org
Mon Nov 25 15:00:01 UTC 2013
>Number: 184285
>Category: ports
>Synopsis: [bsd.port.mk][regression][patch] checking for STRIP doesn't work with OPTIONSng
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 25 15:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release:
>Organization:
>Environment:
>Description:
After bsd.options.mk was introduced the check for WITH_* and WITHOUT_*
moved from the beginning to the end of bsd.port.options.mk. However,
ports/153539 usage relies on STRIP being set early enough to be usable
before bsd.port.post.mk.
For example, this breaks stripping for bsd.gecko.mk and bsd.cmake.mk.
>How-To-Repeat:
$ env -i __MAKE_CONF= make WITH=DEBUG
CONFIGURE_ARGS=""
$ env -i __MAKE_CONF= make WITHOUT=DEBUG
CONFIGURE_ARGS=""
$ cat Makefile
PORTNAME= foo
OPTIONS_DEFINE= DEBUG
.include <bsd.port.options.mk>
.if !defined(STRIP) || ${STRIP} == ""
CONFIGURE_ARGS+=--disable-strip
.endif
all:
@${ECHO_MSG} CONFIGURE_ARGS=\"${CONFIGURE_ARGS}\"
.include <bsd.port.mk>
>Fix:
--- strip_check.diff begins here ---
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk (revision 334850)
+++ Mk/bsd.port.mk (working copy)
@@ -1317,13 +1317,13 @@ WITH_DEBUG= yes
.endif
.endif
+.include "${PORTSDIR}/Mk/bsd.options.mk"
+
# Reset value from bsd.own.mk.
.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
STRIP= #none
.endif
-.include "${PORTSDIR}/Mk/bsd.options.mk"
-
# Start of pre-makefile section.
.if !defined(AFTERPORTMK) && !defined(INOPTIONSMK)
--- strip_check.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list