summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-26 21:17:18 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-26 21:17:18 +0000
commit598a46df25a4e0fde644880012ec9b0a28e2bfc0 (patch)
tree1f230a7cf7fccce19b9fb4b4934c01738abbbf05 /bin
parentMake StaticFileSet.multiBuilder() filter hidden files and directories. Thanks (diff)
downloadportage-multirepo-598a46df25a4e0fde644880012ec9b0a28e2bfc0.tar.gz
portage-multirepo-598a46df25a4e0fde644880012ec9b0a28e2bfc0.tar.bz2
portage-multirepo-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-xbin/ebuild.sh19
1 files changed, 4 insertions, 15 deletions
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"