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

Bug 365439

Summary: Add optional possibility of overriding variables set in /etc/portage/env by variables exported in parent environment
Product: Portage Development Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Severity: enhancement CC: jlec
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 358927    

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-04-30 17:51:09 UTC
Variables exported in parent environment override variables set in /etc/make.conf, but don't override variables set in /etc/portage/env.

VARIABLE="value" emerge ${package}
Comment 1 Zac Medico gentoo-dev 2011-04-30 18:22:47 UTC
Is this about package.env or /etc/portage/env bashrc? I ask since there's nothing that we can do about bashrc, since bashrc is always supposed to override everything else.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-01 01:26:42 UTC
set_unless_changed() and unset_unless_changed() helper functions have been added (after a discussion in IRC):;a=commitdiff;h=81354e43b5acf25cadc42f6c093d52acf8f832fb
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-01 14:54:23 UTC
Minor improvements:;a=commitdiff;h=693681562c7795473efd0caaa05b8d52b28f75db
Comment 4 Zac Medico gentoo-dev 2011-05-05 19:54:18 UTC
This is fixed in and 2.2.0_alpha31.
Comment 5 Zac Medico gentoo-dev 2011-05-28 07:47:20 UTC
*** Bug 368901 has been marked as a duplicate of this bug. ***