Gentoo Archives: gentoo-dev

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: "X" vs "gtk" USE flags
Date: Mon, 08 Feb 2010 12:13:28
Message-Id: hkov3r$cmq$1@ger.gmane.org
In Reply to: Re: [gentoo-dev] "X" vs "gtk" USE flags by AllenJB
1 On 02/08/2010 01:36 PM, AllenJB wrote:
2 > On 08/02/10 11:15, Nikos Chantziaras wrote:
3 >> Hello. Please don't be too harsh if I got this wrong or if this looks
4 >> like whining :P
5 >>
6 >> A lot of ebuilds seem to ignore the "X" USE flag and instead only have
7 >> "gtk", "qt" and the like. This should be declared absolutely wrong,
8 >> IMHO. When a program provides a command-line tool and a GUI tool, and
9 >> the GUI tool uses only one toolkit, then the USE flag should be "X".
10 >> [...]
11 >>
12 > I don't see that either system makes particularly more sense than the
13 > other.
14 >
15 > The only situation that comes immediately to mind is: Under the current
16 > system, if packages add or remove support for multiple toolkits, the
17 > changes are trivial, but under your system it would invoke shuffling use
18 > flags around (which could easily affect dependencies in other packages).
19 > It would also not be immediately clear which toolkits support has been
20 > added/removed under the proposed system (since a package would go from,
21 > for example, having use flags "gtk kde" to just "X").
22
23 If it would be problematic for a package to switch to "X" then of course
24 it might be better to leave it as-is. But most of the time, the
25 programs in question only state "gtk" or "fltk" in them, even though Gtk
26 is not optional at all. A perfect example here is media-video/xvattr.
27 If you don't set the "gtk" USE flag, then you don't get the graphical
28 tool at all, only the command line tool.
29
30 So in other words what I propose a bit more sanity, not some iron claw
31 that hangs above the developer's heads. The situation right now is
32 mixed anyway. Many packages use X, many others "gtk" or "fltk". The
33 "sanity" part in this is simple that a general rule of USE flags is: If
34 it's *not* optional, don't make it a USE flag. In the case of xvattr
35 for example, Gtk is not optional if you want the X utility.

Replies

Subject Author
Re: [gentoo-dev] Re: "X" vs "gtk" USE flags Samuli Suominen <ssuominen@g.o>