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 1S5a80-0005Up-6T for garchives@archives.gentoo.org; Thu, 08 Mar 2012 09:59:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 313AAE076D; Thu, 8 Mar 2012 09:43:34 +0000 (UTC) Received: from mx10.schiffbauer.net (mx10.schiffbauer.net [188.40.110.137]) by pigeon.gentoo.org (Postfix) with ESMTP id C3AD9E072F for ; Thu, 8 Mar 2012 09:42:40 +0000 (UTC) Received: from cl-936.ham-02.de.sixxs.net ([2001:6f8:1c00:3a7::2]:46392 helo=lisa.schiffbauer.net) by mx10.schiffbauer.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1S5Zrh-00026D-19 for gentoo-dev@lists.gentoo.org; Thu, 08 Mar 2012 10:42:39 +0100 Received: from mschiff by lisa.schiffbauer.net with local (Exim 4.77) (envelope-from ) id 1S5Zrb-0005m2-D5 for gentoo-dev@lists.gentoo.org; Thu, 08 Mar 2012 10:42:23 +0100 Date: Thu, 8 Mar 2012 10:42:23 +0100 From: Marc Schiffbauer To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFD: EAPI specification in ebuilds Message-ID: <20120308094222.GA21435@lisa.schiffbauer.lan> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20311.51166.725757.212932@a1i15.kph.uni-mainz.de> <20312.24445.451487.577826@a1i15.kph.uni-mainz.de> 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; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: <20312.24445.451487.577826@a1i15.kph.uni-mainz.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by ClamAV (http://www.clamav.org) X-Spam-Score: -2.6 X-Spam-Level: -- X-Archives-Salt: 439d7fc5-48b5-4ee8-9549-dec21cf7f453 X-Archives-Hash: ac0e771393eb9586c5219f5a0b2f678f --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ulrich Mueller schrieb am 08.03.12 um 08:27 Uhr: > >>>>> On Wed, 7 Mar 2012, Alec Warner wrote: >=20 > >> *** Proposal 1: "Parse the EAPI assignment statement" *** > >> [...] >=20 > > I don't like this idea because the sane way should be easy and > > straightforward. Mixing a constant declaration with bash assignment > > just confuses users who think the assignment is full bash when in > > fact it is not. >=20 > > EAPI=3D$(somefunc) > > EAPI=3D${SOMEVAR%%-*} > > and so forth all don't meet the regex (and would be flagged > > invalid.) However a naive author might think they work. >=20 > Such constructs also cannot be used with any of the other proposed > solutions. And in fact, nobody is using such things in practice. > _All_ ebuilds in the Portage tree can be successfully parsed with the > regexp proposed. Ebuilds are bash scripts. I think introducing exceptions or constraints here is not straightforward. I think the only relevant part whether EAPI is set correctly or not should be the outcome of $EAPI. I would vote for a solution in a bash comment where repoman would have to check for its existance and equality to $EAPI. -Marc --=20 8AAC 5F46 83B4 DB70 8317 3723 296C 6CCA 35A6 4134 --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iD8DBQFPWH7+KWxsyjWmQTQRAm1BAJ9VIPBXBIBSs74Yr6tcB5/Y6q1iwACdFgWu ZFJQq6seL1PQ43ECWn21o3U= =dvmU -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--