Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 164818

Summary: sys-devel/distcc - /etc/init.d/distccd does not honor systems' GCC_SPECS environment variable
Product: Gentoo Linux Reporter: Gordon Malm (RETIRED) <gengor>
Component: Current packagesAssignee: MATSUU Takuto (RETIRED) <matsuu>
Status: RESOLVED FIXED    
Severity: normal CC: hp-cluster, kanelxake, mmokrejs, seventhguardian
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gordon Malm (RETIRED) gentoo-dev 2007-02-01 11:29:00 UTC
Because distccd is launched via start-stop-daemon and is not run in a login shell, /etc/profile.env is never sourced.  Thus the system GCC_SPECS, set by gcc-config, is not honored.  GCC_SPECS remains undeclared at startup.

I personally solved it by adding the following line to /etc/init.d/distccd before distccd is run:
eval $(/bin/grep GCC_SPECS /etc/profile.env)

but perhaps the entire profile.env should be included, which would also remove the need for:
PATH="$(gcc-config --get-bin-path):${PATH}"
just before distccd is launched via start-stop-daemon.

Reproducible: Always
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2008-11-05 22:55:12 UTC
fixed in cvs.