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 35C1E1386F3 for ; Wed, 12 Aug 2015 18:24:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 875DB9573A; Wed, 12 Aug 2015 18:24:07 +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 9EDFB142B2 for ; Wed, 12 Aug 2015 18:24:06 +0000 (UTC) Received: from [192.168.1.130] (CPE002401f30b73-CM78cd8ec1b205.cpe.net.cable.rogers.com [99.224.138.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: axs) by smtp.gentoo.org (Postfix) with ESMTPSA id 9EE6534095B for ; Wed, 12 Aug 2015 18:24:05 +0000 (UTC) Subject: Re: [gentoo-dev] Re: useflag policies To: gentoo-dev@lists.gentoo.org References: <55C7AC24.2040503@gentoo.org> <55C9CA32.3060300@gentoo.org> <55C9F189.10102@gentoo.org> <20150812052120.5a83c3b1@googlemail.com> <55CB4CB0.8050208@gentoo.org> <20150812143819.GA25080@linux1> <20150812182304.0452d97d@googlemail.com> <21963.33933.738893.285125@a1i15.kph.uni-mainz.de> <21963.34267.514237.473502@a1i15.kph.uni-mainz.de> <20150812185053.49f525fb@googlemail.com> <21963.35274.269467.488889@a1i15.kph.uni-mainz.de> <20150812201908.541a94f2@gentoo.org> From: Ian Stakenvicius Message-ID: <55CB8F46.2070606@gentoo.org> Date: Wed, 12 Aug 2015 14:24:06 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.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 In-Reply-To: <20150812201908.541a94f2@gentoo.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Archives-Salt: efbb64f1-6b2e-41ca-a129-3295c0898abe X-Archives-Hash: 7c1177321b270ecd3af530037c1118a3 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 12/08/15 02:19 PM, Alexis Ballier wrote: > On Wed, 12 Aug 2015 20:00:42 +0200 Ulrich Mueller > wrote: > >>>>>>> On Wed, 12 Aug 2015, Ciaran McCreesh wrote: >> >>>> pkg_pretend() { if use qt4; then required_use -qt5 else >>>> required_use qt5 fi } >> >>> And how would the PM understand that -qt5 is conditional upon >>> qt4? Such knowledge is required if it's supposed to >>> auto-resolve stuff... >> >> Right, the above was too simple (and wrong). It should have >> been: >> >> pkg_pretend() { use qt4 && use qt5 && required_use -qt5 use qt4 >> || use qt5 || required_use qt4 } > > what is the difference ? > > pkg_pretend still needs to be executed to guess what useflags > are enabled or not, which information is needed before > dependency calculation > > or are we talking about moving pkg_pretend into dependency > calculation? > pkg_pretend is already executed during dependency calculation in portage, although this doesn't seem to actually be specified in PMS: "The pkg_pretend function is called some unspecified time before a (possibly hypothetical) normal sequence." as per PMS sec.9.2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlXLj0YACgkQAJxUfCtlWe1NwgD/UlFiaP1Xyh4yfHlEH+nGIYN/ NTqMi1IFiKXpgKJjVWEA/1BdSHkivkFhodChHJ0jlYCX9xHg0Xc0VDzPN0S1aPRn =KQmI -----END PGP SIGNATURE-----