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 22:13:09 +0200
>>>>> On Tue, 10 Apr 2012, Ciaran McCreesh wrote:

>> +If an ebuild contains an \t{EAPI} assignment, the statement must
>> occur within the first 20 lines. An ebuild must not contain more
>> than one \t{EAPI} assignment.

> This still doesn't explain what should happen here:

>     inherit foo
>     EAPI=5

> There are two issues: which EAPI's 'inherit' behaviour is used, and
> what is the value of the $EAPI variable when sourcing foo.eclass?
> Eclasses seem to like doing $EAPI-dependent things...

Hm, the EAPI cannot be set to the probed value when sourcing the
ebuild. Otherwise, the sanity check could succeed in cases where it
should really fail. So I guess the current PMS wording still applies
here:

| The package manager must either pre-set the EAPI variable to 0 or
| ensure that it is unset before sourcing the ebuild for metadata
| generation. When using the ebuild for other purposes, the package
| manager must either pre-set EAPI to the value specified by the
| ebuild's metadata or ensure that it is unset.

Anyway, what's the usage case for having the EAPI assignment after the
inherit command? Currently this is forbidden.

Ulrich


Replies:
Re: EAPI specification in ebuilds
-- Ciaran McCreesh
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
-- Ciaran McCreesh
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.