It would be nice if the distccd init.d script also added the DISTCCD_PATH variable to its path. And also add an example on how to set this variable in the /etc/conf.d/distcc file. The change could be implemented like this: --- /etc/init.d/distccd 2005-01-13 18:49:13.000000000 +0100 +++ distccd 2005-01-25 13:23:19.773346464 +0100 @@ -12,7 +12,7 @@ ebegin "Starting distccd" chown distcc `dirname ${DISTCCD_PIDFILE}` &>/dev/null TMPDIR="${TMPDIR}" \ - PATH="$(gcc-config --get-bin-path):${PATH}" \ + PATH="$(gcc-config --get-bin-path):${DISTCCD_PATH}:${PATH}" \ /sbin/start-stop-daemon --start --quiet --startas ${DISTCCD_EXEC} \ --pidfile ${DISTCCD_PIDFILE} -- \ --pid-file ${DISTCCD_PIDFILE} -N ${DISTCCD_NICE} --user distcc \ And the conf.d file: --- /etc/conf.d/distccd 2005-01-13 18:49:13.000000000 +0100 +++ distccd 2005-01-25 13:25:45.382210552 +0100 @@ -1,3 +1,4 @@ + # Copyright 1999-2004 Gentoo Foundation # $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/files/2.17/conf,v 1.2 2004/10/21 16:20:10 vapier Exp $ # distccd configuration file @@ -40,3 +41,6 @@ # set this for niceness # Default is 15 DISTCCD_NICE="15" + +# Add any additional search paths here +# DISTCCD_PATH="/path/to/compiler" Reproducible: Always Steps to Reproduce: 1. 2. 3.
David: Please attach, don't inline.
The init.d file should have been changed to reflect this ages ago. This is a dupe, but I'm lazy and don't have my email handy.