ports/156921: [patch] www/nspluginwrapper-devel: respect STRIP

Pan Tsu inyaoo at gmail.com
Tue May 10 07:40:07 UTC 2011


>Number:         156921
>Category:       ports
>Synopsis:       [patch] www/nspluginwrapper-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:   Tue May 10 07:40:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Pan Tsu
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Allow user to control stripping by either
- explicitly via STRIP (bsd.port.mk, bsd.own.mk)
- depending on DEBUG_FLAGS (bsd.own.mk)
- depending on WITH_DEBUG (bsd.port.mk)

As process isolation (aka IPC code) in gecko browsers is not enabled yet
npwrapper can sometimes crash them, e.g. with npquakelive.i386.so plugin.
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: www/nspluginwrapper-devel/Makefile
===================================================================
RCS file: /a/.cvsup/ports/www/nspluginwrapper-devel/Makefile,v
retrieving revision 1.28
diff -u -p -r1.28 Makefile
--- www/nspluginwrapper-devel/Makefile	26 Apr 2011 18:56:14 -0000	1.28
+++ www/nspluginwrapper-devel/Makefile	10 May 2011 07:08:31 -0000
@@ -37,7 +37,7 @@ USE_LDCONFIG=	yes
 USE_GMAKE=	yes
 HAS_CONFIGURE=	yes
 
-CONFIGURE_ARGS=	--enable-generic --enable-strip --prefix=${PREFIX} \
+CONFIGURE_ARGS=	--enable-generic --prefix=${PREFIX} \
 		--target-os=linux --target-cpu=i386 \
 		--with-cc=${CC} --with-cxx=${CXX}
 
@@ -56,6 +56,10 @@ HOST_ARCH=	x86_64
 HOST_ARCH=	${ARCH}
 .endif
 
+.if defined(STRIP) && ${STRIP} != ""
+CONFIGURE_ARGS+=--enable-strip
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
 	    ${WRKSRC}/src/npw-config.c
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list