1 |
On Sat, 2003-11-22 at 03:40, Spider wrote: |
2 |
<snip> |
3 |
|
4 |
In short it is like this : |
5 |
|
6 |
USE="gtk gtk2" |
7 |
|
8 |
Use gtk+ UI if available (this might be gtk+-1 or gtk+-2, depending on |
9 |
the application & version), if there's both gtk+-1 and gtk+-2 UIs in the |
10 |
package build the gtk+-2 UI. |
11 |
|
12 |
USE="gtk -gtk2" |
13 |
|
14 |
Use gtk+ UI if available (this might be gtk+-1 or gtk+-2, depending on |
15 |
the application & version), if there's both a gtk+-1 and gtk+-2 UIs in |
16 |
the package build the gtk+-1 UI. |
17 |
|
18 |
USE="-gtk -gtk2" |
19 |
|
20 |
Always disable optional gtk+ UI support (doesn't matter if it's gtk+-1 |
21 |
or gtk+-2). |
22 |
|
23 |
USE="-gtk gtk2" |
24 |
|
25 |
Illegal for builds that have an optional gtk+-1 or gtk+-2 UI. 'gtk2' is |
26 |
a qualifier for 'gtk' and should have no effect in this case, the gtk+ |
27 |
UI building has been disabled with '-gtk'. This logic is flawed in quite |
28 |
a few ebuilds and this combination results in undefined behaviour and |
29 |
should be fixed. |
30 |
|
31 |
Could be considered legal for builds that have a non-optional gtk+-1 or |
32 |
gtk+-2 gui. Although in this case for simplicity and consistency sake i |
33 |
would suggest we just default to the most mature and/or recent one of |
34 |
the UIs and make it use the 'gtk' USE flag only. In time we should be |
35 |
able to phase out the gtk2 USE flag altogether (it was meant as a short |
36 |
transition flag). |
37 |
|
38 |
|
39 |
The gtk/gtk2 USE flag combination has been a source of confusion over |
40 |
time, in retrospect this may not have been the best solution to the |
41 |
mixed packages problem at the time (both gtk+1 and gtk+-2 UIs in one |
42 |
package). It worked sufficiently up to now and changing it would |
43 |
probably more trouble than that would be gained from it. |
44 |
|
45 |
In a future similar case this would most likely be done in a different |
46 |
way. |
47 |
|
48 |
For now i suggest devs trying to fix their ebuild's gtk/gtk2 handling to |
49 |
contact one of the gnome devs to work out the best fix. |
50 |
|
51 |
- foser |
52 |
|
53 |
|
54 |
-- |
55 |
gentoo-dev@g.o mailing list |