From: Eric Edgar Date: Fri, 13 Jan 2006 15:00:04 +0000 (+0000) Subject: Fix for ccache (null)/.ccache bug X-Git-Tag: CATALYST_2_0_6_916~475 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=80e7624de12108d012327e91ff2ab2251895ef8a;p=catalyst.git Fix for ccache (null)/.ccache bug git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1019 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index 502545dd..19400c61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.504 2006/01/13 14:54:15 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.505 2006/01/13 15:00:04 rocket Exp $ + + 13 Jan 2006; Eric Edgar modules/generic_stage_target.py, + targets/support/kmerge.sh: + Fix for ccache (null)/.ccache bug 13 Jan 2006; Chris Gianelloni catalyst: This is 2.0_rc14. diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py index cfde139a..b6522ffe 100644 --- a/modules/generic_stage_target.py +++ b/modules/generic_stage_target.py @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.114 2006/01/10 19:52:46 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.115 2006/01/13 15:00:04 rocket Exp $ """ This class does all of the chroot setup, copying of files, etc. It is @@ -190,7 +190,7 @@ class generic_stage_target(generic_target): self.mounts.append("/var/tmp/ccache") self.mountmap["/var/tmp/ccache"]=ccdir # for the chroot: - os.environ["CCACHE_DIR"]="/var/tmp/ccache" + self.env["CCACHE_DIR"]="/var/tmp/ccache" def override_chost(self): #if os.environ.has_key("CHOST"): diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh index ee35b682..588a8197 100755 --- a/targets/support/kmerge.sh +++ b/targets/support/kmerge.sh @@ -34,10 +34,10 @@ setup_gk_args() { then GK_ARGS="${GK_ARGS} --initramfs-overlay=/tmp/initramfs_overlay/${clst_initramfs_overlay}" fi -# if [ -n "${clst_CCACHE}" ] -# then -# GK_ARGS="${GK_ARGS} --kernel-cc=/usr/lib/ccache/bin/gcc --utils-cc=/usr/lib/ccache/bin/gcc" -# fi + if [ -n "${clst_CCACHE}" ] + then + GK_ARGS="${GK_ARGS} --kernel-cc=/usr/lib/ccache/bin/gcc --utils-cc=/usr/lib/ccache/bin/gcc" + fi if [ "${clst_devmanager}" == "devfs" ] then