Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: waltdnes@××××××××.org
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Global USE=gui
Date: Wed, 01 Jun 2016 17:56:55
Message-Id: 20160601195641.448939ad.mgorny@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] Global USE=gui by waltdnes@waltdnes.org
1 On Wed, 1 Jun 2016 13:53:31 -0400
2 waltdnes@××××××××.org wrote:
3
4 > On Wed, Jun 01, 2016 at 05:29:55PM +0300, Mart Raudsepp wrote
5 >
6 > > It is meant as a feature based USE flag, as opposed to the "extra dep"
7 > > based USE flags we've been using for this.
8 > > There are a lot of those with USE=gtk right now. In many cases it's
9 > > some little add-on graphical utility for a library, or some graphical
10 > > configuration GUI in addition to command line, or some bigger cases in
11 > > more modular packages that provide multiple frontends, and not all of
12 > > them are graphical, but CLI or TUI (TUI meaning ncurses-based or
13 > > similar).
14 > > Also there are various with USE=X where it's also about that, but X
15 > > isn't the only way to do GUI these days (any gtk3 app that doesn't
16 > > directly use libX11/libxcb/etc themselves natively supports wayland,
17 > > for example).
18 > >
19 > > Essentially, if it's an optional GUI, it'd be behind a USE=gui, instead
20 > > of USE=gtk, USE=X, USE=qt4 or USE=qt5, when that optional GUI is
21 > > available in only one toolkit version. So hence feature based flag, not
22 > > dependency-based.
23 >
24 > I see this as at least a redundancy, if not a problem. First, let's
25 > look at the general case. An optional "UI" (User Interface) is also
26 > selected...
27 > * via the "tools" useflag 78 times in use.local.desc
28 > * via the "ncurses" useflag 10 times in use.local.desc.
29 > * for a lot of ebuilds via the "ncurses" useflag in use.desc (So why
30 > does "ncurses" show up in use.local.desc ???)
31 >
32 > There is no need for an additional "TUI" (Text User Interface) use flag
33 > for these cases. "tools" and/or "ncurses" tells you enough. Similarly,
34 > "GUI" is grab-bag of gtk2/gtk3/qt4/qt5/X/Wayland/whatever. The only
35 > thing they have in common is a hard-coded dependancy on graphics libs.
36 > "GUI" is an implicit dependancy of gtk2/gtk3/qt4/qt5/X/Wayland/whatever.
37 > Using any of them tells you enough. What do we accomplish by requiring
38 > one more USE flag? This will also make dependancy resolution of ebuilds
39 > more complex, i.e. slower. Why?
40
41 Simple regular users don't want to be concerned with choice of toolkit
42 for every single package, as long as a GUI is provided. Furthermore,
43 this matches the recommended USE flag design where the more important
44 flags are provided as feature flags, while specific dependency choice
45 flags are minor.
46
47 --
48 Best regards,
49 Michał Górny
50 <http://dev.gentoo.org/~mgorny/>

Replies

Subject Author
Re: [gentoo-dev] [RFC] Global USE=gui waltdnes@××××××××.org