From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3364B13877A for ; Fri, 25 Jul 2014 21:23:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC569E1BF9; Fri, 25 Jul 2014 21:23:29 +0000 (UTC) Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C3019E1BE7 for ; Fri, 25 Jul 2014 21:23:28 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id o6so6162308oag.25 for ; Fri, 25 Jul 2014 14:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=sG0BRyhaBwKdO7Wm9CMFLlm3HFXp6biUxwya/ChTKMg=; b=TgtC8UICG9e49X8651AdfON7NOo/PqJfdNAiot7/Gjc0gVCzYAtZEJ4MQvnLyqHL3q SwNcyDzlY45DeXv7+IQK3GY14CDYmgU/tdgrtdNVdULxdB2VXm3FlmsiNDnqtNFsp2wY phTtVeBou842yMX4qlriN3if7a5tQZqVjfDMFQRHrqGKdzyhwRlQRayscR8oI67ElgXw 6QUTBCSD+SgtiOtMwE017L28U/9MAZy8eSqAXgt9mE2C4mMkPS1pft6IJlsSWuR9bL/p H2EM3AB+4FzZR7yyMNfDwoVK4Jfyoz/rMmWh/cq0AF94HARL7gwASTlgFZL9BdpU05KJ 5SjQ== X-Received: by 10.60.160.38 with SMTP id xh6mr27312213oeb.82.1406323407823; Fri, 25 Jul 2014 14:23:27 -0700 (PDT) Received: from linux1 (cpe-76-187-91-128.tx.res.rr.com. [76.187.91.128]) by mx.google.com with ESMTPSA id sa9sm40259882oeb.17.2014.07.25.14.23.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 14:23:25 -0700 (PDT) Sender: William Hubbs Received: (nullmailer pid 5925 invoked by uid 1000); Fri, 25 Jul 2014 21:23:23 -0000 Date: Fri, 25 Jul 2014 16:23:23 -0500 From: William Hubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFC: USE flags in virtuals, to allow a specific provider to be determined Message-ID: <20140725212323.GA5842@linux1> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <53D2A6C8.9060900@gentoo.org> <20140725210438.0703f164@gentp.lnet> <53D2AEC3.2080600@gentoo.org> <20140725214402.7a65a988@gentp.lnet> <20140725204649.105e8641@googlemail.com> <1406317889.20388.25.camel@gentoo.org> <53D2B60D.3040402@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <53D2B60D.3040402@gentoo.org> User-Agent: Mutt/1.5.22 (2013-10-16) X-Archives-Salt: c7696f8f-c7ec-43f3-a9fd-4445d10b12c9 X-Archives-Hash: 41a63fe353055f4fc8f24361c469129b --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 25, 2014 at 03:54:53PM -0400, Ian Stakenvicius wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 >=20 > On 25/07/14 03:51 PM, Pacho Ramos wrote: > > El vie, 25-07-2014 a las 20:46 +0100, Ciaran McCreesh escribi=F3: > >> On Fri, 25 Jul 2014 21:44:02 +0200 Luis Ressel > >> wrote: > >>> Okay, I didn't think of that. I'm not sure if the blocker deps > >>> or the REQUIRED_USE would be more helpful for Portage, but > >>> generally I think that the REQUIRED_USE error message is quite > >>> hard to understand for unexperienced users -- much more so than > >>> the error generated by a blocker dep. > >>=20 > >> ...and the fix for that is to scrap REQUIRED_USE and use > >> pkg_pretend instead. > >>=20 > >=20 > > Could you give an example to let us see how pkg_pretend could be > > used to achieve the same as REQUIRED_USE? > >=20 > > Thanks > >=20 > >=20 >=20 > pkg_pretend() { > if use heimdal && use mit-krb5; then > eerror "Please set only one of the use following flags:" > eerror "heimdal, mit-krb5" > die "conflicting use flags set" > fi > } I think this could get complicated really quick though. For example, if I have an ebuild with three use flags, flag1/flag2/flag3 with the requirement that one and only one of them must be set, unless bash has an xor operator I don't know about, that is going to need a lot of nesting etc to get right. William --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlPSyssACgkQblQW9DDEZThangCcCkZbR7U8VyApZ3GPkFpZYdEW 5FgAn0L4mdXOXhxJTnAwr/KvAN4Xxpgt =PPoP -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--