Date: Tue, 20 Feb 2007 15:10:35 +1300 (NZDT) From: Andrew Turner <andrew@fubar.geek.nz> To: FreeBSD-gnats-submit@FreeBSD.org Cc: andrew@fubar.geek.nz Subject: ports/109347: Make STRIP_CMD a command when WITH_DEBUG is defined Message-ID: <20070220021035.9E4456120@serv.int.fubar.geek.nz> Resent-Message-ID: <200702200230.l1K2U2d1093343@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070220021035.9E4456120>