Gentoo Archives: gentoo-pms

From: Brian Harring <ferringb@×××××.com>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] EAPI specification in ebuilds
Date: Tue, 10 Apr 2012 16:31:03
Message-Id: 20120410163044.GA1158@localhost
In Reply to: Re: [gentoo-pms] EAPI specification in ebuilds by Zac Medico
1 On Tue, Apr 10, 2012 at 08:43:55AM -0700, Zac Medico wrote:
2 > On 04/10/2012 03:53 AM, Ulrich Mueller wrote:
3 > > +^[ \t]*EAPI=(['"]?)([A-Za-z0-9+_.-]*)\1[ \t]*(#.*)?$
4 >
5 > We could make the ([A-Za-z0-9+_.-]*) group "optional", but treat it as
6 > an error if the group is missing. That way, the package manager can
7 > detect invalid assignments earlier, and can skip sourcing the ebuild in
8 > this case.
9
10 Or disallow EAPI= .
11
12 There isn't any reason to reset it to an unknown EAPI manually like
13 that; if code does that, the code is wrong imo, thus skip trying to
14 parse that.
15 ~harring

Replies

Subject Author
Re: [gentoo-pms] EAPI specification in ebuilds Zac Medico <zmedico@g.o>
Re: [gentoo-pms] EAPI specification in ebuilds Ulrich Mueller <ulm@g.o>