1 |
On Sun, 2007-11-11 at 21:01 +0200, Petteri Räty wrote: |
2 |
> I plan to make the java eclasses use the EAPI 1 |
3 |
|
4 |
Any chance we can *at least* wait until we have a release out the door |
5 |
that has a portage version which supports these features *before* we |
6 |
start trying to use them in the tree? Our general rule was to not use |
7 |
features for 1+ years since it was added to a *stable* portage before we |
8 |
started using them. Now, this isn't so much of an issue with individual |
9 |
ebuilds, but you're talking about changing how the Java eclasses work, |
10 |
essentially blocking *anyone* using an older portage (including everyone |
11 |
installing from 2007.0 media) from using any package which inherits the |
12 |
eclass. |
13 |
|
14 |
Also, we should really think about this sort of thing before we start |
15 |
using it. How are we going to support EAPI changes in eclasses? What |
16 |
if I have an eclass with EAPI=1 features and I want to add some EAPI=2 |
17 |
features? I think allowing EAPI=* globally in an eclass should be |
18 |
prohibited, unless the *entire* eclass is planned for EAPI=* ebuilds, |
19 |
only. In other words, you'd need new EAPI=1 eclasses for your EAPI=1 |
20 |
ebuilds. Either that, or some way to say something like: "execute code |
21 |
path A for EAPI=0 and execute code path B for EAPI=1" or something |
22 |
similar. I would suspect that the "best" current solution is to check |
23 |
EAPI in the individual functions and perform the right actions based on |
24 |
those functions, rather than marking an entire eclass. After all, only |
25 |
EAPI=* functions need to be "hidden" behind EAPI. |
26 |
|
27 |
-- |
28 |
Chris Gianelloni |
29 |
Release Engineering Strategic Lead |
30 |
Alpha/AMD64/x86 Architecture Teams |
31 |
Games Developer/Foundation Trustee |
32 |
Gentoo Foundation |