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
Message-Id: 4F58F8F4.8020002@gentoo.org
In Reply to: Re: [gentoo-dev] RFD: EAPI specification in ebuilds by "Michał Górny"
On 03/08/2012 09:52 AM, Michał Górny wrote:
> On Wed, 7 Mar 2012 21:41:02 +0100 > Ulrich Mueller<ulm@g.o> wrote: >> 1b) It is only applied for EAPI 5 and later (which means that the >> result of the EAPI parsing would be discarded for earlier EAPIs). > > Err... so what happens if 'new parsing' detects EAPI 4 and 'old > parsing' detects EAPI 5? Or more exactly, how does it know when > an older EAPI is used if it is supposed to not use the value it uses to > detect EAPI?
We can simply detect this case and treat it as an error. The purpose of the "discarded for earlier EAPIs" part is to allow more variance for older EAPIs, and treating this case as an error will probably affect zero or a negligible number of older ebuilds in practice. -- Thanks, Zac