Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4940 - ebuild patch to support distcc and ccache similtaneously
Summary: ebuild patch to support distcc and ccache similtaneously
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 All
: High normal
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-13 04:24 UTC by Joshua Brindle (RETIRED)
Modified: 2011-10-30 22:37 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 Joshua Brindle (RETIRED) gentoo-dev 2002-07-13 04:24:05 UTC
This is a diff against ebuild.sh in portage 2.0.13, it adds the "distcc" 
option, and also fixes how ccache is called.


122a123,135
> #This way the default compiler is gcc, then if distcc is available it's 
prepended, and the same with ccache
>
> export CC="gcc"
>
> if [ "${FEATURES/-distcc/}" = "${FEATURES}" -a "${FEATURES/distcc/}" !
= "${FEATURES}" -a -f /usr/bin/distcc ]
> then
>         export CC="distcc ${CC}"
>         #these should be set in make.conf
>         export DISTCC_HOSTS
>         export DISTCC_VERBOSE
>       export DISTCC_LOG
> fi
>
126c139,140
<       export PATH="/usr/bin/ccache:${PATH}"
---
>       #export PATH="/usr/bin/ccache:${PATH}"
>       export CC="/usr/bin/ccache/ccache ${CC}"
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-07-13 12:25:53 UTC
well, this will only support ccache/distcc if the ebuild happens to recognize
the CC variable.  Right now, ccache is enabled for pretty much everything, which
seems like a nicer approach.
Comment 2 Joshua Brindle (RETIRED) gentoo-dev 2002-07-13 15:04:44 UTC
Which ebuilds don't support the CC variable?
if any ebuild doesn't it should be considered completely broken, especially 
since the only thing that should support it is make, and make will always use 
CC if it exists. I have compiled an entire system with this patch, and for the 
most part it works great, the exceptions are probably ebuild probablems that i 
may look at later.