Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489304 - Make emerge whine when USE flags do not exist/are masked/etc
Summary: Make emerge whine when USE flags do not exist/are masked/etc
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 510164 723448 735660 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-24 20:03 UTC by Alexander Berntsen (RETIRED)
Modified: 2021-04-22 16:29 UTC (History)
6 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 Alexander Berntsen (RETIRED) gentoo-dev 2013-10-24 20:03:50 UTC
emerge should have an option to whine about USE flags when they don't exist/are masked/whatever. Just a "foo: USE flag is masked" or "foo: no such USE flag".
Comment 1 Alex Xu (Hello71) 2013-10-24 20:20:56 UTC
AFAIK, this doesn't really make sense in the context of Portage.

USE flags are merely an environment variable.

Moreover, just because it doesn't exist in the set of packages being merged, doesn't mean it's not valid. Unless you want Portage to check for the set of USE flags against *all* packages in the tree.
Comment 2 Alexander Berntsen (RETIRED) gentoo-dev 2013-10-24 21:25:51 UTC
I'm not talking about global USE flags but per package USE flags.
Comment 3 Alex Xu (Hello71) 2013-10-24 23:07:26 UTC
Atoms can span more than one version. What if the USE flag is only in a version that is in an overlay that is not on the current machine, but package.use is shared between machines?

What about multislot packages which modify IUSE?
Comment 4 Alexander Berntsen (RETIRED) gentoo-dev 2013-10-25 08:30:53 UTC
What I am proposing would only be a warning. So, if you use --ask, it will mention at the bottom that "foo-bar/fu baz: USE flag 'baz' is masked". I don't think the scenarios you are considering are problematic. Furthermore, this is only an option -- you can turn it off.

For my use case on my laptop this feature would be a win. Everyone who doesn't share this winnage can just not opt-in, so there is no losage.
Comment 5 Alexander Berntsen (RETIRED) gentoo-dev 2014-05-18 15:42:50 UTC
*** Bug 510164 has been marked as a duplicate of this bug. ***
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-22 10:15:20 UTC
*** Bug 723448 has been marked as a duplicate of this bug. ***
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-22 10:15:47 UTC
*** Bug 735660 has been marked as a duplicate of this bug. ***