Given that we repeatedly hit problems due to the upstream's bright idea of scrubbing the environment to achieve 'reproducible' (read: reproducibly broken) builds, and that we practically would have to patch a lot of packages to workaround it, maybe it'd be a better idea to just patch dev-util/scons instead. Gotta research it at some point.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee2d9260e1f7cf0ad202cd29616f298ae7c0726d commit ee2d9260e1f7cf0ad202cd29616f298ae7c0726d Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2018-05-09 15:22:55 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-05-09 15:25:51 +0000 dev-util/scons: Support envvar pass-through override Add a Gentoo-specific envvar that can be used to force passing through of (ebuild) environment. This can be used to disable the bad default of wiping the entire environment and lets us restore sanity without having to patch every SCons-using project out there. Also should solve Prefix problems without conditional patching. Closes: https://bugs.gentoo.org/655322 .../scons/files/scons-3.0.1-env-passthrough.patch | 40 ++++++++++++ dev-util/scons/scons-3.0.1-r1.ebuild | 71 ++++++++++++++++++++++ 2 files changed, 111 insertions(+)