Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70383 - ccache, with default CCACHE_DIR, keeps filling up my root directory
Summary: ccache, with default CCACHE_DIR, keeps filling up my root directory
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-07 14:32 UTC by Federico Galassi
Modified: 2005-02-28 09:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Galassi 2004-11-07 14:32:07 UTC
By default ccache stores its files in /root/.ccache when run as root.
Since most emerge daily work is done as root and doc's suggested size for cache is 2 gigabyte, /root/.ccache will fill up at the first emerge involving a lot of compilation. On my system /root is as small as 500 mb cause it's not supposed to
store too much stuff and i believe portage's ccache, which are not root personal files, should go somewhere under var.
my is my temp fix:
$ cat /etc/portage/bashrc
export CCACHE_DIR=/var/ccache
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2005-02-28 09:30:24 UTC
You could set that in make.conf.

Read make.conf.example.
Comment 2 Federico Galassi 2005-02-28 09:51:32 UTC
i know i can change ccache behavior by myself and, if you read my post, i did it.
But this doesn't fix the fact by default people are given settings not compliant to FHS. cache files generated by ccache are variable data related to the state of the application, hence should go to /var/, cache, lib or whatever.