Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: USE flags in virtuals, to allow a specific provider to be determined
Date: Fri, 25 Jul 2014 19:55:07
Message-Id: 53D2B60D.3040402@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: USE flags in virtuals, to allow a specific provider to be determined by Pacho Ramos
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 25/07/14 03:51 PM, Pacho Ramos wrote:
5 > El vie, 25-07-2014 a las 20:46 +0100, Ciaran McCreesh escribió:
6 >> On Fri, 25 Jul 2014 21:44:02 +0200 Luis Ressel <aranea@×××××.de>
7 >> wrote:
8 >>> Okay, I didn't think of that. I'm not sure if the blocker deps
9 >>> or the REQUIRED_USE would be more helpful for Portage, but
10 >>> generally I think that the REQUIRED_USE error message is quite
11 >>> hard to understand for unexperienced users -- much more so than
12 >>> the error generated by a blocker dep.
13 >>
14 >> ...and the fix for that is to scrap REQUIRED_USE and use
15 >> pkg_pretend instead.
16 >>
17 >
18 > Could you give an example to let us see how pkg_pretend could be
19 > used to achieve the same as REQUIRED_USE?
20 >
21 > Thanks
22 >
23 >
24
25 pkg_pretend() {
26 if use heimdal && use mit-krb5; then
27 eerror "Please set only one of the use following flags:"
28 eerror "heimdal, mit-krb5"
29 die "conflicting use flags set"
30 fi
31 }
32 -----BEGIN PGP SIGNATURE-----
33 Version: GnuPG v2
34
35 iF4EAREIAAYFAlPStg0ACgkQ2ugaI38ACPDSMQD/UfMayFMJPP3VqzEvR5IwbBjX
36 w3/JiWDgm6NcYnU+ZTUBAIACTI52ZJn+TUvxWHHwggEv1+ThwIAp5rOIUUl68fce
37 =MX30
38 -----END PGP SIGNATURE-----

Replies