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

Bug 566704

Summary: sys-apps/portage: emerge misses automask settings for conditional USE deps
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: Normal Keywords: InVCS
Version: 2.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 376695    

Description Zac Medico gentoo-dev 2015-11-24 08:24:19 UTC
When there are unsatisfied conditional USE dependencies, emerge will report an unsatisfied dependency and suggest a USE change as follows 

emerge: there are no ebuilds built with USE flags to satisfy "dev-python/mock[python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_jython2_7(-)
?,-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_jython2_7(-)]".
!!! One of the following packages is required to complete your request:
- dev-python/foo::gentoo (Change USE: -python_targets_jython2_7)


It would be nicer if emerge converted the "Change USE" suggestion into an autounmask change which can be automatically written to package.use when --autounmask-write is enabled.
Comment 1 Zac Medico gentoo-dev 2015-11-24 09:35:25 UTC
There's a patch in the following branch:

https://github.com/zmedico/portage/tree/bug_566704

I've posted it for review here:

https://archives.gentoo.org/gentoo-portage-dev/message/fab681966acf99d7be6df55e5fa2054f
Comment 3 Alexander Berntsen (RETIRED) gentoo-dev 2016-02-03 14:15:00 UTC
Released in 2.2.26.