Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Global USE=gui
Date: Tue, 07 Jun 2016 14:22:18
Message-Id: fd33e32b-ecb5-68b4-9415-c8657af3cc3d@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] Global USE=gui by Ian Stakenvicius
1 On 07/06/16 10:19 AM, Ian Stakenvicius wrote:
2 > On 07/06/16 05:19 AM, Patrick Lauer wrote:
3 >> On 06/06/2016 04:53 PM, Ian Stakenvicius wrote:
4 >>>
5 >>> This -can- be simplified using a REQUIRED_USE to force just-one-of
6 >>> gtk3,qt4,qt5 , but you can technically do the same with USE=gui too --
7 >>> all you'd need to do is add dependencies for the no-specific-flag case.
8 >>>
9 >>> RDEPEND="...
10 >>> qt5? ( dev-qt/qtcore:5 )
11 >>> qt4? ( dev-qt/qtcore:4 )
12 >>> gtk3? ( x11-libs/gtk+:3 )
13 >>> gui? ( !qt5? ( !qt4? ( !gtk3? ( dev-qt/qtcore:5 ) ) )"
14 >> Wow, that is wonderfully horrible, and making me a little bit angry ...
15 >>
16 >> So USE="-qt5 gui" enables qt5 in this scenario. How is that reasonable?
17 >>
18 >>
19 >> (And as usual I'm now at the stage where I am not sure what problem that
20 >> we had before we are actually solving ...)
21 >>
22 >
23 > I didn't like that particular version either, (A) because of what you
24 > said, and (B) due to it needing a REQUIRED_USE to enforce a
25 > just-one-of dependency. But people don't *LIKE* to have layered
26 > use-flag logic, so...
27 >
28 s/know/like/ on last sentence

Attachments

File name MIME type
signature.asc application/pgp-signature