1 |
Richard Freeman wrote: |
2 |
> On the other hand, this is a big change from the present, and I'm not |
3 |
> convinced that it will actually be a big improvement over some of the |
4 |
> other EAPI ideas being floated around. However, it is a |
5 |
> potentially-neat idea... |
6 |
|
7 |
Rich, interesting thoughts! But yeah, I agree that for now that is a lot. |
8 |
|
9 |
My idea for the "#!" thing was much smaller-scale and is a way to add simple |
10 |
syntax to allow declaration of the EAPI in the file with no sourcing and no |
11 |
filename extension mangling (plus, no pre-source/post-source issues): |
12 |
|
13 |
Just have one "shebang-like" line in the header before any real bash code |
14 |
("#!EAPI=3", "#EAPI=3", or whatever is agreed-upon). This is out-of-band meta |
15 |
info, so it's OK that it's in a "comment". It's ignored by bash, but it can be |
16 |
read trivially without sourcing. To accelerate things for the tree (I've seen |
17 |
others mention this idea too), store the EAPI in the portage cache when it is |
18 |
generated. |
19 |
|
20 |
-Joe |
21 |
-- |
22 |
gentoo-dev@l.g.o mailing list |