Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 553488 - Expose the original pre-make.defaults environment to bashrc
Summary: Expose the original pre-make.defaults environment to bashrc
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-28 13:22 UTC by Daniel Douglas
Modified: 2015-06-28 15:07 UTC (History)
1 user (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 Daniel Douglas 2015-06-28 13:22:29 UTC
As far as I'm aware a copy of the initial environment from emerge's parent isn't saved prior to being mangled by make.defaults. This makes it impossible to be certain whether a variable like USE or CFLAGS was set interactively (or at least passed to emerge).

It would be nice if portage could create an associative array with the key/value pairs of the original environment prior to sourcing /etc/portage/bashrc so that it's possible to directly test for them instead of having to define special variables like `CFLAGS_OVERRIDE' and test for those.

Is there a more reasonable approach that works now? This should be a simple feature.

Reproducible: Always