Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17748 - ccache directory discrepancy
Summary: ccache directory discrepancy
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-18 07:31 UTC by Simon ARNAUD
Modified: 2011-10-30 22:20 UTC (History)
0 users

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 Simon ARNAUD 2003-03-18 07:31:09 UTC
In make.conf, it says CCACHE_DIR will default to ${PORTAGE_TMPDIR}/ccache.
But, in ebuild.sh, it defaults to /root/.ccache.

Either correct make.conf, or ebuild.sh.
Portage-2.0.47-r10
ccache-2.2

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Simon ARNAUD 2003-03-18 08:36:27 UTC
And there is a problem with this line, modified to be make.conf compliant (line 1029, ebuild.sh, in newdepend):
[ -z "${CCACHE_DIR}" ] && export CCACHE_DIR="${PORTAGE_TMPDIR}/ccache"

It seems the scope of this export is not as intented. I don't know if it is a bug or feature of bash, but it works like this:

[ -z "${CCACHE_DIR}" ] && CCACHE_DIR="${PORTAGE_TMPDIR}/ccache"
export CCACHE_DIR

To test it, just echo CCACHE_DIR in emake.
If someone know why it loses some exports, I would like to know also :).
Comment 2 Sami Nieminen 2003-05-24 07:36:50 UTC
This problem still exists. make.conf is telling that if CCACHE_DIR is not set, portage will use 
${PORTAGE_TMPDIR}/ccache (/var/tmp/ccache). But in ebuild.sh, it is set to /root/.ccache on 
the following line: 
 
[ -z "${CCACHE_DIR}" ] && export CCACHE_DIR="/root/.ccache" 
 
Why has this not been fixed yet? 
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2003-07-24 20:12:30 UTC
This is exported from class config (aka settings) in portage.py.
It's only set to /var/tmp/ccache if you are using userpriv.