Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64090 - macos: ccache
Summary: macos: ccache
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: osx porters
Keywords: InVCS
Depends on:
Reported: 2004-09-14 22:15 UTC by David Bélanger
Modified: 2005-02-06 13:33 UTC (History)
1 user (show)

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

macos patch for ccache (ccache.patch,455 bytes, patch)
2004-09-14 22:17 UTC, David Bélanger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Bélanger 2004-09-14 22:15:35 UTC

The ccache ebuild and portage consider the root directory to be /root.  However on OS X (at least 10.2.x), the root is /var/root. assumes that root is /root.  Maybe this assumption is also at other places also.

> grep -n /root /usr/sbin/
1268:           [ -z "${CCACHE_DIR}" ] && export CCACHE_DIR="/root/.ccache"

If ccache is installed and enabled but CCACHE_DIR is not defined in make.conf, the ccache does not work.  (Behaves like if uninstalled/disabled).

Also, I modified the ccache ebuild, see patch for ccache ebuild attached.

Comment 1 David Bélanger 2004-09-14 22:17:42 UTC
Created attachment 39627 [details, diff]
macos patch for ccache
Comment 2 Hasan Khalil (RETIRED) gentoo-dev 2005-01-20 21:02:47 UTC
I see a few ways to get around this.

1) we create a /root as a part of our baselayout virtual, or with our installer, etc.

2) we look into changing the portage internal code to be more forgiving.

3) we put CCACHE_DIR in our profile (is this OK?)

If we can do (3) I think this is the easiest and most harmless to the rest of the tree.
If we can do (2) I think that would probably be the more 'correct' way to do things.
If we can do neither (3) nor (2), I would want to look into other alternatives rather
than go ahead and do (1).

ciaranm: advice on this?
everyone: advice on this?
Comment 3 Hasan Khalil (RETIRED) gentoo-dev 2005-01-20 21:22:23 UTC
according to ferringb and carpaski on #gentoo-dev, (3) is the way to go.
Comment 4 Hasan Khalil (RETIRED) gentoo-dev 2005-01-20 21:37:37 UTC
Added CCACHE line to make.defaults in profiles/default-darwin/macos/.
Keyworded dev-util/cache-2.3 ~ppc-macos - no patch required.
Comment 5 Hasan Khalil (RETIRED) gentoo-dev 2005-02-06 13:33:18 UTC
Closing out bugs that've been resolved for a while now...