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 1QTx72-0006EF-1i for garchives@archives.gentoo.org; Tue, 07 Jun 2011 14:18:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F53F1C0F7; Tue, 7 Jun 2011 14:18:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 23B4B1C00C for ; Tue, 7 Jun 2011 14:17:40 +0000 (UTC) Received: from gentoo.org (mayo-nat4.mayo.edu [129.176.197.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dberkholz) by smtp.gentoo.org (Postfix) with ESMTPSA id 8C6981B4033 for ; Tue, 7 Jun 2011 14:17:39 +0000 (UTC) Date: Tue, 7 Jun 2011 09:17:37 -0500 From: Donnie Berkholz To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: RFC: an eclass for github snapshots? Message-ID: <20110607141736.GA8472@comet.mayo.edu> References: <20110530082754.71b5d04d@pomiocik.lan> <1306748151.2405.2.camel@raven.home.flameeyes.eu> <19939.32213.632618.582596@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="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <19939.32213.632618.582596@a1i15.kph.uni-mainz.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 9f6f51c22e2ed55c198c0a7d523b3bbe --0F1p//8PRICkK4MW Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 13:21 Mon 30 May , Ulrich Mueller wrote: > >>>>> On Mon, 30 May 2011, Diego Elio Petten=C3=B2 wrote: > > Il giorno lun, 30/05/2011 alle 08.27 +0200, Micha=C5=82 G=C3=B3rny ha s= critto: > >> S=3D"${WORKDIR}/solutious-${PN}-*" > >>=20 > >> I'm surprised if that actually works. I'd say that seems not > >> PMS-compliant but in fact PMS seems to almost not mention S.=20 >=20 > > Because you didn't follow the whole eclass tree ;) >=20 > > ruby-ng handles the star as a special case, given how many of those > > we had to use over time, [...] >=20 > But it is not compliant with PMS: > "If S is assigned in the global scope of an ebuild, then the > restrictions of section 12.2 for global variables apply." (section 12.1) > "Global variables must only contain invariant values." (section 12.2) It seems compliant to me, as S is assigned an invariant value that=20 happens to contain the character '*', which is overwritten with a new=20 value as a local variable in ebuild functions. Sample code in listing=20 12.1 in my copy of the PMS seems to suggest this is perfectly fine=20 behavior as long as the global invariant is restored after each=20 function. --=20 Thanks, Donnie Donnie Berkholz Sr. Developer, Gentoo Linux Blog: http://dberkholz.com --0F1p//8PRICkK4MW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk3uMwAACgkQXVaO67S1rttMkwCeOHwhyxPiOpsnnPSd6/gV+ryI 1vEAoKRHR8oiU8tY5PxY3mcyXyNRBzM4 =jCq7 -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW--