Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164818 - sys-devel/distcc - /etc/init.d/distccd does not honor systems' GCC_SPECS environment variable
Summary: sys-devel/distcc - /etc/init.d/distccd does not honor systems' GCC_SPECS envi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-01 11:29 UTC by Gordon Malm (RETIRED)
Modified: 2008-11-05 22:55 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 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.