Gentoo Archives: gentoo-pms

From: Ulrich Mueller <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: [gentoo-pms] Runtime-switchable USE flags
Date: Wed, 25 Jun 2014 10:15:10
Message-Id: 21418.41256.684838.99427@a1i15.kph.uni-mainz.de
1 Hi,
2 The council has approved runtime-switchable USE flags [1,2] for
3 EAPI 6. Several questions arise:
4
5 - If we introduce the feature with an EAPI, we need not care about
6 backwards compatibility. It would be possible to mark runtime
7 switchable flags by some syntax in IUSE, instead of introducing
8 a new variable like IUSE_RUNTIME.
9
10 So far, "%-foo", "@-foo", "*foo", and "foo*" have been suggested as
11 syntax. I don't like the first two because they don't look so nice
12 when combined with "+" or "-" IUSE defaults; mgorny doesn't like the
13 last two because they look like wildcards. Some bikeshedding for the
14 syntax is needed.
15
16 - Do we really need all these restrictions for ebuilds listed in [3]?
17 Especially, restricting possible USE dependencies will complicate
18 the spec, and I don't see the benefit of such a restriction.
19
20 - Why would we restrict referencing the flags in phase functions?
21 For example, I would consider something like the following in
22 pkg_postinst() a valid use case:
23
24 use foo || elog "For foo support, install package app-misc/foo"
25
26 Instead, I suggest that we simply say "runtime switchable flags must
27 not have any effect on the files installed by the ebuild".
28
29 Ulrich
30
31
32 [1] https://wiki.gentoo.org/wiki/GLEP:62
33 [2] https://forums.gentoo.org/viewtopic-p-4194219.html#4194219
34 [3] https://wiki.gentoo.org/wiki/GLEP:62#Specification

Replies

Subject Author
Re: [gentoo-pms] Runtime-switchable USE flags "Michał Górny" <mgorny@g.o>
Re: [gentoo-pms] Runtime-switchable USE flags Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Re: [gentoo-pms] Runtime-switchable USE flags David Leverton <levertond@××××××××××.com>