Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 65492

Summary: document CCACHE_DIR in make.conf manpage
Product: Portage Development Reporter: Robin Johnson <robbat2>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: major CC: rockoo
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 115839    
Attachments: Add's a ditty about CCACHE DIR and what it defaults to ( in stable anyway )

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-26 21:27:20 UTC
I've been working on a machine with slow disk (sucky IDE controller actually), but lots of RAM (4GB), and it's been immensely useful to have my portage tmpdir in tmpfs. However then when I reboot, everything in my ccache goes away, as it's in $PORTAGE_TMPDIR/homedir.

In that vain, could we have a slight re-arrangement of portage's directories?
I'd be perfectly happy if one could configure them in make.conf.

portage.py, line 2157:
mysettings["BUILD_PREFIX"] = mysettings["PORTAGE_TMPDIR"]+"/portage/build"
mysettings["HOME"]         = mysettings["PORTAGE_TMPDIR"]+"/portage-homedir"
mysettings["PKG_TMPDIR"]   = mysettings["PORTAGE_TMPDIR"]+"/portage/pkg"

This allows me to mount my tmpfs on $PORTAGE_TMPDIR and have some reasonable speed.

I'll do up a full patch to implement this if needed.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-09-26 22:07:34 UTC
CCACHE_DIR doesn't work anymore ?
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-26 22:50:23 UTC
the comments in make.conf and source I see say that ccache should be in /var/tmp/ccache (or /root/.ccache), but it's still going to /var/tmp/portage/homedir/.ccache as I don't have CCACHE_DIR explictly set.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-09-27 00:05:08 UTC
so it's a docs bugs
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-10-09 16:19:53 UTC
userpriv
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-09 17:00:23 UTC
Created attachment 65564 [details, diff]
Add's a ditty about CCACHE DIR and what it defaults to ( in stable anyway )

From what I can gather it is set to PORTAGE_TMPDIR/ccache in both userpriv and
normal mode ( although the permissions change between them ).
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-06 21:44:12 UTC
Hopefully can go into 2.0.54
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2006-01-20 06:16:55 UTC
Removing blocker as this is not a regression nor been fixed in trunk yet (hence is not a candidate for going into stable).
Comment 8 SpanKY gentoo-dev 2006-01-23 19:09:39 UTC
added to trunk
Comment 9 Jason Stubbs (RETIRED) gentoo-dev 2006-01-27 19:25:41 UTC
Released in 2.1_pre4