Gentoo Archives: gentoo-dev

From: Joshua Kinard <kumba@g.o>
To: gentoo-dev@l.g.o, Mart Raudsepp <leio@g.o>
Subject: Re: [gentoo-dev] About the 'eapi' file in profile directories
Date: Sun, 01 Aug 2021 20:00:17
Message-Id: a26c0c46-e17c-8aae-efc3-c02ff0581b37@gentoo.org
In Reply to: Re: [gentoo-dev] About the 'eapi' file in profile directories by Mart Raudsepp
1 On 8/1/2021 08:19, Mart Raudsepp wrote:
2 > Ühel kenal päeval, P, 01.08.2021 kell 00:58, kirjutas Joshua Kinard:
3 >> numeric value of the supported EAPI
4 >
5 > EAPI isn't a numeric value, it is a string (section 3.1.8) - it just
6 > happens that Gentoo official ones are logically numeric. PMS even
7 > quotes the EAPIs in "2.2 Defined EAPIs" section to signify that, it
8 > seems.
9 >
10 > So s/numeric value/name/ as per PMS section 5.2.2?
11
12 So it looks like Section 2.3, "Reserved EAPIs" is more relevant here:
13
14 2.3 Reserved EAPIs
15
16 EAPIs whose value consists purely of an integer are reserved
17 for future versions of this specification.
18
19 EAPIs whose value starts with the string paludis- are reserved
20 for experimental use by the Paludis package manager.
21
22 That means that, yes, EAPIs can be literal string values (just without
23 quotes). However, the primary use case, IOW, the official repo, we're using
24 incrementing numeric integers. PMS is supposed to be package-manager
25 agnostic, so carving out a specific reservation for a specific package
26 manager in Section 2.3 seems to defeat that purpose.
27
28 If Paludis is still being developed and needs something for experimental
29 use, then it's up to it to do that on its own. We could support this by
30 specifying that EAPIs are single-line strings of a form [A-Za-z0-9\x20_-]+?,
31 thus removing the specific reservation for a specific package manager and
32 handling the current single-number format as well as other fancy names.
33 Like maybe EAPI 9 can be "Magnificent Penguin"? :)
34
35 --
36 Joshua Kinard
37 Gentoo/MIPS
38 kumba@g.o
39 rsa6144/5C63F4E3F5C6C943 2015-04-27
40 177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943
41
42 "The past tempts us, the present confuses us, the future frightens us. And
43 our lives slip away, moment by moment, lost in that vast, terrible in-between."
44
45 --Emperor Turhan, Centauri Republic

Replies

Subject Author
Re: [gentoo-dev] About the 'eapi' file in profile directories Ulrich Mueller <ulm@g.o>