Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570436 - dev-db/mongodb-3.2.0: workarounds distcc somehow, resulting in abuse of build jobs
Summary: dev-db/mongodb-3.2.0: workarounds distcc somehow, resulting in abuse of build...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-31 20:09 UTC by Michał Górny
Modified: 2016-01-01 09:38 UTC (History)
2 users (show)

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 2015-12-31 20:09:02 UTC
I don't know what this bastardly thing does but it uses 'g++' instead of my CXX, and moreover it somehow calls g++ directly rather than using distcc wrapper through PATH. I would suspect it hardcodes /usr/bin/g++ somewhere.

The results are slow compilation, abuse of build jobs (since distcc limiting doesn't work) and eventually OOM-ing on me.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-01-01 09:24:50 UTC
Ok, it's actually scons' fault. It ignores PATH by default, and build systems have to explicitly force respecting it...
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-01-01 09:38:12 UTC
commit cad1e743614674af89fc9fced03594bcab6f20a3
Author: Michał Górny <mgorny@gentoo.org>
Date:   Fri Jan 1 10:36:29 2016

    dev-db/mongodb: [QA] Make SCons respect PATH, #570436

commit 52e99ad8745af634ced0e18fdf76410d14a0233d
Author: Michał Górny <mgorny@gentoo.org>
Date:   Fri Jan 1 09:54:01 2016

    dev-db/mongodb: [QA] Respect CC & CXX

commit d8d31e5ad00737872046269b339e327bc715f318
Author: Michał Górny <mgorny@gentoo.org>
Date:   Fri Jan 1 09:52:15 2016

    dev-db/mongodb: Convert scons_opts into an array, to preserve whitespace
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-01-01 09:38:53 UTC
It would be nice to get this upstream. Or make SCons respect the environment. Or even better make them dump this ugly piece of SCons and use a sane build system. Like waf or something.