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
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(){

Reply via email to