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 7D71713877A for ; Fri, 25 Jul 2014 19:55:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B5E6E1BD7; Fri, 25 Jul 2014 19:55:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75761E1BC0 for ; Fri, 25 Jul 2014 19:55:02 +0000 (UTC) Received: from [192.168.1.195] (CPE002401f30b73-CM78cd8ec1b205.cpe.net.cable.rogers.com [99.224.181.112]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: axs) by smtp.gentoo.org (Postfix) with ESMTPSA id 6DE5633FDDB for ; Fri, 25 Jul 2014 19:55:01 +0000 (UTC) Message-ID: <53D2B60D.3040402@gentoo.org> Date: Fri, 25 Jul 2014 15:54:53 -0400 From: Ian Stakenvicius User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFC: USE flags in virtuals, to allow a specific provider to be determined 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> In-Reply-To: <1406317889.20388.25.camel@gentoo.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: cfc30cc0-7ef9-4b7d-a7d3-031d733b0029 X-Archives-Hash: fc6eb9bcd11dd90c6ba34ba494b4867d -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 25/07/14 03:51 PM, Pacho Ramos wrote: > El vie, 25-07-2014 a las 20:46 +0100, Ciaran McCreesh escribió: >> 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. >> >> ...and the fix for that is to scrap REQUIRED_USE and use >> pkg_pretend instead. >> > > Could you give an example to let us see how pkg_pretend could be > used to achieve the same as REQUIRED_USE? > > Thanks > > 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 } -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlPStg0ACgkQ2ugaI38ACPDSMQD/UfMayFMJPP3VqzEvR5IwbBjX w3/JiWDgm6NcYnU+ZTUBAIACTI52ZJn+TUvxWHHwggEv1+ThwIAp5rOIUUl68fce =MX30 -----END PGP SIGNATURE-----