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

Bug 560166

Summary: sys-apps/portage: make.conf and make.defaults parser performs invalid substitutions for incremental variables such as USE
Product: Portage Development Reporter: Rick Farina (Zero_Chaos) <zerochaos>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rick Farina (Zero_Chaos) gentoo-dev 2015-09-10 18:15:13 UTC
Example make.conf:

USE="foo"
USE="${USE} bar"

will be parsed to show that USE="foo bar" was set in make.conf

second example make.conf:

USE="${USE} bar"

this second example will be parsed to show that USE="${profile_use} bar" was set in make.conf which causes the USE setting in make.defaults to then override all other settings such as those in package.use
Comment 1 Zac Medico gentoo-dev 2015-09-10 18:45:30 UTC
I guess it makes sense to treat incremental variables as unset at the beginning of a getconfig call (which may parse multiple files if a directory is used in place of a file). For regular non-incremental variables, it makes sense to be able to access/substitute values set earlier in the profile, but for incremental variables it doesn't seem to have any valid use case.
Comment 2 Zac Medico gentoo-dev 2021-04-09 21:26:34 UTC

*** This bug has been marked as a duplicate of bug 771549 ***