Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264457 - dev-util/catalyst: ccache cache deleted during stage2 build
Summary: dev-util/catalyst: ccache cache deleted during stage2 build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-04-01 03:37 UTC by Tom Stellard
Modified: 2011-07-01 17:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to prevent deletion of ccache cache. (catalyst.patch,350 bytes, patch)
2009-04-01 03:38 UTC, Tom Stellard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Stellard 2009-04-01 03:37:01 UTC
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
Comment 1 Tom Stellard 2009-04-01 03:38:25 UTC
Created attachment 186947 [details, diff]
Patch to prevent deletion of ccache cache.
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2009-04-04 19:35:28 UTC
I've commited this to catalyst git.
Comment 3 Matt Turner gentoo-dev 2011-06-25 20:43:12 UTC
Is this bug relevant to catalyst-2? I don't think it is.
Comment 4 Matt Turner gentoo-dev 2011-07-01 17:03:40 UTC
Unable to reproduce. Marking as FIXED.