Summary: | [Future EAPI] Suggest to specify a way to query for available USE flags | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Pacho Ramos <pacho> |
Component: | PMS/EAPI | Assignee: | PMS/EAPI <pms> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | caster, esigra, jlec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | in-eapi-6 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 174380 |
Description
Pacho Ramos
2013-01-02 23:29:09 UTC
Is IUSE the right variable to query, or should it rather be IUSE_EFFECTIVE? http://dev.gentoo.org/~ulm/pms/5/pms.html#x1-11900011.1.1 (In reply to Ulrich Müller from comment #1) > Is IUSE the right variable to query, or should it rather be IUSE_EFFECTIVE? > http://dev.gentoo.org/~ulm/pms/5/pms.html#x1-11900011.1.1 I believe IUSE_EFFECTIVE would fit best with the rest of the spec. For example, section "Use State Constraints" http://dev.gentoo.org/~ulm/pms/5/pms.html#x1-890008.2.7 says: "It is an error for a flag to be used if it is not included in IUSE_EFFECTIVE." Maybe we should then avoid "iuse" as part of the function's name. How about "use_available" or "use_valid"? Caster has just brought this up (here at Gentoo Miniconf 2014): Should the query function return true for the flags that are runtime switchable (see bug 424283)? (In reply to Ulrich Müller from comment #3) > Caster has just brought this up (here at Gentoo Miniconf 2014): Should the > query function return true for the flags that are runtime switchable (see > bug 424283)? I'd say yes. I don't see why it would treat them specially. *** Bug 560844 has been marked as a duplicate of this bug. *** |