Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 622480

Summary: sys-apps/portage: add --autounmask-keep-keywords option
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, gentoo, pacho
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=622462
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 155723, 376695, 627566    

Description Zac Medico gentoo-dev 2017-06-22 16:27:58 UTC
In some cases like bug 622462, emerge suggests mask changes when only USE changes are necessary. I would be nice to have a --autounmask-use-only option so that only USE changes are allowed (--autounmask-keep-masks allows keyword changes that are not necessarily desirable).
Comment 1 Michael 'veremitz' Everitt 2017-06-22 19:33:53 UTC
Patch and pull-request in progress. Just need to finish man page adjustment and write a quick unit test.
https://github.com/mjeveritt/portage/tree/use_only
Comment 2 Zac Medico gentoo-dev 2017-08-12 18:15:50 UTC
Since the first implementation of --autounmask-use-only also allows license changes, it's a misnomer. Instead, I propose a --autounmask-keep-keywords option. Patch set for review:

https://archives.gentoo.org/gentoo-portage-dev/message/73650382127a6a8858f2a4b1343443b6
https://github.com/gentoo/portage/pull/188
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-09-11 12:56:14 UTC
Would it make sense to document an order in which portage should try to change configuration like USE flags (profile, make.conf, command line) and build command line options around that. It seems to me that changes like this are adding more and more options to emerge which kind of obfuscate it.