Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Global USE=gui
Date: Tue, 07 Jun 2016 09:28:17
Message-Id: 20160607102754.5f8612eb@red.yakaraplc.local
In Reply to: Re: [gentoo-dev] [RFC] Global USE=gui by Patrick Lauer
1 On Tue, 7 Jun 2016 11:19:13 +0200
2 Patrick Lauer <patrick@g.o> wrote:
3
4 > On 06/06/2016 04:53 PM, Ian Stakenvicius wrote:
5 > >
6 > > This -can- be simplified using a REQUIRED_USE to force just-one-of
7 > > gtk3,qt4,qt5 , but you can technically do the same with USE=gui too
8 > > -- all you'd need to do is add dependencies for the
9 > > no-specific-flag case.
10 > >
11 > > RDEPEND="...
12 > > qt5? ( dev-qt/qtcore:5 )
13 > > qt4? ( dev-qt/qtcore:4 )
14 > > gtk3? ( x11-libs/gtk+:3 )
15 > > gui? ( !qt5? ( !qt4? ( !gtk3? ( dev-qt/qtcore:5 ) ) )"
16 > Wow, that is wonderfully horrible, and making me a little bit
17 > angry ...
18 >
19 > So USE="-qt5 gui" enables qt5 in this scenario. How is that
20 > reasonable?
21
22 I don't think that's unreasonable given that it only does that when qt4
23 and gtk3 are disabled. Some packages require qt5 unconditionally, is
24 that bad too? I'm not saying I like this, I'm indifferent at best, but
25 it does makes some sense.
26
27 --
28 James Le Cuirot (chewi)
29 Gentoo Linux Developer

Replies

Subject Author
Re: [gentoo-dev] [RFC] Global USE=gui Alexander Berntsen <bernalex@g.o>