[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ports/133288: [PATCH] games/btanks: pass environement to scons allowing building with ccache
- To: FreeBSD-gnats-submit_(_at_)_FreeBSD_(_dot_)_org
- Subject: ports/133288: [PATCH] games/btanks: pass environement to scons allowing building with ccache
- From: Dmitry Marakasov <amdmi3_(_at_)_amdmi3_(_dot_)_ru>
- Date: Thu, 2 Apr 2009 03:31:32 +0400 (MSD)
- Cc: danfe_(_at_)_FreeBSD_(_dot_)_org
- Resent-date: Wed, 1 Apr 2009 23:40:01 GMT
- Resent-from: FreeBSD-gnats-submit_(_at_)_FreeBSD_(_dot_)_org (GNATS Filer)
- Resent-message-id: <200904012340_(_dot_)_n31Ne1dN042152_(_at_)_freefall_(_dot_)_freebsd_(_dot_)_org>
- Resent-reply-to: FreeBSD-gnats-submit_(_at_)_FreeBSD_(_dot_)_org, Dmitry Marakasov <amdmi3_(_at_)_amdmi3_(_dot_)_ru>
- Resent-to: freebsd-ports-bugs_(_at_)_FreeBSD_(_dot_)_org
>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_(_at_)_FreeBSD_(_dot_)_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:
_______________________________________________
freebsd-ports-bugs_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org