Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449862 - [Future EAPI] Suggest to specify a way to query for available USE flags
Summary: [Future EAPI] Suggest to specify a way to query for available USE flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Package Manager Specification
URL:
Whiteboard: in-eapi-6
Keywords:
: 560844 (view as bug list)
Depends on:
Blocks: future-eapi
  Show dependency tree
 
Reported: 2013-01-02 23:29 UTC by Pacho Ramos
Modified: 2015-11-09 07:50 UTC (History)
3 users (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 Pacho Ramos gentoo-dev 2013-01-02 23:29:09 UTC
This comes from:
http://www.gossamer-threads.com/lists/gentoo/dev/260662

After lots of messages, looks like ferringb solution shouldn't be hard to implement:
http://www.gossamer-threads.com/lists/gentoo/dev/260812#260812

And would be nice to get it finally for next eapi6 (whenever it's released)

Thanks a lot

Reproducible: Always
Comment 1 Ulrich Müller gentoo-dev 2013-08-15 09:13:00 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
Comment 2 Ulrich Müller gentoo-dev 2014-01-13 11:58:04 UTC
(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"?
Comment 3 Ulrich Müller gentoo-dev 2014-10-04 13:06:27 UTC
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)?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-04 15:03:07 UTC
(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.
Comment 5 Zac Medico gentoo-dev 2015-09-19 16:28:29 UTC
*** Bug 560844 has been marked as a duplicate of this bug. ***