From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PJTFf-0002i0-6G for garchives@archives.gentoo.org; Fri, 19 Nov 2010 15:51:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8388E0879; Fri, 19 Nov 2010 15:51:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B358FE0857 for ; Fri, 19 Nov 2010 15:51:10 +0000 (UTC) Received: from [192.168.22.4] (ip68-4-152-120.oc.oc.cox.net [68.4.152.120]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPSA id 1D17E1B4076; Fri, 19 Nov 2010 15:51:09 +0000 (UTC) Message-ID: <4CE69CE7.6040907@gentoo.org> Date: Fri, 19 Nov 2010 07:51:03 -0800 From: Zac Medico User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b3pre Thunderbird/3.1.6 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, Arfrever Frehtes Taifersar Arahesis CC: Gentoo Council Subject: Re: [gentoo-dev] Extending EAPI="4" References: <201010251524.24984.Arfrever@gentoo.org> In-Reply-To: <201010251524.24984.Arfrever@gentoo.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 359e86a8-2e26-4d5e-b86d-d994a41595d2 X-Archives-Hash: 60b0e456369807ba50cbf918f82872d8 On 10/25/2010 06:24 AM, Arfrever Frehtes Taifersar Arahesis wrote: > use.unsatisfiable and package.use.unsatisfiable files would cause that `repoman` would treat > given USE flags in the same way as masked USE flags. These files wouldn't affect behavior of > `emerge`: > - If user has enabled given USE flag specified in use.unsatisfiable or package.use.unsatisfiable > and if optional dependencies controlled by this USE flag are already installed or satisfiable, > then `emerge` will allow to install given package. > - If user has enabled given USE flag specified in use.unsatisfiable or package.use.unsatisfiable > and if optional dependencies controlled by this USE flag cannot be satisfied (with current > settings of ACCEPT_KEYWORDS, /etc/portage/package.keywords etc.), then `emerge` will print > informative error message telling e.g. about a dependency masked by ~${ARCH} keyword. Can't we print a "masked by ~${ARCH} keyword" message as you suggest, even without the use.unsatisfiable data? If so, then isn't use.unsatisfiable redundant? Your patch [1] seems to behave exactly like use.mask, so I don't see any value added. As an alternative, I'd suggest an atom syntax extension to indicate that a given atom is optional. For example, we could borrow the '?' character from regular expression syntax, and append '?' to the right side of an atom in order to indicate that it is an optional atom. [1] http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=93ee6a847be949e7752c3c052d3eb0619e408b43 -- Thanks, Zac