Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23619 - distcc 2.5-r1: distcc-config does not update DISTCC_HOSTS in /etc/env.d/02distcc
Summary: distcc 2.5-r1: distcc-config does not update DISTCC_HOSTS in /etc/env.d/02distcc
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High minor
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-27 14:24 UTC by Thomas Matthijs (RETIRED)
Modified: 2011-10-30 22:20 UTC (History)
4 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 Thomas Matthijs (RETIRED) gentoo-dev 2003-06-27 14:24:55 UTC
(distcc 2.5-r1)

"distcc-config --set-hosts" sets the host in /etc/distcc/hosts as it should, but
it leave /etc/env.d/02distcc alone

if you --set-log for example it will create the 02distcc file with
DISTCC_HOSTS="localhost" in it

the env var is check b4 the hosts file, leaving the hosts file useless

solutions:
- have it create a 02distcc with DISTCC_HOSTS commented
- make --set-hosts update 02distcc's DISTCC_HOSTS
- ...

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2003-06-28 11:52:16 UTC
As near as I can tell, having /etc/env.d/02distcc containing the DISTCC_HOSTS envvar is not needed.

`distcc` checks the following places for your 'DISTCC_HOSTS' -
   /etc/distcc/hosts
   ${HOME}/.distcc/hosts
   envvar $DISTCC_HOSTS

The best course of action, from where I sit now, is to put any custom, or user-specific hosts into a ~/.bashrc or some other "start-up" file.  The system wide envvar $DISTCC_HOSTS isn't needed and is redundant.

Did I miss anything, or a reason why the /etc/env.d/02distcc setting is needed?
Comment 2 Lisa Seelye (RETIRED) gentoo-dev 2003-07-16 13:32:14 UTC
This is not a bug - hosts should go into /etc/distcc/hosts by default. this allows the system's users to specify hosts (with DISTCC_HOSTS) on their own - even limiting it to localhost/1.