Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507482 - sys-apps/portage: FEATURES=distcc-pump doesn't work outside of src_compile()
Summary: sys-apps/portage: FEATURES=distcc-pump doesn't work outside of src_compile()
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-12 08:59 UTC by Michał Górny
Modified: 2014-09-11 22:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-12 08:59:32 UTC
Currently, portage starts distcc-pump server in src_compile(), and terminates when leaving that phase. As a result, compilations done e.g. in src_test() result in a lot of errors alike:

distcc[22139] ERROR: failed to connect to UNIX-DOMAIN /tmp/distcc-pump.6716Nx/socket: No such file or directory
distcc[22139] (dcc_build_somewhere) Warning: failed to get includes from include server, preprocessing locally

(and obviously lack of pump use)
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-04-12 09:53:42 UTC
(In reply to Michał Górny from comment #0)
> compilations done e.g. in src_test() result in a lot of errors alike:

What kind of compilations are these? Compilation of tests are usually placed in src_compile; or are these tests that do compilations, like in a compiler?
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-04-12 09:55:42 UTC
Send previous message too fast; I think that in the latter case, tests that do compilations, you might not want them to run through distcc as you will want to test the compilation on the local host and not have it fail due to distcc woes.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-13 16:43:52 UTC
Regular C programs that are built during src_test().

This is done e.g. with proper autotools packages that use stuff like 'check_PROGRAMS' instead of building tests all the time or on random conditionals.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-11 22:35:40 UTC
Now in git.