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 1M53P8-0007XQ-KT for garchives@archives.gentoo.org; Fri, 15 May 2009 19:49:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD62AE03DE; Fri, 15 May 2009 19:49:13 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by pigeon.gentoo.org (Postfix) with ESMTP id 34DCAE03DE for ; Fri, 15 May 2009 19:49:13 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 13so205518fge.14 for ; Fri, 15 May 2009 12:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=EIt5/1AviH+RixHtznsvq9Bk4iUY07cL20TfyvVQdY4=; b=E/xQJ6+yOOq9EIhPAjbt6wcAPqjrqnK9AjO2k/bTslpMaY4HQRPSsFxT7viY8M44Tn cHVm9KcYDh1xvNHlhJaE7YMoqarorpJWMq7reOxpWeFlutNLyJHYTEQKzNEZ+L1MsD/y lAE4UpVt1CS8wVSAVDgWw9yeViWoN5nissz3U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=lyc+eMdCTe1ra0Gly+A7SkBG1AOFe+BTZD8ytoOSi4+vCreO9d57biRnbfzRY1JwPn sKO6pYVxLsZSysu3AiyI/MKbga9hFp2XAXOG+6e/noKaYF5ciXiWAE9qdrH8kUB7JUaD BKeT8v34V0mKC6DHinaop3HJ508j/iNaT6SiM= Received: by 10.86.26.11 with SMTP id 11mr4091249fgz.45.1242416952590; Fri, 15 May 2009 12:49:12 -0700 (PDT) Received: from snowmobile (92-235-187-79.cable.ubr18.sgyl.blueyonder.co.uk [92.235.187.79]) by mx.google.com with ESMTPS id d6sm2951108fga.12.2009.05.15.12.49.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 15 May 2009 12:49:12 -0700 (PDT) Date: Fri, 15 May 2009 20:49:05 +0100 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] The fallacies of GLEP55 Message-ID: <20090515204905.54aa6a5c@snowmobile> In-Reply-To: <20090515194329.GA16382@linux1> References: <200905142006.51998.patrick@gentoo.org> <4A0C790A.1050209@gentoo.org> <20090514231623.409c8eb7@gentoo.org> <20090514214909.GA23080@linux1> <20090514225337.34df7dac@snowcone> <20090515194329.GA16382@linux1> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i686-pc-linux-gnu) 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: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/fLKV/GmAF0jtbfZ54EsdOYs"; protocol="application/pgp-signature" X-Archives-Salt: 2be16a0a-328f-4922-b9dd-ed04e684dcac X-Archives-Hash: 553cdb003a8693a038fa45e2751ad3c4 --Sig_/fLKV/GmAF0jtbfZ54EsdOYs Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 15 May 2009 14:43:29 -0500 William Hubbs wrote: > 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 +=3D in global scope will break > > older bash versions to the point that they can't reliably extract > > EAPI. > =20 > I just figured out a line in bash that will get an EAPI without > sourcing the ebuild: >=20 > eval `grep '^EAPI=3D' ebuildfile | head -n 1` >=20 > 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. The objection is that your code doesn't work. It's entirely legal to do, say: export EAPI=3D"1" or: inherit versionator if version_is_at_least 2 ; then EAPI=3D"2" else EAPI=3D"0" fi Besides, if we were able to do what your code does, we'd just code it natively, not use external programs. --=20 Ciaran McCreesh --Sig_/fLKV/GmAF0jtbfZ54EsdOYs Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkoNxzQACgkQ96zL6DUtXhF34QCgkuKdoiY/9HfckysyO+gGflaY bIAAn315vdkIjUXD0QNL0uPeUCLVwd5n =5cjZ -----END PGP SIGNATURE----- --Sig_/fLKV/GmAF0jtbfZ54EsdOYs--