Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: The fallacies of GLEP55
Date: Sat, 16 May 2009 22:06:22
Message-Id: 20090516230603.1a689107@snowmobile
In Reply to: [gentoo-dev] Re: The fallacies of GLEP55 by Mark Bateman
1 On Sat, 16 May 2009 21:58:10 +0000 (UTC)
2 Mark Bateman <couldbe@××××.com> wrote:
3 > "The current way of specifying the EAPI in ebuilds is flawed"
4 > That is not defining the problem, that is an opening statement.
5
6 That is the problem.
7
8 > "In order to get the EAPI the package manager needs to source the
9 > ebuild, which itself needs the EAPI in the first place."
10 > It then describes "a" mechanism utilising an ebuild
11 > (source /usr/portage...) to obtain the EAPI from within the ebuild
12 > (EAPI=...). Using this method the entire content of GLEP55 is
13 > accurate.
14 >
15 > However, this is not the only method to determine the EAPI of an
16 > ebuild that exists and as such the viability of GLEP55 as the best
17 > solution is brought into question
18
19 Yes, it is the only method.
20
21 > Where is it defined that the ebuild must be sourced 1st?
22 > Why does the ebuild have to be sourced 1st?
23
24 Such things are obviously true to anyone with a basic understanding of
25 the domain.
26
27 > GLEP55 explicitly states that the EAPI to be recorded in the file
28 > extension, while, as this thread has shown, a number of methods can
29 > be used to source the EAPI version of the ebuild *without* the need
30 > of actually source'ing the ebuild (grep, sed, metacache) all of which
31 > are viable solutions to the problem, the problem that is so obvious
32 > it doesn't actually have to be defined
33
34 Except that that isn't true. With the current rules, an ebuild has to
35 be sourced to get EAPI. And you can't just say "use the metadata
36 cache", since the package manager has to know how to generate the
37 metadata cache in the first place.
38
39 Please make sure you're familiar with the basics of how metadata works
40 before commenting any further.
41
42 --
43 Ciaran McCreesh

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-dev] Re: The fallacies of GLEP55 Mark Bateman <couldbe@××××.com>