From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1J5ymu-0005XQ-45 for garchives@archives.gentoo.org; Sat, 22 Dec 2007 07:28:48 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lBM7RqcI017998; Sat, 22 Dec 2007 07:27:52 GMT Received: from smtp.ferdyx.org (170.Red-213-96-222.staticIP.rima-tde.net [213.96.222.170]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lBM7PqZx015637 for ; Sat, 22 Dec 2007 07:25:52 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.ferdyx.org (Postfix) with ESMTP id EB4498D307 for ; Sat, 22 Dec 2007 08:29:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ferdyx.org Received: from smtp.ferdyx.org ([127.0.0.1]) by localhost (tungsteno.ferdyx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MK0wXCIyle+f for ; Sat, 22 Dec 2007 08:29:36 +0100 (CET) Received: from localhost (unknown [213.121.151.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.ferdyx.org (Postfix) with ESMTP id B3A9F8D305 for ; Sat, 22 Dec 2007 08:29:35 +0100 (CET) Date: Sat, 22 Dec 2007 07:25:44 +0000 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: Re: Re: Re: Re: Re: [GLEP] Use EAPI-suffixed ebuilds (.ebuild-EAPI) Message-ID: <20071222072544.3fffbc22@blueyonder.co.uk> In-Reply-To: References: <200712172320.01988.peper@gentoo.org> <47671006.2020808@gentoo.org> <20071218001855.78c1864c@blueyonder.co.uk> <20071218013651.58f4f565@eusebe> <20071218172143.GB4423@ferdyx.org> <20071219102951.515beeca@blueyonder.co.uk> <20071219111602.4122c53d@blueyonder.co.uk> <20071220035032.6312bed4@blueyonder.co.uk> <20071221004630.21fc6ad3@blueyonder.co.uk> X-Mailer: Claws Mail 3.1.0 (GTK+ 2.12.1; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/=oRgNdN.xCsiJejukdzALLC"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: aed82ca6-9083-4d7c-b97f-c83694b1f527 X-Archives-Hash: cb95b61048ca092ed458596e642791f0 --Sig_/=oRgNdN.xCsiJejukdzALLC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 22 Dec 2007 00:59:53 +0000 Steve Long wrote: > >> Wow that doesn't half sound like nonsense. > >=20 > > Unfortunately, it's not nonsense. It's entirely true. If you don't > > understand that then you can't contribute anything useful to the > > discussion, so kindly stay out of it. > > > [This (along with your stubborn refusal to ever explain anything) is > what I mean by your manner not inviting discussion.] >=20 > The datum you want is in a line in the file, easily extractable > without sourcing. If you don't understand that it provides the same > functionality, kindly go back to Uni and ask them to take your degree > back. Except there's absolutely no guarantee that it is, nor that it always will be. > >> An EAPI=3D"blah" at top-level in the file is exactly the same as the > >> suffix in terms of what can be represented > >=20 > > But not in what can be changed. > > > Nonsense: if the file isn't source'able the package manager will know > this due to the EAPI line giving an unknown key, and won't bother > doing anything else with it. >=20 > You can put whatever you want in there as long as you have the EAPI > declaration. Which is what I said: it's different in what can be changed. > >> According to the original discussion this was always supposed to > >> be a variable set in the ebuild source: > >=20 > > And things moved on. Right back when this first came up several > > people pointed out why a variable isn't an optimal solution. > > > You can't even be bothered to provide a link, let alone any sort of > explanation. You haven't explained at any point why a line in the > ebuild is so unacceptable, yet you keep asserting that it's already > been established that it won't work. Even though that was the design > that was originally agreed upon, back when you were still a Gentoo > dev. The GLEP explains it all. > >> At that time others made the case for restricting its format in > >> exactly the same way you have been resisting for the ebuild source, > >> but see as fine for tacking onto the end of the filename: > >> "I would also suggest requiring that EAPI can be retrieved by a > >> simple line by line parsing without using bash. (This allows for > >> changing the parsing system)"[2] > >=20 > > Except that that proposal doesn't work, as we've already > > established. > > No you just state it, in other threads too. That's not establishing > anything, and certainly not consensus. >=20 > It is trivial to extract one line and gives the information required > without sourcing. In effect, it's stating that the one thing which > can't be dynamic in an ebuild is the EAPI setting, which your > proposal requires as well. No, it's stating that EAPI has to be static, in a particular format, in a particular place, set in a particular way. Only the first of those is a reasonable requirement. > >> The idea of a different suffix was discussed back then as well: > >> "portage *should not* ignore those ebuilds. If the user > >> wants to merge something that is a later ebuild api then they have, > >> at least portage chucks an exception that the UI can wrap into > >> 'upgrade portage'. > >=20 > > There are times when the ebuilds have to be ignored. > > > Yes and if the EAPI is unsupported the manager can skip it. Again, you miss the point: at the package manager, there's a distinction between knowing that there's an ebuild that isn't supported because of its EAPI and not even being sure what exactly a particular ebuild is to the extend that you don't know its CATEGORY/PN/PV. Only being able to handle the first of these is insufficient. > > It's so that the ebuild's EAPI can be extracted. The way things are > > currently, there is no way to get an ebuild's EAPI without already > > knowing its EAPI. > > > Like I said, it's trivial to extract a line from the ebuild without > sourcing. You know it is, and so does everyone else. Note *the way things are currently*. If you think this is untrue, provide an algorithm that will correctly give the EAPI of any current or future ebuild given that ebuild's filename (hint: you can't). > > And *again* you demonstrate that you don't understand the metadata > > process. The metadata cache cannot be generated without already > > knowing the ebuild's EAPI, which is part of its metadata. > > > So extract the line and get the value, and stop pretending this is > some mystic art only you and the people who agree with you have the > ability to comprehend. It's coding, and yeah it's tricky sometimes, > but it's being run by a CPU; if you can explain it to the computer > you can explain it to someone else (if you want to; if all you're > about is putdowns, ofc, you can obfuscate and take 5 mails to get > across what could have been done in 1, all the while telling the > people who have no choice but to deal with you that it's all their > problem. Asperger's is bad, m'kay?) With the way things are currently you *can't* extract the line and get the value, because there's no guarantee on what the line is or what the meaning of global scope statements are. For example, what's the EAPI for the following ebuild? # Copyright blah inherit vim-spell using language=3D"en" > >> >> (optimising early here seems silly tbh, given that paludis now > >> >> requires ruby.) > >> >=20 > >> > Eh? Now what're you on about? > >> > > >> http://bugs.gentoo.org/show_bug.cgi?id=3D198864 > >=20 > > Thankyou for demonstrating to everyone that you don't know what a > > USE flag is. > > > Eh, no I had thought that the reason people have been complaining > about paludis bloat and forcing make -j0 (512MB of RAM required per > make process) was the dep on ruby. Clearly you can bloat it all on > your own. Amusingly enough... It's due to the (optional) dep upon Python, not Ruby. But hey, carry on not having a clue what you're on about. > > ...and imposes arbitrary, pointless restrictions upon the format, > > which is exactly what EAPI is supposed to prevent. > > > Rubbish: it imposes a restriction on ONE line of the whole thing. And > the restriction on the format of that item, is less than the > restrictions implicit in making it a file suffix. Nnnnope. The suffix approach doesn't prevent future changes that use new suffixes. > > No, there's a pre-pass layer which by its existence enforces > > restrictions. > > > You just said we were adding it with the "file format restrictions" > on one line of the ebuild; I simply pointed out that it doesn't have > to be checked by the package manager. That means the limited > restriction (which no-one minds) enforced by repoman is not "adding > in a pre-pass layer enforcing new file format restriction" as you > incorrectly stated. The package manager has to check its input, since repoman may not have been run, and it has to have the pre-pass layer to be able to generate EAPI to be able to generate metadata. So yes, it is entirely necessary with your proposal. --=20 Ciaran McCreesh --Sig_/=oRgNdN.xCsiJejukdzALLC Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHbLv496zL6DUtXhERAhvTAKCJeCCrGfzuAPKxVBlmFO45oZW0AgCeNFNM 8tUIvSxD78QkMPa/ENjEYmk= =Oo78 -----END PGP SIGNATURE----- --Sig_/=oRgNdN.xCsiJejukdzALLC-- -- gentoo-dev@gentoo.org mailing list