aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMATSUU Takuto <matsuu@gentoo.org>2011-05-20 12:20:58 -0700
committerZac Medico <zmedico@gentoo.org>2011-05-20 12:20:58 -0700
commit729531f12e097f8bcbbe12d86bad169f27aa8aca (patch)
tree1ea97625949b4d6c4c4fe83d35d0a0da9c08fc0b /bin
parentTask: precalculate _hash_value (diff)
downloadportage-729531f12e097f8bcbbe12d86bad169f27aa8aca.tar.gz
portage-729531f12e097f8bcbbe12d86bad169f27aa8aca.tar.bz2
portage-729531f12e097f8bcbbe12d86bad169f27aa8aca.zip
Add FEATURES=distcc-pump support.
This will fix bug #288597.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index c3cf18164..37a308481 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1071,6 +1071,13 @@ dyn_compile() {
trap abort_compile SIGINT SIGQUIT
+ if hasq distcc $FEATURES && hasq distcc-pump $FEATURES ; then
+ if [[ -z $INCLUDE_SERVER_PORT ]] || [[ ! -w $INCLUDE_SERVER_PORT ]] ; then
+ eval $(/usr/bin/pump --startup)
+ trap "/usr/bin/pump --shutdown" EXIT
+ fi
+ fi
+
ebuild_phase pre_src_compile
vecho ">>> Compiling source in $PWD ..."