1 |
On Thursday 07 July 2005 22:42, Robin H. Johnson wrote: |
2 |
> On Thu, Jul 07, 2005 at 10:52:06AM -0700, Donnie Berkholz wrote: |
3 |
> > > strlen(EBUILD_FORMAT) * 19546 = 249K |
4 |
> > > strlen(EAPI) * 19546 = 77K |
5 |
> > > strlen(EV) * 19546 = 39K |
6 |
> > > |
7 |
> > > Where 19546 is the number if ebuilds in the tree as. |
8 |
> > |
9 |
> > So, the size of the tree is 500216K. This makes the percent increase |
10 |
> > in size for the options above 0.0005%, 0.0002% and 0.0001% |
11 |
> > respectively. In any case, nearly irrelevant to its present size. |
12 |
> |
13 |
> Probably should count some more formatting too. |
14 |
> strlen(EBUILD_FORMAT="") = 16, 16 * 19546 = 306K |
15 |
> strlen(EAPI="") = 7, 7 * 19546 = 134K |
16 |
> strlen(EV="") = 5, 5 * 19546 = 96K |
17 |
> |
18 |
> Don't just count the 4K blocks. Count the actual data instead (du -b). |
19 |
> The tree contains 95912503 bytes of data, including metadata. |
20 |
> Excluding metadata it is 85301916 bytes. |
21 |
> |
22 |
> It's still less than 0.4% increase in the worst case. |
23 |
> |
24 |
> I like the 'EAPI' variant, as it's clearly seperate from 'EV', without |
25 |
> being too long. |
26 |
> |
27 |
> To combat some of the increase, EAPI only needs to go into new ebuilds |
28 |
> that use the functionality. Old ebuilds should default to the current |
29 |
> syntax. |
30 |
|
31 |
To allow for this to work with current portage versions, perhaps it would |
32 |
be an option to introduce a new extension for .ebuild scripts that use |
33 |
it's functionality. That would allow all non-EAPI aware portage versions |
34 |
to automatically ignore ebuilds that use this. |
35 |
|
36 |
Paul |
37 |
|
38 |
ps. I would also suggest requiring that EAPI can be retrieved by a simple |
39 |
line by line parsing without using bash. (This allows for changing the |
40 |
parsing system) |
41 |
|
42 |
-- |
43 |
Paul de Vrieze |
44 |
Gentoo Developer |
45 |
Mail: pauldv@g.o |
46 |
Homepage: http://www.devrieze.net |