Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611274 - sys-apps/portage: conflicting use flags should be sanity checked
Summary: sys-apps/portage: conflicting use flags should be sanity checked
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
Depends on:
Reported: 2017-03-01 04:50 UTC by Raymond Jennings
Modified: 2022-10-20 02:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Jennings 2017-03-01 04:50:44 UTC
Portage should notice and report conflicting USE flag declarations in /etc/portage/package.use/*.


grub: sys-boot/grub -theme
misc: sys-boot/grub theme

Instead of rolling the random number dice, it should notice the conflict and emit a diagnostic.
Comment 1 Raymond Jennings 2017-03-04 06:26:26 UTC
A similiar check on the portage tree's profiles may also prove useful as a QA test.  Different levels can override each other, but there's provable ambiguity if it's in the same layer.

IMHO, detection of such a blatant contradiction should be an error.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-20 02:19:01 UTC
It would be valid to do something like this for quick local overrides though. I'm not sure we're that bothered about this.

I feel like it'd be a lot of effort to implement with very little gain, but I suppose the confusion isn't great when hitting this problem?