ports/109347: Make STRIP_CMD a command when WITH_DEBUG is defined

Andrew Turner andrew at fubar.geek.nz
Tue Feb 20 02:30:03 UTC 2007


>Number:         109347
>Category:       ports
>Synopsis:       Make STRIP_CMD a command when WITH_DEBUG is defined
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 20 02:30:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Turner
>Release:        FreeBSD 5.5-RC1 i386
>Organization:
>Environment:
System: FreeBSD serv.int.fubar.geek.nz 5.5-RC1 FreeBSD 5.5-RC1 #0: Mon May 15 14:09:18 NZST 2006 root at serv.int.fubar.geek.nz:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	When building ports with WITH_DEBUG defined STRIP_CMD becomes undefined. This means the first program to strip is executed.
>How-To-Repeat:
	1. Build a port that used STRIP_CMD, eg. devel/pcre.
	2. Watch the ports system attempt to run a program that was installed ie. devel/pcre attempts to run pcregrep reading from stdin.
	
>Fix:
	

--- freebsd-ports-mk-strip.diff begins here ---
Index: Mk/bsd.port.mk
===================================================================
RCS file: /cvsroot/ports/Mk/bsd.port.mk,v
retrieving revision 1.551
diff -u -r1.551 bsd.port.mk
--- Mk/bsd.port.mk	5 Feb 2007 22:57:20 -0000	1.551
+++ Mk/bsd.port.mk	20 Feb 2007 02:00:16 -0000
@@ -1644,7 +1644,7 @@
 
 .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
 STRIP=	#none
-STRIP_CMD=	#none
+STRIP_CMD=		${TRUE}
 DEBUG_FLAGS?=	-g
 CFLAGS:=		${CFLAGS:N-O*:N-f*} ${DEBUG_FLAGS}
 .endif
--- freebsd-ports-mk-strip.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list