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

Bug 7395

Summary: distcc support for emake and friends
Product: Portage Development Reporter: Michael Cohen (RETIRED) <mjc>
Component: CoreAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED FIXED    
Severity: enhancement CC: alain, kevin, mjc
Priority: High    
Version: 2.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 8450    

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