1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Ciaran McCreesh wrote: |
5 |
> On Sun, 5 Oct 2008 17:07:40 +0200 |
6 |
> Alexis Ballier <aballier@g.o> wrote: |
7 |
>> Maybe eclasses should die on unknown eapi; the fact is I really hate |
8 |
>> the current way it's done when switching an ebuild to EAPI-2 which |
9 |
>> uses an eclass that exports src_compile; most eclasses don't special |
10 |
>> case eapi-2 yet and we end up running econf twice at best. I fear |
11 |
>> that'll be the same with eapi-3, eapi-4, etc. (supposing that they'll |
12 |
>> support src_configure too) |
13 |
> |
14 |
> There's currently no mechanism for an ebuild or eclass to 'die' in |
15 |
> global scope. |
16 |
|
17 |
They can call 'die' in global scope. Perhaps it's not the nicest |
18 |
thing to do, but it can be done. |
19 |
|
20 |
> It's something that could be available for future EAPIs without too |
21 |
> much difficulty, though... We discussed this for Exherbo, and decided |
22 |
> upon something like this: |
23 |
> |
24 |
> * Add a new metadata key called BROKENNESS. |
25 |
> |
26 |
> * Any ID with non-empty BROKENNESS is treated as being hard masked and |
27 |
> not unmaskable by the user, in the same way than an unknown EAPI is. |
28 |
> |
29 |
> * Add a function which can only be called in global scope that adds an |
30 |
> item to BROKENNESS. This does *not* prevent further sourcing. |
31 |
> |
32 |
> This one hopefully shouldn't be too hard to implement (Zac?). If people |
33 |
> are running into excessive difficulties with eclasses, it might be |
34 |
> worth doing an EAPI 3 quickly with just this addition... |
35 |
> |
36 |
|
37 |
Considering that they can already call 'die' in global scope I don't |
38 |
see it as being that urgent. |
39 |
- -- |
40 |
Thanks, |
41 |
Zac |
42 |
-----BEGIN PGP SIGNATURE----- |
43 |
Version: GnuPG v2.0.9 (GNU/Linux) |
44 |
|
45 |
iEYEARECAAYFAkjo9SsACgkQ/ejvha5XGaOUUQCfRSaJYF3xqWfaLVfE1M5lT0Fk |
46 |
NDcAnikfPOu/6nnBZIXuKbUXptNIPyOP |
47 |
=Lpc7 |
48 |
-----END PGP SIGNATURE----- |