Date: Thu, 2 Apr 2009 03:31:32 +0400 (MSD) From: Dmitry Marakasov <amdmi3@amdmi3.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: danfe@FreeBSD.org Subject: ports/133288: [PATCH] games/btanks: pass environement to scons allowing building with ccache Message-ID: <20090401233132.C460D10883C@hades.panopticon> Resent-Message-ID: <200904012340.n31Ne1dN042152@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133288 >Category: ports >Synopsis: [PATCH] games/btanks: pass environement to scons allowing building with ccache >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: Wed Apr 01 23:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 8.0-CURRENT i386 >Organization: >Environment: System: FreeBSD hades.panopticon 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Mar 21 18:50:30 MSK 2009 >Description: scons clears environment for tools (that is compilers) that it runs. That makes it impossible to use ccache, as it relies on $PATH and other $CCACHE_ variables which won't be passed to ccache process. The patch makes scons propagate environment for this port thus fixing the problem. Port maintainer (danfe@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- btanks-0.7.5800.patch begins here --- Index: files/patch-SConstruct =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/games/battletanks/files/patch-SConstruct,v retrieving revision 1.1 diff -u -u -r1.1 patch-SConstruct --- files/patch-SConstruct 2 Apr 2008 10:18:54 -0000 1.1 +++ files/patch-SConstruct 1 Apr 2009 22:55:36 -0000 @@ -1,5 +1,14 @@ ---- SConstruct.orig 2007-12-21 19:45:15.000000000 +0600 -+++ SConstruct 2008-03-27 04:41:37.000000000 +0600 +--- SConstruct.orig 2007-12-21 16:45:15.000000000 +0300 ++++ SConstruct 2009-04-02 02:55:35.000000000 +0400 +@@ -1,7 +1,7 @@ + import os, sys + + #builder for static libraries +-env = Environment() ++env = Environment(ENV = os.environ) + + picLibBuilder = Builder( + action = Action('$ARCOM'), @@ -53,6 +53,8 @@ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) if os.environ.has_key('LDFLAGS'): --- btanks-0.7.5800.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090401233132.C460D10883C>