Gentoo Archives: gentoo-dev

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] gtk2/gtk3 use flags
Date: Tue, 20 Aug 2013 23:28:04
Message-Id: 1377041269.1079.4.camel@kanae
In Reply to: Re: [gentoo-dev] gtk2/gtk3 use flags by Samuli Suominen
1 Le samedi 17 août 2013 à 15:33 +0300, Samuli Suominen a écrit :
2 > On 16/08/13 20:12, Michael Weber wrote:
3 > > Hello,
4 > >
5 > > gtk is a global use flag [1], gtk2 and gtk3 are used in metadata.xml [2].
6 > >
7 > > Is there a consensus how to use these flags if an app provides gtk2
8 > > and gtk3 gui in parallel or exclusive?
9 >
10 > 'gtk' uses best possible version as defined by the package maintainer
11 >
12 > 'gtk3' is a special flag that is used when package supports both gtk and
13 > gtk3 at the same time, and matches the criteria of sanity which is a)
14 > it's an library that is used by multiple programs b) is not easy to
15 > split, which would otherwise be preferred over using the USE flag
16 >
17 > 'gtk2' is never required, those matching it down from the list have weak
18 > design which goes against every other ebuild in tree, but is still
19 > package maintainers decision
20 >
21 > special flags like 'IUSE="+deprecated"' can be used if there is a need
22 > to enable the old GTK+ implementation by default, but still provide the
23 > new one, in programs. like if enabling GTK+3 instead of GTK+2 would
24 > disable you from using flash plug-in in a browser, would qualify in.
25 >
26 > imho :)
27
28 Quick read says that it is exactly what the gnome herd said over and
29 over on this list and on IRC.
30
31 I'll also write it down again for regular applications, having a USE
32 flag for controlling build of your application against gtk+:2 or 3 is
33 not what the gnome team recommends. Either the gtk3 UI is working or it
34 is not satisfying, there is no in the middle.
35
36 --
37 Gilles Dartiguelongue <eva@g.o>
38 Gentoo