1 |
On Monday 18 October 2004 08:05, Ciaran McCreesh wrote: |
2 |
> On Sun, 17 Oct 2004 23:39:46 +0200 Francesco Riosa |
3 |
> |
4 |
> <francesco@×××××××××.it> wrote: |
5 |
> | The GLEP specify that: |
6 |
> | Groups should *not* generally contain negative USE flags, as this |
7 |
> | would lead to confusion. |
8 |
> | |
9 |
> | my two cents are to *allow* negative USE flags and parse them |
10 |
> | *before* the additive ones. |
11 |
> |
12 |
> I'm against this, on the grounds that it's totally different from the |
13 |
> way everything else is handled USE-wise. |
14 |
|
15 |
I'm against the two cents (if necessary, I'll go into the 101 pitfalls) but |
16 |
I'm not against the negatives in groups. In fact, I think for USE flags they |
17 |
are actually required. For example, |
18 |
|
19 |
@GAMING="music maps sounds cdinstall -nojoystick" |
20 |
|
21 |
Then on negation, deal with it mathematically. For example, |
22 |
|
23 |
-@GAMING == -music -maps -sounds -cdinstall nojoystick |
24 |
|
25 |
From an implementation perspective, this seems clean and simple. From a |
26 |
maintainer's perspective, all reasonable functionality seems to be available. |
27 |
From a user's perspective, the result seems to intuitively match the intent. |
28 |
Having said that, I can't see negated USE flags every being useful within a |
29 |
group unless the USE flags themselves are negative. |
30 |
|
31 |
As for general processing, I'd think that what would be most intuitive given |
32 |
the current scheme of things is that things are expanded in place. Hence, |
33 |
|
34 |
Given, |
35 |
@KDE="kde qt arts X" |
36 |
@GNOME="gnome gtk esd X" |
37 |
then, |
38 |
USE="-@KDE @GNOME" |
39 |
becomes |
40 |
USE="-kde -qt -arts -X gnome gtk esd X" |
41 |
becomes |
42 |
USE="gnome gtk esd X" |
43 |
|
44 |
Similarly, |
45 |
USE="@KDE -@GNOME" |
46 |
becomes |
47 |
USE="kde qt arts X -gnome -gtk -esd -X" |
48 |
becomes |
49 |
USE="kde qt arts" |
50 |
|
51 |
Sure the second case may seem strange to the new user at first, but I'm sure |
52 |
that documentation and support will handle it just as it does the users that |
53 |
try to USE="-xfree". |
54 |
|
55 |
BTW, may as well keep the grouping discussion here. In fact, it might be best |
56 |
to remove grouping from the ACCEPT_LICENSE GLEP so as to get the rest of it |
57 |
finalized. See how time goes, I guess... |
58 |
|
59 |
Regards, |
60 |
Jason Stubbs |
61 |
|
62 |
-- |
63 |
gentoo-dev@g.o mailing list |