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:40:32
Message-Id: hkp0kf$hk0$1@ger.gmane.org
In Reply to: Re: [gentoo-dev] Re: "X" vs "gtk" USE flags by Samuli Suominen
1 On 02/08/2010 02:16 PM, Samuli Suominen wrote:
2 > On 02/08/2010 02:12 PM, Nikos Chantziaras wrote:
3 >> On 02/08/2010 01:36 PM, AllenJB wrote:
4 >>> On 08/02/10 11:15, Nikos Chantziaras wrote:
5 >>>> Hello. Please don't be too harsh if I got this wrong or if this looks
6 >>>> like whining :P
7 >>>>
8 >>>> A lot of ebuilds seem to ignore the "X" USE flag and instead only have
9 >>>> "gtk", "qt" and the like. This should be declared absolutely wrong,
10 >>>> IMHO. When a program provides a command-line tool and a GUI tool, and
11 >>>> the GUI tool uses only one toolkit, then the USE flag should be "X".
12 >>>> [...]
13 >>>>
14 >>> I don't see that either system makes particularly more sense than the
15 >>> other.
16 >>>
17 >>> The only situation that comes immediately to mind is: Under the current
18 >>> system, if packages add or remove support for multiple toolkits, the
19 >>> changes are trivial, but under your system it would invoke shuffling use
20 >>> flags around (which could easily affect dependencies in other packages).
21 >>> It would also not be immediately clear which toolkits support has been
22 >>> added/removed under the proposed system (since a package would go from,
23 >>> for example, having use flags "gtk kde" to just "X").
24 >>
25 >> If it would be problematic for a package to switch to "X" then of course
26 >> it might be better to leave it as-is. But most of the time, the
27 >> programs in question only state "gtk" or "fltk" in them, even though Gtk
28 >> is not optional at all. A perfect example here is media-video/xvattr.
29 >> If you don't set the "gtk" USE flag, then you don't get the graphical
30 >> tool at all, only the command line tool.
31 >
32 > Very bad example.
33 >
34 > That's what people want: xvattr is used on headless VDR multimedia
35 > HTPC's, and VDR doesn't need toolkits like GTK+ installed.
36
37 So which should be preffered? VDR people putting "media-video/xvattr
38 -X" or desktop people putting "media-video/xvattr +gtk"?
39
40 Btw, I use xvattr and I don't have a VDR HTPC or anything like that.