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 1S70ZQ-0008Rh-8p for garchives@archives.gentoo.org; Mon, 12 Mar 2012 08:25:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26D82E0973; Mon, 12 Mar 2012 08:25:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id AE955E089C for ; Mon, 12 Mar 2012 08:24:47 +0000 (UTC) Received: from pomiocik.lan (159-205-88-242.adsl.inetia.pl [159.205.88.242]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id C7BC71B400A; Mon, 12 Mar 2012 08:24:45 +0000 (UTC) Date: Mon, 12 Mar 2012 09:27:11 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: gentoo-dev@lists.gentoo.org Cc: zmedico@gentoo.org Subject: Re: [gentoo-dev] RFD: EAPI specification in ebuilds Message-ID: <20120312092711.7dbd969f@pomiocik.lan> In-Reply-To: <4F5DA0FE.1070405@gentoo.org> References: <4F58FC55.7070005@orlitzky.com> <20120308184820.108fc30c@googlemail.com> <4F592612.6050203@orlitzky.com> <20120309060424.09cdce1e@pomiocik.lan> <4F599692.9050503@orlitzky.com> <20120309172921.281ee5a0@pomiocik.lan> <4F5A368D.2020605@orlitzky.com> <20314.14772.897891.110368@a1i15.kph.uni-mainz.de> <4F5A3E6C.4040900@orlitzky.com> <4F5A4246.8080605@gentoo.org> <20120312020344.GE7579@localhost> <4F5DA0FE.1070405@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-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-SHA256; boundary="Sig_/LNboBh+SOgh+6TUc96x_e4M"; protocol="application/pgp-signature" X-Archives-Salt: 277c73ad-00b4-42d9-abfc-a502ca4b84ff X-Archives-Hash: a7c2a414bcb54d757a2f4db7723a5978 --Sig_/LNboBh+SOgh+6TUc96x_e4M Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 12 Mar 2012 00:08:46 -0700 Zac Medico wrote: > On 03/11/2012 11:50 PM, Kent Fredric wrote: > > #!/usr/bin/env eapi-xml-5 > >=20 > > would send the current file ( foo.ebuild ) to the process > > "eapi-xml-5" ( as defined by the current $PATH setting ) >=20 > All we need is a way for the package manager to probe the EAPI. > Spawning a process to do that is just overkill. And we could just use a good regex for that instead. Something like: [eE][aA][pP][iI] [a-z0-9-+]+ and just require users for this to be the first thing declared in an ebuild. Of course, this could make problems with stuff like: # EAPI 4 because of foobarbaz EAPI=3D4 (on the other hand, in this particular case it will fetch '4' anyway). And this will work as well with: 15-xml and - eapi: 15-yaml --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/LNboBh+SOgh+6TUc96x_e4M Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iJwEAQEIAAYFAk9ds2QACgkQfXuS5UK5QB0HZgQAgQ8uUGhA7NqDFdFEi85jFtSn 6quuwqTHUaS/nGj27ZH4+ALsdNEuNve4++SIUTaNqcEOuvTSaAcnfJiig2tB9vOY wkqkiNNnMRjBFh5hyb3m04Fa66n1bQWUab/c6QTaBRlnFXSLB1ra36yhKzzCVqTk R6CuuYI3LJCu7Q37bHE= =8YJW -----END PGP SIGNATURE----- --Sig_/LNboBh+SOgh+6TUc96x_e4M--