Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFD: EAPI specification in ebuilds
Date: Thu, 08 Mar 2012 18:23:44
In Reply to: Re: [gentoo-dev] RFD: EAPI specification in ebuilds by "Michał Górny"
1 On 03/08/2012 09:52 AM, Michał Górny wrote:
2 > On Wed, 7 Mar 2012 21:41:02 +0100
3 > Ulrich Mueller<ulm@g.o> wrote:
4 >> 1b) It is only applied for EAPI 5 and later (which means that the
5 >> result of the EAPI parsing would be discarded for earlier EAPIs).
6 >
7 > Err... so what happens if 'new parsing' detects EAPI 4 and 'old
8 > parsing' detects EAPI 5? Or more exactly, how does it know when
9 > an older EAPI is used if it is supposed to not use the value it uses to
10 > detect EAPI?
12 We can simply detect this case and treat it as an error. The purpose of
13 the "discarded for earlier EAPIs" part is to allow more variance for
14 older EAPIs, and treating this case as an error will probably affect
15 zero or a negligible number of older ebuilds in practice.
16 --
17 Thanks,
18 Zac