Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 553488

Summary: Expose the original pre-make.defaults environment to bashrc
Product: Portage Development Reporter: Daniel Douglas <ormaaj>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: ormaaj
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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