diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-26 21:17:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-26 21:17:18 +0000 |
commit | 598a46df25a4e0fde644880012ec9b0a28e2bfc0 (patch) | |
tree | 1f230a7cf7fccce19b9fb4b4934c01738abbbf05 /bin | |
parent | 820b027cd89d731b3e1c63c969c05642798e8247 (diff) | |
download | portage-598a46df25a4e0fde644880012ec9b0a28e2bfc0.tar.gz portage-598a46df25a4e0fde644880012ec9b0a28e2bfc0.tar.bz2 portage-598a46df25a4e0fde644880012ec9b0a28e2bfc0.zip |
Move checks for /usr/lib/distcc/bin and /usr/lib/ccache/bin to the python
side and don't add distcc to CC and CXX when /usr/lib/distcc/bin doesn't exist
since that won't necessarily work. Thanks to Jeroen Roovers <jer@g.o> for
reporting the issue with adding distcc to CC.
svn path=/main/trunk/; revision=13198
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild.sh | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index f66de9aea..d36c81e0c 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1887,26 +1887,15 @@ ebuild_main() { if ! hasq $EBUILD_SH_ARGS clean depend help info nofetch ; then if hasq distcc $FEATURES ; then - if [ -d /usr/lib/distcc/bin ] ; then - [[ -z ${PATH/*distcc*/} ]] && remove_path_entry distcc - export PATH="/usr/lib/distcc/bin:$PATH" - [[ -n $DISTCC_LOG ]] && addwrite "${DISTCC_LOG%/*}" - elif type -P distcc >/dev/null ; then - ! hasq distcc $CC && export CC="distcc $CC" - ! hasq distcc $CXX && export CXX="distcc $CXX" - fi + [[ -z ${PATH/*distcc*/} ]] && remove_path_entry distcc + export PATH="/usr/lib/distcc/bin:$PATH" + [[ -n $DISTCC_LOG ]] && addwrite "${DISTCC_LOG%/*}" fi if hasq ccache $FEATURES ; then [[ -z ${PATH/*ccache*/} ]] && remove_path_entry ccache - if [ -d /usr/lib/ccache/bin ] ; then - export PATH="/usr/lib/ccache/bin:$PATH" - elif [ -d /usr/bin/ccache ] ; then - export PATH="/usr/bin/ccache:$PATH" - fi - - [[ -z $CCACHE_DIR ]] && export CCACHE_DIR=/var/tmp/ccache + export PATH="/usr/lib/ccache/bin:$PATH" addread "$CCACHE_DIR" addwrite "$CCACHE_DIR" |