Gentoo Archives: gentoo-dev

From: Patrick Lauer <patrick@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Global USE=gui
Date: Tue, 07 Jun 2016 09:20:03
Message-Id: 678db3f0-b50d-ba52-371f-2d1b7f64e009@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] Global USE=gui by Ian Stakenvicius
1 On 06/06/2016 04:53 PM, Ian Stakenvicius wrote:
2 >
3 > This -can- be simplified using a REQUIRED_USE to force just-one-of
4 > gtk3,qt4,qt5 , but you can technically do the same with USE=gui too --
5 > all you'd need to do is add dependencies for the no-specific-flag case.
6 >
7 > RDEPEND="...
8 > qt5? ( dev-qt/qtcore:5 )
9 > qt4? ( dev-qt/qtcore:4 )
10 > gtk3? ( x11-libs/gtk+:3 )
11 > gui? ( !qt5? ( !qt4? ( !gtk3? ( dev-qt/qtcore:5 ) ) )"
12 Wow, that is wonderfully horrible, and making me a little bit angry ...
13
14 So USE="-qt5 gui" enables qt5 in this scenario. How is that reasonable?
15
16
17 (And as usual I'm now at the stage where I am not sure what problem that
18 we had before we are actually solving ...)

Replies

Subject Author
Re: [gentoo-dev] [RFC] Global USE=gui James Le Cuirot <chewi@g.o>
Re: [gentoo-dev] [RFC] Global USE=gui Ian Stakenvicius <axs@g.o>