Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79446 - DISTCCD Add DISTCCD_PATH to distccd init.d script
Summary: DISTCCD Add DISTCCD_PATH to distccd init.d script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 04:28 UTC by David Hallas
Modified: 2010-09-10 19:00 UTC (History)
0 users

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 David Hallas 2005-01-25 04:28:08 UTC
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.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-25 05:58:23 UTC
David: Please attach, don't inline.
Comment 2 Lisa Seelye (RETIRED) gentoo-dev 2005-03-28 14:59:14 UTC
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.