(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.
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?
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.