1 |
On Sun, 2012-06-10 at 04:38 +0200, hasufell wrote: |
2 |
> Bug #420433 lately introduced the discussion again if and when we should |
3 |
> support older (deprecated) toolkit versions. |
4 |
> |
5 |
> As for the named bug it may make sense to support it, cause the gtk3 |
6 |
> useflag would lead to different (reduced) functionality of that package. |
7 |
> (but that shall not be the discussion here) |
8 |
> |
9 |
> Generally I think gtk3 useflags should be avoided and only be a |
10 |
> workaround during migration to gtk+:3. Optimally gtk+:3 should always be |
11 |
> forced when available and not leading to major issues. |
12 |
> On the other hand... if gtk+:3 implementation is broken I would suggest |
13 |
> to simply force gtk+:2 without any gtk3 useflag. So we have ONE working |
14 |
> toolkit version. |
15 |
> |
16 |
> Introducing stuff like gtk3 useflag will let users think this is about |
17 |
> choice, but it's actually not (gtk+:2 is not being developed any longer |
18 |
> afais). |
19 |
> |
20 |
> Would it make sense to add a tracker for packages currently using gtk3 |
21 |
> useflag, so this will not become a habit and only be a workaround? |
22 |
|
23 |
The Gnome team's recommendation is to avoid gtk3 or gtk2 USE flags. |
24 |
|
25 |
For libraries, if possible, try splitting gtk2 and gtk3 support into |
26 |
different slots (see net-libs/webkit-gtk for an example; the gtk2-based |
27 |
versions have -r2xx revision numbers and go in slot 2, while the |
28 |
gtk3-based versions have -r3xx revision numbers and go in slot 3). |
29 |
Unfortunately, for a few libraries, this splitting is difficult to do in |
30 |
a sane and maintainable manner, so then a gtk3 USE flag could be the |
31 |
least bad solution. |
32 |
|
33 |
For applications, just pick one version of gtk. If a particular version |
34 |
works better, use only that one (e.g. if building an application against |
35 |
gtk3 would result in reduced functionality or introduce crashes, or if |
36 |
upstream calls it experimental, you should probably stick with gtk2 for |
37 |
now). If the results of building against gtk2 or gtk2 are mostly |
38 |
equivalent, I suggest only building against gtk3, because gtk2 is |
39 |
basically legacy code that doesn't get much attention from gtk upstream. |
40 |
|
41 |
-Alexandre |