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

Attachments

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

Replies

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