From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Apr 12 07:50:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EA3E1B8 for ; Sat, 12 Apr 2014 07:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C6C331842 for ; Sat, 12 Apr 2014 07:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3C7o0Bn053247 for ; Sat, 12 Apr 2014 07:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3C7o0Ge053243; Sat, 12 Apr 2014 07:50:00 GMT (envelope-from gnats) Resent-Date: Sat, 12 Apr 2014 07:50:00 GMT Resent-Message-Id: <201404120750.s3C7o0Ge053243@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dewayne Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D1FFEFB for ; Sat, 12 Apr 2014 07:46:55 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 884A1182A for ; Sat, 12 Apr 2014 07:46:55 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3C7kseN032415 for ; Sat, 12 Apr 2014 07:46:54 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3C7ksub032414; Sat, 12 Apr 2014 07:46:54 GMT (envelope-from nobody) Message-Id: <201404120746.s3C7ksub032414@cgiserv.freebsd.org> Date: Sat, 12 Apr 2014 07:46:54 GMT From: Dewayne To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/188496: security/nmap strip fails when stripping non-binaries in bin/ X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2014 07:50:01 -0000 >Number: 188496 >Category: ports >Synopsis: security/nmap strip fails when stripping non-binaries in bin/ >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: Sat Apr 12 07:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Dewayne >Release: 9.2Stable >Organization: >Environment: FreeBSD b1.hs 9.2-STABLE FreeBSD 9.2-STABLE #0: Thu Apr 10 04:09:20 EST 2014 root@:/usr/obj/hqdev-amd64-padlock-smp-vga i386 >Description: When building multiple ports simultaineously, the Makefile's strip command fails due to other non-binary files present in usr/local/bin/. Replacing ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* with the long winded ${FIND} ${STAGEDIR}${PREFIX}/bin/* -type f | ${XARGS} ${FILE} | \ + ${EGREP} -v 'ASCII text|Unicode text' | ${CUT} -d: -f1 | ${XARGS} ${STRIP_CMD} reduces the ambiguity. I'd speculate that the cause is either portmaster or a command to clear the staging usr/local/bin may be disabled. >How-To-Repeat: Occurs when building multiple ports. When there are other files in $STAGING/usr/local/bin that are "text" the build stops, as one would expect. >Fix: Index: /usr/ports/security/nmap/Makefile =================================================================== --- /usr/ports/security/nmap/Makefile (revision 351038) +++ /usr/ports/security/nmap/Makefile (working copy) @@ -83,7 +83,8 @@ post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* + ${FIND} ${STAGEDIR}${PREFIX}/bin/* -type f | ${XARGS} ${FILE} | \ + ${EGREP} -v 'ASCII text|Unicode text' | ${CUT} -d: -f1 | ${XARGS} ${STRIP_CMD} # gcc from ports is in use .if defined(NDCC) >Release-Note: >Audit-Trail: >Unformatted: