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

Bug 359659

Summary: sys-apps/portage add support for cpv[useflagslist] as pkgcore have
Product: Portage Development Reporter: Magnus Granberg <zorry>
Component: CoreAssignee: Portage team <dev-portage>
Status: IN_PROGRESS ---    
Severity: enhancement CC: dan, esigra, nikoli, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 258371    
Bug Blocks:    

Description Magnus Granberg gentoo-dev 2011-03-20 20:53:36 UTC
To make it support sys-foo/foo[useflags] as pkgcore do see
http://www.pkgcore.org/trac/pkgcore/browser/doc/extended-atom-syntax.rst
Now you get some thing like this
laptop1 ~ # emerge -pv udev[test]
These are the packages that would be merged, in order:

Calculating dependencies  ... done!

emerge: there are no ebuilds built with USE flags to satisfy "udev[test]".
!!! One of the following packages is required to complete your request:
- sys-fs/udev-164-r1 (Change USE: +test)


Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2011-03-20 21:21:54 UTC
I think we can consider this as a subset of bug 258371, since if we add an option to automatically satisfy USE dependencies, it should apply to atoms given on the command line.
Comment 2 Zac Medico gentoo-dev 2011-07-05 18:43:36 UTC
This already works with emerge --autounmask, which is enabled by default since portage-2.1.10. However, it requires that you run the command a second time after making the required config changes (for which you can use --autounmask-write to have the config changes written automatically).