Summary: | Full support for distcc's pump mode | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Tobias Klausmann (RETIRED) <klausman> |
Component: | Enhancement/Feature Requests | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | burcheri.massimo+bugs-gentoo, caster, mattst88, piotrekrogowski, tomboy64, wolf31o2 |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=473856 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 358927 | ||
Attachments: | [RFC]distcc-pump support |
Description
Tobias Klausmann (RETIRED)
![]() pump --help if you run eval `pump --startup` berore emerge it's work fine after emerge you shuld type pump --shutdown its forwarding pumps comunication into distcc executed by emerge --- sorry for my english (In reply to comment #1) > eval `pump --startup` How does this help with the UID problem? I could start pump with sudo -u portage pump, but I still wouldn't be able to get the portage-internal environment changed easily - yes, there's env.d, but I think it'd be better to just have the call to pump be integrated with portage/emerge. Thumb up! Pump+lzo may make distcc worth over a 1 Mbps link (I gotta try). By the way, do distcc work with c++ files? Or you still need ,cpp option appended to hosts that can compile c++ ? (In reply to comment #3) > By the way, do distcc work with c++ files? > Or you still need ,cpp option appended to hosts that can compile c++ ? Yes, distcc works with C++ automagically, the option/attribute "cpp" stands for C/C++ pre-processor (i.e. include files, defines etc) and has nothing to do with the distinction between C and C++ (distcc mostly doesn't care about that, it basically tells the helping host compile this file with these options using a binary named like that). Created attachment 274111 [details, diff]
[RFC]distcc-pump support
Added '$(/usr/bin/pump --startup)' and 'trap "/usr/bin/pump --shutdown" EXIT' before src_compile.
(In reply to comment #5) > Created attachment 274111 [details, diff] > [RFC]distcc-pump support > > Added '$(/usr/bin/pump --startup)' and 'trap "/usr/bin/pump --shutdown" EXIT' > before src_compile. Thanks, this is in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=729531f12e097f8bcbbe12d86bad169f27aa8aca This is included in portage-2.2.0_alpha35, but I'll leave this bug open until it's released in an unmasked version. How to use this new feature? FEATURES="distcc distcc-pump" or just FEATURES="distcc-pump" ? Will it work out of the box? (In reply to comment #8) > How to use this new feature? > FEATURES="distcc distcc-pump" > > or just FEATURES="distcc-pump" ? You need both enabled. > Will it work out of the box? I haven't tested it myself. This is in 2.1.9.50. Could you change this to call 'pump' rather than '/usr/bin/pump'? Thanks. (In reply to comment #11) > Could you change this to call 'pump' rather than '/usr/bin/pump'? Thanks. Ok, this is in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=12dd82b64c23764fab5a185bcfba446af3fcbf46 *** Bug 426290 has been marked as a duplicate of this bug. *** Please comment if the distcc-pump feature is useful to you. There's a proposal to remove the distcc-pump feature: https://archives.gentoo.org/gentoo-portage-dev/message/3f3d3edc76819e131ac0a821a5725f69 |