ports/161856: [patch] emulators/qemu-devel: respect STRIP

Nali Toja nalitoja at gmail.com
Fri Oct 21 05:40:10 UTC 2011


>Number:         161856
>Category:       ports
>Synopsis:       [patch] emulators/qemu-devel: respect STRIP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 21 05:40:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Nali Toja
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Do not strip uncoditionally, it makes system-wide profiling more cumbersome.
>How-To-Repeat:
$ make install STRIP=
$ qemu &

# qemu itself + libs/kernel
$ pmcstat -t qemu -P instructions -T

# system-wide with lots of noise from other apps
$ pmcstat -S instructions -T
>Fix:
--- strip.diff begins here ---
Index: emulators/qemu-devel/Makefile
===================================================================
RCS file: /a/.csup/ports/emulators/qemu-devel/Makefile,v
retrieving revision 1.128
diff -u -p -r1.128 Makefile
--- emulators/qemu-devel/Makefile	13 Oct 2011 19:08:30 -0000	1.128
+++ emulators/qemu-devel/Makefile	20 Oct 2011 01:30:58 -0000
@@ -145,6 +145,10 @@ MAKE_ARGS+=	NOPORTDOCS=${NOPORTDOCS}
 BUILD_DEPENDS+=	texi2html:${PORTSDIR}/textproc/texi2html
 .endif
 
+.if !defined(STRIP) || ${STRIP} == ""
+CONFIGURE_ARGS+=--disable-strip
+.endif
+
 .if ${ARCH} == "amd64"
 MAKE_ARGS+=	ARCH=x86_64
 .endif
--- strip.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list