Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 735660 - Make it an error to enable a masked flag
Summary: Make it an error to enable a masked flag
Status: RESOLVED DUPLICATE of bug 489304
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-03 07:29 UTC by Raymond Jennings
Modified: 2021-04-22 10:15 UTC (History)
2 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 Raymond Jennings 2020-08-03 07:29:11 UTC
Make it the same kind of error to enable a masked flag as it is to try to install a masked package (license, keyword, hard-mask, etc)

example: trying to install a package with the "consolekit" use flag enabled if the flag is masked

Reproducible: Always

Actual Results:  
a diagnostic is printed but otherwise the flag is silently ignored

Expected Results:  
emerge should notice the attempt to activate the masked flag and raise an error the same way it does for attempting to install a masked package

bug 723448 is related, but this one proposes to make it an error and not simply inform the user
Comment 1 Ionen Wolkens gentoo-dev 2020-08-03 10:22:40 UTC
Could be a concern in situations where the mask is temporary (e.g stable masks, temporary bugs, etc..) where if not an error it'd simply restore itself once possible, otherwise user will have to keep track of the mask status to know when it's usable again and likely not be alerted the other way around.

For shared configs between multiple machines it could also require extra fine-tuning, like arch-specific USE masks, currently it just ignore those which is fine.

Even if non-fatal, not sure I'd want to be flooded with warnings either. Personally haven't had any usability issues with how things currently are, I just pay attention to the "()" to know if the flag is profile forced.

If errors are added I'd at least like a way to revert to old behavior.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-22 10:15:47 UTC

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