Gentoo Archives: gentoo-pms

From: Ulrich Mueller <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] EAPI specification in ebuilds
Date: Fri, 06 Apr 2012 18:13:12
Message-Id: 20351.12845.784049.712551@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-pms] EAPI specification in ebuilds by "Robin H. Johnson"
1 >>>>> On Fri, 6 Apr 2012, Robin H Johnson wrote:
2
3 >> +^[ \t]*EAPI=(['"]?)([A-Za-z0-9+_.-]*)\1[ \t]*(#.*)?$
4 > EAPI=
5 > is valid in this. Was that intended?
6
7 An empty EAPI is equivalent to EAPI 0 (says PMS), therefore "EAPI=" is
8 valid in ebuilds.
9
10 But this is sort of academic, because no ebuild in the tree contains
11 an empty EAPI assignment.
12
13 > Will there be any issue overriding EAPI as an env var to call a
14 > function/command?
15 > EAPI=... foo
16
17 This won't match the regexp, and I believe that such usage is illegal
18 anyhow.
19
20 Ulrich