Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 566704 - sys-apps/portage: emerge misses automask settings for conditional USE deps
Summary: sys-apps/portage: emerge misses automask settings for conditional USE deps
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: autounmask
  Show dependency tree
 
Reported: 2015-11-24 08:24 UTC by Zac Medico
Modified: 2016-02-03 14:15 UTC (History)
1 user (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 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.