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: Fri, 6 Apr 2012 23:25:03 +0200
>>>>> On Fri, 6 Apr 2012, David Leverton wrote:

>> +It is an error for an ebuild to contain more than one \t{EAPI} assignment.

> Are package managers expected to enforce this in the parsing stage
> (at least within the first 20 lines) or is it OK to stop reading as
> soon as you see a valid EAPI= line (so any conflicting later
> assignments would get caught by making sure the post-source EAPI
> matches the parsed one,

I guess the pragmatic approach is that the package manager would stop
reading when it encounters the first valid EAPI assignment (or after
line 20, whatever occurs first). The sanity check is that the two EAPI
values obtained by parsing and sourcing must agree.

In theory this may leave some loopholes, i.e. it is possible to
construct an ebuild that would be invalid by the wording of the spec
but would be accepted as valid ebuild by the package manager. I don't
think that this has any practical relevance though.

> but redundant assignments with the same EAPI would get through)?

Right, assigning the same EAPI twice would be an example for an ebuild
that is invalid but accepted by the package manager. But would this
cause any problems?

Ulrich


Replies:
Re: EAPI specification in ebuilds
-- David Leverton
References:
EAPI specification in ebuilds
-- Ulrich Mueller
Re: EAPI specification in ebuilds
-- David Leverton
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.