Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273626 - Use dependency defaults (EAPI 4)
Summary: Use dependency defaults (EAPI 4)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 273620
  Show dependency tree
 
Reported: 2009-06-10 20:21 UTC by Sebastian Luther (few)
Modified: 2010-08-14 03:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
use defaults patch by Sebastian Luther (few) (use_defaults.patch,9.67 KB, text/plain)
2010-03-19 10:14 UTC, Zac Medico
Details
portage-r15840-use-dep-defaults.patch (portage-r15840-use-dep-defaults.patch,10.77 KB, patch)
2010-03-22 18:23 UTC, Sebastian Luther (few)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Luther (few) 2009-06-10 20:21:14 UTC
This bug tracks the implementation of the EAPI 3 feature mentioned in the summary.
Comment 1 Jonathan Callen (RETIRED) gentoo-dev 2009-10-17 21:49:27 UTC
From PMS:

In a 3-style use dependency, the flag name may immediately be followed by a default specified by either (+) or (-). The former indicates that, when applying the use dependency to a package that does not have the flag in question in IUSE_REFERENCEABLE, the package manager shall behave as if the flag were present and enabled; the latter, present and disabled.

Unless a 3-style default is specified, it is an error for a use dependency to be applied to an ebuild which does not have the flag in question in IUSE_REFERENCEABLE.

Note: By extension of the above, a default that could reference an ebuild using an EAPI not supporting profile IUSE injections cannot rely upon any particular behaviour for flags that would not have to be part of IUSE.

It is an error for an ebuild to use a conditional use dependency when that ebuild does not have the flag in IUSE_EFFECTIVE. 
Comment 2 Zac Medico gentoo-dev 2010-03-19 10:14:01 UTC
Created attachment 224219 [details]
use defaults patch by Sebastian Luther (few)

I've been sitting on the patch for awhile and haven't reviewed it yet, I'm posting it here in case anyone else wants to have a look. Hopefully I'll get around to reviewing and committing it soon.
Comment 3 Sebastian Luther (few) 2010-03-22 18:23:09 UTC
Created attachment 224745 [details, diff]
portage-r15840-use-dep-defaults.patch

I forgot a case in portage.dbapi._iter_match_use that is triggered by portageq.