Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560166 - sys-apps/portage: make.conf and make.defaults parser performs invalid substitutions for incremental variables such as USE
Summary: sys-apps/portage: make.conf and make.defaults parser performs invalid substit...
Status: RESOLVED DUPLICATE of bug 771549
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-10 18:15 UTC by Rick Farina (Zero_Chaos)
Modified: 2021-04-09 21: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 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 ***