Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-pms
Navigation:
Lists: gentoo-pms: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-pms@g.o
From: Ulrich Mueller <ulm@g.o>
Subject: Re: EAPI specification in ebuilds
Date: Tue, 10 Apr 2012 18:58:18 +0200
>>>>> On Tue, 10 Apr 2012, Brian Harring wrote:

> On Tue, Apr 10, 2012 at 08:43:55AM -0700, Zac Medico wrote:
>> We could make the ([A-Za-z0-9+_.-]*) group "optional", but treat it
>> as an error if the group is missing. That way, the package manager
>> can detect invalid assignments earlier, and can skip sourcing the
>> ebuild in this case.

Currently there isn't any ebuild in the tree that assigns an empty
EAPI, so I think we can neglect any performance issues.

> Or disallow EAPI= .

Probably it's simpler to keep the regexp as it is, but error out if
the second group is empty.

> There isn't any reason to reset it to an unknown EAPI manually like
> that; if code does that, the code is wrong imo, thus skip trying to
> parse that.

I see no valid usage case why an ebuild should assign the empty string
to the EAPI variable. So we could add a sentence like
"It is an error for an ebuild to assign an empty EAPI."
to the first paragraph of this subsection:
<http://dev.gentoo.org/~ulm/pms/4/pms.html#x1-710008.3.1>

Ulrich


Replies:
Re: EAPI specification in ebuilds
-- Zac Medico
References:
EAPI specification in ebuilds
-- Ulrich Mueller
Re: EAPI specification in ebuilds
-- David Leverton
Re: EAPI specification in ebuilds
-- Ulrich Mueller
Re: EAPI specification in ebuilds
-- David Leverton
Re: EAPI specification in ebuilds
-- Ulrich Mueller
Re: EAPI specification in ebuilds
-- Ulrich Mueller
Re: EAPI specification in ebuilds
-- Zac Medico
Re: EAPI specification in ebuilds
-- Brian Harring
Navigation:
Lists: gentoo-pms: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: EAPI specification in ebuilds
Next by thread:
Re: EAPI specification in ebuilds
Previous by date:
Re: EAPI specification in ebuilds
Next by date:
Re: EAPI specification in ebuilds


Updated Jul 18, 2012

Summary: Archive of the gentoo-pms mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.