public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] ccache cache deleted during stage2 build
@ 2009-03-31  4:31 Tom Stellard
  2009-04-01  3:18 ` Andrew Gaffney
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Stellard @ 2009-03-31  4:31 UTC (permalink / raw
  To: gentoo-catalyst

[-- Attachment #1: Type: text/plain, Size: 660 bytes --]

I am using the latest version of catalyst from git(commit
16745ae35961557a1205b5c86419d1aa496fcdf7).  I noticed that when the
stage2-preclean-chroot.sh script calls cleanup_stages() in
chroot_functions.sh, it deletes everything in $CHROOT_PATH/var/tmp,
but since $CHROOT_PATH/var/tmp/ccache is still bound to
/var/tmp/ccache my cache that lives outside of the chroot is cleared
as well. I have attached a patch that appears to fix the problem.  I
am not sure if there are any ill side-effects from this patch, but
since the "clean" action sequence also clears /var/tmp/*, is it really
necessary to do it in the stage2-preclean-chroot.sh script?

-Tom Stellard

[-- Attachment #2: catalyst.diff --]
[-- Type: text/plain, Size: 350 bytes --]

diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh
index f91f53c..fe20194 100644
--- a/targets/support/chroot-functions.sh
+++ b/targets/support/chroot-functions.sh
@@ -210,7 +210,6 @@ cleanup_stages() {
 	esac
 
 	rm -f /var/log/emerge.log /var/log/portage/elog/*
-	rm -rf /var/tmp/*
 }
 
 update_env_settings(){

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-01  3:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31  4:31 [gentoo-catalyst] ccache cache deleted during stage2 build Tom Stellard
2009-04-01  3:18 ` Andrew Gaffney
2009-04-01  3:41   ` Tom Stellard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox