From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 28 07:00:27 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 495E8106567C for ; Fri, 28 Oct 2011 07:00:27 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 24A948FC1A for ; Fri, 28 Oct 2011 07:00:26 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9S70Nlm060598 for ; Fri, 28 Oct 2011 07:00:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9S70Ntj060597; Fri, 28 Oct 2011 07:00:23 GMT (envelope-from gnats) Resent-Date: Fri, 28 Oct 2011 07:00:23 GMT Resent-Message-Id: <201110280700.p9S70Ntj060597@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, Abdrey Zonov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 770DF1065676 for ; Fri, 28 Oct 2011 06:51:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 677E48FC26 for ; Fri, 28 Oct 2011 06:51:12 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9S6pCpf072106 for ; Fri, 28 Oct 2011 06:51:12 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p9S6pCDx072105; Fri, 28 Oct 2011 06:51:12 GMT (envelope-from nobody) Message-Id: <201110280651.p9S6pCDx072105@red.freebsd.org> Date: Fri, 28 Oct 2011 06:51:12 GMT From: Abdrey Zonov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/162082: [patch] databases/mongodb: fix strip binaries X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 07:00:27 -0000 >Number: 162082 >Category: ports >Synopsis: [patch] databases/mongodb: fix strip binaries >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 28 07:00:23 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Abdrey Zonov >Release: STABLE-7, STABLE-8 >Organization: >Environment: >Description: I suggest to remove post-patch section from Makefile of subject port, because it doesn't work any more and use attached patch to strip binaries. >How-To-Repeat: cd /usr/ports/databases/mongodb && make package && ls -l /usr/ports/packages/mongodb* >Fix: Use attached patch. Patch attached with submission follows: --- files/SConstruct.orig 2011-04-06 04:40:13.000000000 +0000 +++ files/SConstruct 2011-10-04 19:16:33.000000000 +0000 @@ -679,7 +679,10 @@ #make scons colorgcc friendly env['ENV']['HOME'] = os.environ['HOME'] - env['ENV']['TERM'] = os.environ['TERM'] + try: + env['ENV']['TERM'] = os.environ['TERM'] + except KeyError: + env['ENV']['TERM'] = 'dumb' if linux and has_option( "sharedclient" ): env.Append( LINKFLAGS=" -Wl,--as-needed -Wl,-zdefs " ) @@ -1473,7 +1476,7 @@ fullInstallName = installDir + "/bin/" + name allBinaries += [ name ] - if (solaris or linux) and (not has_option("nostrip")): + if (solaris or linux or freebsd) and (not has_option("nostrip")): e.AddPostAction( inst, e.Action( 'strip ' + fullInstallName ) ) if linux and len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) == "s3dist": --- Makefile.orig 2011-10-28 10:48:49.843500000 +0400 +++ Makefile 2011-10-28 10:49:05.609125000 +0400 @@ -43,11 +43,6 @@ PLIST_SUB+= DEVEL="@comment " .endif -post-patch: - @${REINPLACE_CMD} -e 's|elif "freebsd7" == os.sys.platform|elif os.sys.platform.startswith("freebsd")|' \ - -e '/not GetOption("nostrip")/ s,linux,linux or freebsd,g' \ - ${WRKSRC}/SConstruct - post-install: @if [ ! -f ${PREFIX}/etc/mongodb.conf ]; then \ ${TOUCH} ${PREFIX}/etc/mongodb.conf ; \ >Release-Note: >Audit-Trail: >Unformatted: