Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: Joshua Kinard <kumba@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] About the 'eapi' file in profile directories
Date: Sun, 01 Aug 2021 13:42:21
Message-Id: uk0l546z7@gentoo.org
In Reply to: [gentoo-dev] About the 'eapi' file in profile directories by Joshua Kinard
1 >>>>> On Sun, 01 Aug 2021, Joshua Kinard wrote:
2
3 > I can't find much documentation on the 'eapi' file found in many of the
4 > profile directories. Several of the ones in
5 > profiles/arch/{amd64,sparc,mips} all report '5', and this aligns with the
6 > mips 17.0 profile under default/linux. Since EAPI 5 is deprecated, should
7 > this file be edited to be at least EAPI 6 or 7, or is it a relic of the past
8 > and really just needs to be tossed out?
9
10 EAPIs 6, 7, and 8 don't come with any changes related to profiles,
11 therefore updating the EAPI in profiles won't have any benefits. We can
12 leave it at 5, for the time being.
13
14 (EAPI 8 has a change in the updates directory, but that will only affect
15 the eapi in the top-level profiles directory, not individual profiles.
16 Also, we're at least two years away from updating that.)
17
18 We keep track of profile EAPIs here:
19 https://wiki.gentoo.org/wiki/Project:Package_Manager_Specification#Council_approval_and_use_in_Gentoo_repository
20
21 > If EAPI support is really needed in the profiles, it seems like there has to
22 > be a better mechanism to codify it in a more central location versus
23 > scattering ~390 of the things across the base profiles directory.
24
25 It's required by PMS, and it's not inherited from the parent profile,
26 so there's nothing that could be done about it for now.
27
28 $ for d in $(find . -type f ! -path './desc/*' ! -path './updates/*' ! -name eapi -printf '%h\n' | sort -u); do [[ -f ${d}/eapi ]] || echo ${d}; done
29 ./arch/amd64/lib32
30 ./arch/mips/mipsel
31 ./arch/ppc64/big-endian
32 ./default/linux/amd64/17.0/no-multilib/prefix
33 ./default/linux/amd64/17.1/no-multilib/prefix
34 ./default/linux/arm/17.0/armv7a/prefix
35 ./default/linux/arm64/17.0/prefix
36 ./default/linux/ppc64le/17.0/prefix
37 ./default/linux/x86/17.0/prefix
38 ./features/prefix/standalone/kernel-2.6.16+
39 ./features/prefix/standalone/kernel-2.6.32+
40 ./prefix/darwin/macos/features/fsf-gcc-ld64
41 ./prefix/darwin/macos/features/fsf-gcc-nold
42
43 Looks like we have a few profiles that are missing the eapi file, so
44 effectively they are still at EAPI 0.
45
46 Ulrich

Attachments

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