diff options
author | MATSUU Takuto <matsuu@gentoo.org> | 2011-05-20 12:20:58 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-05-25 20:36:05 -0700 |
commit | c5346405cd10a848e95a21665e61843027ebad21 (patch) | |
tree | 7284d6bedb2ec34cc7bd4898309264207099d13d | |
parent | d8f02a6e4ba9429018065189fd1acecbc08132ea (diff) | |
download | portage-c5346405cd10a848e95a21665e61843027ebad21.tar.gz portage-c5346405cd10a848e95a21665e61843027ebad21.tar.bz2 portage-c5346405cd10a848e95a21665e61843027ebad21.zip |
Add FEATURES=distcc-pump support.
This will fix bug #288597.
-rwxr-xr-x | bin/ebuild.sh | 7 | ||||
-rw-r--r-- | man/make.conf.5 | 3 | ||||
-rw-r--r-- | pym/_emerge/EbuildPhase.py | 2 | ||||
-rw-r--r-- | pym/portage/const.py | 2 |
4 files changed, 12 insertions, 2 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 ..." diff --git a/man/make.conf.5 b/man/make.conf.5 index acb18ae88..e6e159e81 100644 --- a/man/make.conf.5 +++ b/man/make.conf.5 @@ -257,6 +257,9 @@ will be reused whenever they are available. .B distcc Enable portage support for the distcc package. .TP +.B distcc\-pump +Enable portage support for the distcc package with pump mode. +.TP .B distlocks Portage uses lockfiles to ensure competing instances don't clobber each other's files. This feature is enabled by default but may cause diff --git a/pym/_emerge/EbuildPhase.py b/pym/_emerge/EbuildPhase.py index 66b6bc8bc..ed09b5087 100644 --- a/pym/_emerge/EbuildPhase.py +++ b/pym/_emerge/EbuildPhase.py @@ -31,7 +31,7 @@ class EbuildPhase(CompositeTask): __slots__ = ("actionmap", "phase", "settings") # FEATURES displayed prior to setup phase - _features_display = ("ccache", "distcc", "fakeroot", + _features_display = ("ccache", "distcc", "distcc-pump", "fakeroot", "installsources", "keeptemp", "keepwork", "nostrip", "preserve-libs", "sandbox", "selinux", "sesandbox", "splitdebug", "suidctl", "test", "userpriv", diff --git a/pym/portage/const.py b/pym/portage/const.py index 6b7b05bf3..9def85a05 100644 --- a/pym/portage/const.py +++ b/pym/portage/const.py @@ -88,7 +88,7 @@ EBUILD_PHASES = ("pretend", "setup", "unpack", "prepare", "configure" SUPPORTED_FEATURES = frozenset([ "assume-digests", "binpkg-logs", "buildpkg", "buildsyspkg", "candy", "ccache", "chflags", "collision-protect", "compress-build-logs", - "digest", "distcc", "distlocks", "fakeroot", + "digest", "distcc", "distcc-pump", "distlocks", "fakeroot", "fail-clean", "fixpackages", "force-mirror", "getbinpkg", "installsources", "keeptemp", "keepwork", "fixlafiles", "lmirror", "metadata-transfer", "mirror", "multilib-strict", "news", |