Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655322 - dev-util/scons: Patch to preserve environment by default?
Summary: dev-util/scons: Patch to preserve environment by default?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-09 11:44 UTC by Michał Górny
Modified: 2018-05-09 15:26 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 2018-05-09 11:44:33 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2018-05-09 15:26:00 UTC
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(+)