Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718396 - sys-apps/portage: document non-incremental behavior for USE_EXPAND variable setting in make.conf
Summary: sys-apps/portage: document non-incremental behavior for USE_EXPAND variable s...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-19 19:26 UTC by Zac Medico
Modified: 2024-01-27 10:24 UTC (History)
3 users (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 Zac Medico gentoo-dev 2020-04-19 19:26:30 UTC
The make.conf behavior for USE_EXPAND variables is slightly different from make.defaults behavior in profiles. There has always been an expectation that you could set VIDEO_CARDS="foo" and have that disable all of the video_cards_* settings from the profile, as shown in examples here:

https://wiki.gentoo.org/wiki/Xorg/Guide#make.conf

In the implementation, the difference in behavior arises from special treatment of USE_EXPAND variables in the config.regenerate method, where it translates USE_EXPAND variable setting from make.defaults into USE settings (and there's no equivalent code for USE_EXPAND variable settings from make.conf):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=637a13355cf4cc2906e34b61606d31d62acc9fcc