Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: useflag policies
Date: Wed, 12 Aug 2015 18:20:01
Message-Id: 55CB8E1F.1010702@gentoo.org
In Reply to: Re: [gentoo-dev] Re: useflag policies by Ian Stakenvicius
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 12/08/15 02:18 PM, Ian Stakenvicius wrote:
5 > On 12/08/15 02:00 PM, Ulrich Mueller wrote:
6 >>>>>>> On Wed, 12 Aug 2015, Ciaran McCreesh wrote:
7 >
8 >>>> pkg_pretend() { if use qt4; then required_use -qt5 else
9 >>>> required_use qt5 fi }
10 >
11 >>> And how would the PM understand that -qt5 is conditional
12 >>> upon qt4? Such knowledge is required if it's supposed to
13 >>> auto-resolve stuff...
14 >
15 >> Right, the above was too simple (and wrong). It should have
16 >> been:
17 >
18 >> pkg_pretend() { use qt4 && use qt5 && required_use -qt5 use
19 >> qt4 || use qt5 || required_use qt4 }
20 >
21 >
22 > I think Ciaran's point was more, if required_use is going to
23 > i.e. elog, it needs to elog that qt4 is being enabled because
24 > neither-of qt4 or qt5 are *ON*, and similarly for why qt5 is
25 > being disabled.
26
27 ^^^ corrected logic
28 -----BEGIN PGP SIGNATURE-----
29 Version: GnuPG v2
30
31 iF4EAREIAAYFAlXLjh8ACgkQAJxUfCtlWe3TTAEAuJPVQQ9yoWBeBTRH2AFnFZoW
32 3aWWdhmClQRMo3MI43IBANkaRZOtWHhnWi31wvK+Pw0GvzkAmzEaWOFS7YxxWORO
33 =ccVT
34 -----END PGP SIGNATURE-----