Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300020 - sys-apps/portage: emerge: resolve package internal use flag dependency on dependency calculation
Summary: sys-apps/portage: emerge: resolve package internal use flag dependency on dep...
Status: RESOLVED DUPLICATE of bug 238887
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-07 11:33 UTC by Hanno Zysik (geki)
Modified: 2010-01-07 18:56 UTC (History)
0 users

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 Hanno Zysik (geki) 2010-01-07 11:33:02 UTC
AFAIK it is not possible to resolve a use flag dependency of another use flag of the same package.

There is the workaround of confutils.eclass functions to check such a dependency at pkg_setup phase.

Instead of this workaround portage could have a simple solution, best chown by an example:

DEPEND="
gtk? ( ... )
gnome? ( [gtk] ... )
"

So, technically spoken, if portage is within use flag brackets in *DEPEND, it may check the token with a regular expression of "^\[.*\]$". Inside that square brackets would be equivalent to package use flag depend.

PHP would benefit, openoffice ( taken for the example above ) and other I guess. That would make also many users happy that do an "emerge -e @world", for example, So that it won't fail inbetween somewhen, somewhere.
Comment 1 Zac Medico gentoo-dev 2010-01-07 18:56:51 UTC

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