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 36B62138010 for ; Fri, 21 Sep 2012 21:06:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C348921C02E for ; Fri, 21 Sep 2012 21:06:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 03C3AE0566 for ; Fri, 21 Sep 2012 20:26:31 +0000 (UTC) Received: from [192.168.1.33] (83.Red-83-57-69.dynamicIP.rima-tde.net [83.57.69.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pacho) by smtp.gentoo.org (Postfix) with ESMTPSA id 949B633C9FB; Fri, 21 Sep 2012 20:26:30 +0000 (UTC) Subject: Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild From: Pacho Ramos To: Zac Medico Cc: gentoo-portage-dev@lists.gentoo.org In-Reply-To: <505CC3DA.3000008@gentoo.org> References: <1348254500.2085.8.camel@belkin4> <505CC3DA.3000008@gentoo.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-dzaHZEtA378M/ML/5p80" Date: Fri, 21 Sep 2012 22:26:24 +0200 Message-ID: <1348259184.2085.9.camel@belkin4> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 X-Archives-Salt: 346ee246-afbc-427d-8007-53de68c4131b X-Archives-Hash: 3755cab6124ff4255af4ec7db1358702 --=-dzaHZEtA378M/ML/5p80 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El vie, 21-09-2012 a las 12:45 -0700, Zac Medico escribi=C3=B3: > On 09/21/2012 12:08 PM, Pacho Ramos wrote: > > Hello > >=20 > > This comes from this gentoo-dev thread: > > http://www.gossamer-threads.com/lists/gentoo/dev/260536 > >=20 > > In that one, we try to use the following: > > has vala ${IUSE//+/} && ! use vala && return 0=20 > >=20 > > as already done in many eclasses/ebuilds. The problem is that Ciaran > > wants to forbid it because he says it's not specified in PMS. My > > suggestion was to simply specify it as it's currently implemented in > > portage because that functionality is (apart of needed) being used for = a > > long time in the tree by numerous eclasses/ebuilds, then, from my point > > of view, wouldn't be any sense on lose time for moving them to current > > functionality to a worse one, wait for the next eapi and, finally, > > revert them back to current behavior. > >=20 > > The problem is that I cannot find any doc about how this is currently > > handled in portage. Could you help me on it please? >=20 > That `has vala ${IUSE//+/}` thing should work for all versions of > portage that have existed since PMS came around. The way that it works > is that that ebuild.sh sources the ebuild, and the inherit function > makes temporary backups of IUSE so that the IUSE settings from all of > the eclasses and the ebuild can be stacked together after the sourcing > is complete. The stacked IUSE value that's generated then remains in the > ebuild's environment for all phases. Thanks a lot, do you let me send your reply to gentoo-dev ML? --=-dzaHZEtA378M/ML/5p80 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEABECAAYFAlBczXAACgkQCaWpQKGI+9QEKACcCfJZPdHX6k86hV/2HFO9Hhn/ BJwAnjPepw8mKzmSu5juKuWDvOiN1kOR =LbvE -----END PGP SIGNATURE----- --=-dzaHZEtA378M/ML/5p80--