Gmane
Favicon
From: Marius Mauch <genone <at> gentoo.org>
Subject: Re: EAPI placement
Newsgroups: gmane.linux.gentoo.devel
Date: 2007-12-13 02:43:46 GMT (1 year, 29 weeks, 1 day, 3 hours and 28 minutes ago)
On Tue, 11 Dec 2007 20:00:51 -0500
Doug Klima <cardoe <at> gentoo.org> wrote:

> When you could simply have $pkg_manager execute an eclass as 1
> EAPI, another eclass as another and the ebuild as a third EAPI and
> simplify it for the eclass maintenance.

Which doesn't work at all. Simple example would be the introduction of
new phases, e.g. src_configure with EAPI=2:

foo.eclass:

EAPI=2

setup_env {
    # do some stuff that differs betwwen EAPI-1 and EAPI-2
}

src_configure {
    econf --some-special-eclass-option
}

bar.ebuild:

inherit foo

EAPI=1

setup_env 

# no src_* functions defined

Now should the package manager execute src_configure or not? And that's
assuming we actually track all values of EAPI and their origin as well
as the origin of all functions/variables in the current environment.
Or should setup_env be executed with EAPI=1 (as it's called in the
ebuild) or EAPI=2 (as it's defined in the eclass)? There are no real
answers to those problems.

Marius
-- 
gentoo-dev <at> gentoo.org mailing list