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 1M53Jb-0006n7-14 for garchives@archives.gentoo.org; Fri, 15 May 2009 19:43:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10585E03E1; Fri, 15 May 2009 19:43:30 +0000 (UTC) Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.123]) by pigeon.gentoo.org (Postfix) with ESMTP id E5B22E03E1 for ; Fri, 15 May 2009 19:43:29 +0000 (UTC) Received: from linux1.localdomain ([66.25.35.110]) by cdptpa-omta03.mail.rr.com with ESMTP id <20090515194329564.YDTP748@cdptpa-omta03.mail.rr.com> for ; Fri, 15 May 2009 19:43:29 +0000 Received: by linux1.localdomain (Postfix, from userid 1000) id 20BC243C03; Fri, 15 May 2009 14:43:29 -0500 (CDT) Date: Fri, 15 May 2009 14:43:29 -0500 From: William Hubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] The fallacies of GLEP55 Message-ID: <20090515194329.GA16382@linux1> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <200905142006.51998.patrick@gentoo.org> <4A0C790A.1050209@gentoo.org> <20090514231623.409c8eb7@gentoo.org> <20090514214909.GA23080@linux1> <20090514225337.34df7dac@snowcone> 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: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <20090514225337.34df7dac@snowcone> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: c9bbf012-ba39-461a-be73-955c4eb62ce4 X-Archives-Hash: e071eef185b4227468614fed16226fce -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, May 14, 2009 at 10:53:37PM +0100, Ciaran McCreesh wrote: > It can't, because it doesn't know the EAPI until it's sourced the thing > using bash. Using things like += in global scope will break older bash > versions to the point that they can't reliably extract EAPI. I just figured out a line in bash that will get an EAPI without sourcing the ebuild: eval `grep '^EAPI=' ebuildfile | head -n 1` will set EAPI in the current scope to EAPI in the ebuild, without sourcing it, unless the issue with something like this would be its use of grep and head, but these are both in the system set, so unless you don't want to depend on the system set, I don't know what the objection would be. - -- William Hubbs gentoo accessibility team lead williamh@gentoo.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkoNxeEACgkQblQW9DDEZThaFACfYSQTpPTxfh3MzvErzbSNGZ8M 46AAoIyGTJxbWQ4Be7075uHXYN+hfnDl =X3Wn -----END PGP SIGNATURE-----