Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7395 - distcc support for emake and friends
Summary: distcc support for emake and friends
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 8450
  Show dependency tree
 
Reported: 2002-09-02 18:53 UTC by Michael Cohen (RETIRED)
Modified: 2011-10-30 22:38 UTC (History)
3 users (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 Michael Cohen (RETIRED) gentoo-dev 2002-09-02 18:53:16 UTC
add a commented out DISTCC_HOSTS to /etc/make.globals, like

#DISTCC_HOSTS="localhost"

and edit emake to look like this:

if [ -x /usr/bin/ccache/ccache ] export CC="ccache"
if [ $DISTCC_HOME & -x /usr/bin/distcc ] export CC="$CC distcc"
export CXX="$CC g++"
export CC="$CC gcc"

make ${MAKEOPTS} "@!"
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-09-03 12:29:58 UTC
The problem with this is that we enable ccache transparently by adding
gcc->ccache links to the path in ebuild.sh. We do this so that ccache works even
if the Makefile doesn't support the "CC" variable, which is a good thing.
However, this messes up distcc. We can turn this feature off, but then we have
to use the CC="ccache gcc" trick which only works some of the time. Probably add
the capability for either.
Comment 2 Michael Cohen (RETIRED) gentoo-dev 2002-09-25 08:24:02 UTC
new distcc has changed some things, the CC="ccache distcc" and CXX="ccache
distcc" is working better.  
Comment 3 Michael Cohen (RETIRED) gentoo-dev 2002-09-25 08:25:54 UTC
new distcc has changed some things, the CC="ccache distcc" and CXX="ccache
distcc" is working better.  Apps that don't use [$CC,$CXX] are few and far
between as I can see from our current portage tree. perhaps we might want to
talk to Martin Pool about it though.
Comment 4 Alain Penders (RETIRED) gentoo-dev 2003-02-02 13:25:35 UTC
Related to #2679
Comment 5 SpanKY gentoo-dev 2003-02-11 00:08:53 UTC
distcc is now in FEATURES, open new bugs if you want to see functionality enhanced