Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23238 - Allow easier distcc switching in portage
Summary: Allow easier distcc switching in portage
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-21 11:24 UTC by Wayne Davison
Modified: 2011-10-30 22:21 UTC (History)
3 users (show)

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


Attachments
Change ebuild.sh to optionally bypass distcc. (limit-distcc.patch,486 bytes, patch)
2003-06-21 11:26 UTC, Wayne Davison
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wayne Davison 2003-06-21 11:24:54 UTC
I'd like to see an easier way to switch portage's use of distcc on and off
than having to change the make.conf file to add or remove distcc from the
FEATURES setting.  I think a good indicator is the following idiom:

If the DISTCC_HOSTS environment variable is set to "localhost", then the
user would like us to not use distcc for the current ebuild.  This would
allow the user to set DISTCC_HOSTS to some other value (or omit it to use
the appropriate "hosts" config file) when other machines are up, and to
just set it to "localhost" when no other machines are around.  This makes
it easy to write a script to handle the whole thing (without having to
rewrite the make.conf file in the script).

The bypassing of distcc when no remote hosts are around is entirely an
efficiency issue, since distcc still runs the preprocessor twice per
compile in such a case (which I'd like to avoid).

I'll attach a simple patch for ebuild.sh.
Comment 1 Wayne Davison 2003-06-21 11:26:24 UTC
Created attachment 13662 [details, diff]
Change ebuild.sh to optionally bypass distcc.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-08-15 16:30:07 UTC
FEATURES="-distcc" emerge whatever
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-09-20 04:29:22 UTC
Any objections if I close this bug ?
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2003-09-29 00:10:26 UTC
no objections so I'm closing this now.