Gentoo Archives: gentoo-dev

From: Maurice van der Pot <griffon26@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] GLEP 29 (USE Flag Grouping) with -@GROUP goodness
Date: Mon, 25 Oct 2004 08:07:56
Message-Id: 20041025080746.GH7905@kfk4ever.com
In Reply to: Re: [gentoo-dev] GLEP 29 (USE Flag Grouping) with -@GROUP goodness by Marius Mauch
1 On Mon, Oct 25, 2004 at 03:02:08AM +0200, Marius Mauch wrote:
2 > On 10/24/04 Ed Grimm wrote:
3 >
4 > > How about the following:
5 > >
6 > > We add a + operator, to specify settings which are fundamentally part
7 > > of the group. Negating the group strips all negations, strips all
8 > > simply present flags, and negates those with a +.
9
10 Ed, that's a good idea. I'd go with this instead of adding some new
11 character to indicate a dependency.
12
13 > Please lets try to keep this as simple as possible. Personally I don't
14 > see what's wrong with a simple string expansion with the optional
15 > negation modifier. True, this might create results in some situations
16 > that are confusing at first view, but at least it's easy to explain,
17 > every more complicated proposal will also create (other) potentially
18 > confusing results and will be harder to explain.
19 So in your view, what Ed and I are suggesting is more complex than the
20 original proposal? I definitely disagree on that. The implementation of
21 what I proposed is simple to implement (handle a group at a time, automatically
22 making circular references impossible), simple to debug (groups do not
23 influence eachother unless one lists the other, evaluation is not order
24 dependent) and simple to use (if a user doesn't think about it a lot,
25 it will still have the expected results in cases like @KDE -@GNOME).
26
27
28 > And keep in mind: more
29 > complexity results in longer implementation times (well, design +
30 > implementation + testing + documentation).
31
32 This code is preprocessing for a set of use flags. Once the preprocessing
33 is done, you will have a final set of use flags that will be used like
34 USE= is now. It doesn't get much easier to test than that.
35
36 Maurice.
37
38 --
39 Maurice van der Pot
40
41 Gentoo Linux Developer griffon26@g.o http://www.gentoo.org
42 Creator of BiteMe! griffon26@××××××××.com http://www.kfk4ever.com

Replies