Gentoo Archives: gentoo-dev

From: waltdnes@××××××××.org
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] gtk/gtk2/gtk3 USE flag situation
Date: Fri, 27 May 2016 18:11:05
Message-Id: 20160527181048.GA4587@waltdnes.org
In Reply to: [gentoo-dev] [RFC] gtk/gtk2/gtk3 USE flag situation by Mart Raudsepp
1 On Fri, May 27, 2016 at 05:21:06PM +0300, Mart Raudsepp wrote
2
3 > This would ideally not be needed, as the package would instead be
4 > slotted and parallel installable for gtk2 and gtk3, which should be
5 > theoretically possible in all cases, because gtk2 and gtk3 may not live
6 > in the same process, so not the same library either.
7 > Due to some packages needing too much manpower effort to do such a
8 > split, USE flags are used in such a case.
9 > Good examples of such slot splits existing are for example the
10 > libappindicator stack. This used to be the case with almost all GNOME
11 > libraries as well, but most of them only provide gtk3 now, as gtk2 is,
12 > well, dead.
13
14 What at the original gtk+, for which the "gtk" flag was probably
15 originally invented?
16
17 [i3][waltdnes][~] ls /usr/portage/x11-libs/gtk+/*.ebuild
18 /usr/portage/x11-libs/gtk+/gtk+-1.2.10-r13.ebuild
19 /usr/portage/x11-libs/gtk+/gtk+-2.24.28-r1.ebuild
20 /usr/portage/x11-libs/gtk+/gtk+-2.24.29.ebuild
21 /usr/portage/x11-libs/gtk+/gtk+-2.24.30.ebuild
22 /usr/portage/x11-libs/gtk+/gtk+-3.16.7.ebuild
23 /usr/portage/x11-libs/gtk+/gtk+-3.18.7.ebuild
24 /usr/portage/x11-libs/gtk+/gtk+-3.18.9.ebuild
25
26 > tl;dr and my proposal would be the following:
27 >
28 > * USE=gtk means providing support for GTK+; because we don't have a
29 > USE=gui, this also means "provide a GUI version built on top of gtk+"
30 > for packages where a GUI is optional.
31
32 There is a way to specify a GUI...
33
34 [i3][waltdnes][~] grep "^\(X \|wayland \)" /usr/portage/profiles/use.desc
35 X - Add support for X11
36 wayland - Enable dev-libs/wayland backend
37
38 If overloading the meaning of USE="gtk" is the problem, the better
39 solution would be to use "X" or "wayland" or whatever to indicate the
40 GUI you need. "gtk" is a relic from the days of gtk+-1.x, when there
41 were no other versions of gtk. With the advent of multiple versions, we
42 arguably need "gtkn" useflags for every version in the tree, where "n"
43 is the major version #.
44
45 While we're at it, why are there 23 occurences of the "X" useflag in
46 /usr/portage/profiles/use.local.desc when it exists in
47 /usr/portage/profiles/use.desc ??? I'm talking about stuff like...
48
49 app-misc/vifm:X - Add support for X11
50 dev-libs/m17n-lib:X - Builds the Graphical User Interface API and
51 utilities for the package.
52 dev-libs/wlc:X - Enable X11 backend and XWayland support.
53 dev-python/PyQt4:X - Build bindings for the QtGui module
54 dev-python/pyside:X - Build QtGui and QtTest modules
55
56 --
57 Walter Dnes <waltdnes@××××××××.org>
58 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-dev] [RFC] gtk/gtk2/gtk3 USE flag situation Mart Raudsepp <leio@g.o>