Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: useflag policies
Date: Wed, 12 Aug 2015 18:17:10
Message-Id: 20150812191648.31d3c421@googlemail.com
In Reply to: Re: [gentoo-dev] Re: useflag policies by Ulrich Mueller
1 On Wed, 12 Aug 2015 20:00:42 +0200
2 Ulrich Mueller <ulm@g.o> wrote:
3 > >>>>> On Wed, 12 Aug 2015, Ciaran McCreesh wrote:
4 > >> pkg_pretend() {
5 > >> if use qt4; then
6 > >> required_use -qt5
7 > >> else
8 > >> required_use qt5
9 > >> fi
10 > >> }
11 >
12 > > And how would the PM understand that -qt5 is conditional upon qt4?
13 > > Such knowledge is required if it's supposed to auto-resolve stuff...
14 >
15 > Right, the above was too simple (and wrong). It should have been:
16 >
17 > pkg_pretend() {
18 > use qt4 && use qt5 && required_use -qt5
19 > use qt4 || use qt5 || required_use qt4
20 > }
21
22 Doesn't help the PM, unless you're expecting it to parse bash code...
23
24 --
25 Ciaran McCreesh

Attachments

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