From 598a46df25a4e0fde644880012ec9b0a28e2bfc0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 26 Mar 2009 21:17:18 +0000 Subject: 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 for reporting the issue with adding distcc to CC. svn path=/main/trunk/; revision=13198 --- bin/ebuild.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index f66de9ae..d36c81e0 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" -- cgit v1.2.3-65-gdbad