Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: useflag policies
Date: Mon, 03 Aug 2015 11:35:39
Message-Id: 20150803123522.5362c694@red.yakaraplc.local
In Reply to: [gentoo-dev] Re: useflag policies by Michael Palimaka
1 On Mon, 3 Aug 2015 21:23:37 +1000
2 Michael Palimaka <kensington@g.o> wrote:
3
4 > On 03/08/15 07:14, NP-Hardass wrote:
5 > > ^^ has the pleasant side effect of being easier to read, as a user.
6 > > The user receives a message saying "at-most-one-of" instead of some
7 > > convoluted other expression that they don't understand.
8 > >
9 > > I am all for the use of ^^ add the default for this reason.
10 >
11 > This introduces a usability nightmare for anyone with both qt4 and qt5
12 > in their global USE flags (a common configuration).
13
14 What if we had something like this?
15
16 REQUIRED_IUSE="^^qt ( qt5 qt4 )"
17
18 Users who don't care would set just qt rather than qt4 or qt5 and this
19 mechanism would automatically enable whichever one appears first in the
20 brackets. If qt4 or qt5 (or both) are set then the behaviour would
21 remain as it is now. Or perhaps some variation on this?
22
23 I'm not declaring this to be a great idea, just throwing it out there
24 for consideration. :)
25
26 --
27 James Le Cuirot (chewi)
28 Gentoo Linux Developer