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? Reproducible: Always Steps to Reproduce: 1.Emerge catalyst with ccache use flag. 2.Create a stage2 build with catalyst 3. Actual Results: ccache -s reports a cache size of 0 MB. Expected Results: ccache -s should report a size > 0 MB
Created attachment 186947 [details, diff] Patch to prevent deletion of ccache cache.
I've commited this to catalyst git.
Is this bug relevant to catalyst-2? I don't think it is.
Unable to reproduce. Marking as FIXED.