Summary: | sys-devel/distcc-3.* init script fails to set up distccd for cross compiling | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yang Zhao <yang> |
Component: | Current packages | Assignee: | MATSUU Takuto (RETIRED) <matsuu> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | hp-cluster |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Pull all available and active compilers into distccd PATH
distcc-init.patch distcc-init.patch |
Description
Yang Zhao
2009-03-17 08:16:02 UTC
Created attachment 185285 [details, diff]
Pull all available and active compilers into distccd PATH
Comment on attachment 185285 [details, diff]
Pull all available and active compilers into distccd PATH
This patch to distccd init file pulls gcc bin paths for all active gcc profiles into PATH.
hmm, ${PATH} has all active pcompilers on my env. Could you put results of these commands? # gcc-config -l # echo ${PATH} btw, please don't remove '$(gcc-config --get-bin-path)' from first part of ${PATH}. It works as fail-safe. (In reply to comment #3) > hmm, ${PATH} has all active pcompilers on my env. > Could you put results of these commands? > > # gcc-config -l > # echo ${PATH} yzhao@sui ~ $ gcc-config -l [1] i686-pc-linux-gnu-4.1.2 * [2] x86_64-pc-linux-gnu-4.1.2 * yzhao@sui ~ $ echo ${PATH} /usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/qt/3/bin ${PATH} for a normal user will be set properly, but not for distccd launched through start-stop-daemon. This is related to #164818, where the fix involved explicitly extracting GCC_SPECS from profile.env instead of sourcing the whole thing. PATH needs some extra handling as well. Created attachment 185477 [details, diff]
distcc-init.patch
how about this used $(gcc-config -E) and 'start-stop-daemon --env'?
(In reply to comment #5) > Created an attachment (id=185477) [edit] > distcc-init.patch > > how about this used $(gcc-config -E) and 'start-stop-daemon --env'? Looks good to me; just confirmed it works as expected. I missed the -E option entirely. On a minor point, you forgot to include a number reference to bug #164818. Created attachment 185545 [details, diff] distcc-init.patch gcc-config-1.4.1 supports GCC_SPECS: 28 Jan 2009; Mike Frysinger <vapier@gentoo.org> files/gcc-config-1.4.1, gcc-config-1.4.1.ebuild: Update libgcj.pc symlinks #136382 #216241 and set GCC_SPECS with -E #251271 by Diego E. Pettenò. 3.1-r3 in cvs. thanks. Verified. Thanks! |