* Re: [gentoo-dev] Issues regarding glep-55 (Was: [gentoo-council] Re: Preliminary Meeting-Topics for 12 February 2009)
@ 2009-02-25 3:04 99% ` Luca Barbato
0 siblings, 0 replies; 1+ results
From: Luca Barbato @ 2009-02-25 3:04 UTC (permalink / raw
To: gentoo-dev
Ciaran McCreesh wrote:
> On Tue, 24 Feb 2009 18:16:54 +0100
> Luca Barbato <lu_zero@gentoo.org> wrote:
>>> You're doubling the number of files that have to be read for an
>>> operation that's almost purely i/o bound. On top of that, you're
>>> introducing a whole bunch of disk seeks in what's otherwise a nice
>>> linear operation.
>> I see words, not numbers.
>
> Number: double. That's a '2 times'.
given that the simplest thing is hacking ebuild.sh and extract eapi with
a simple C program (you can use pcre or ragel if you want) exactly
before the ebuild source:
Index: bin/ebuild.sh
===================================================================
--- bin/ebuild.sh (revision 12704)
+++ bin/ebuild.sh (working copy)
@@ -1848,6 +1848,7 @@
# eclasses, they need to be unset before this process of
# interaction begins.
unset DEPEND RDEPEND PDEPEND IUSE
+ EAPI=$(eapitool "${EBUILD}")
source "${EBUILD}" || die "error sourcing ebuild"
if [ "${EBUILD_PHASE}" != "depend" ] ; then
I think your numbers are a bit pessimistic, this is when you get EAPI in
portage, post source ${EBUILD}, opening the file before source would
just put in the cache one line earlier.
> You don't know whether the cache is valid until you know the EAPI. It
> only works currently because EAPIs don't change inherit behaviour.
There were already discussions about switching cache format, if we want
to change the inherit behaviour we could just switch at the same time
the cache format and leave dummy entry for compatibility with legacy
portage.
> So you have patches for Portage? Please show them.
Up there what's enough to check the viability for the solution.
the bash subst I wrote before could be used instead of the call to get
the eapi in extension behaviour.
>> unknown isn't unsupported?
>
> Huh? Please explain what you mean.
mv cat/pkg-version.ebuild cat/pkg-version_foo.ebuild
emerge -vp pkg
portage will warn about not knowing pkg-version_foo and will ignore it.
lu
--
Luca Barbato
Gentoo Council Member
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
[not found] <1234257125.18160.2016.camel@localhost>
[not found] ` <1234450419.20950.2.camel@localhost>
[not found] ` <20090212160045.GB3642@comet>
[not found] ` <20090212161644.GD3642@comet>
[not found] ` <20090212162103.256b003f@snowcone>
[not found] ` <20090212171055.GA3652@comet>
[not found] ` <20090212172109.778fb268@snowcone>
[not found] ` <20090212173743.GD3652@comet>
[not found] ` <20090212180350.0d9a9df5@snowcone>
[not found] ` <1235037961.13198.779.camel@localhost>
[not found] ` <20090219125124.33eaa66c@snowcone>
[not found] ` <1235077892.13198.1923.camel@localhost>
[not found] ` <20090222171658.278ae167@halo.dirtyepic.sk.ca>
[not found] ` <49A1E1CB.1000806@gentoo.org>
[not found] ` <20090222234800.29d64b8d@snowcone>
2009-02-23 2:15 ` [gentoo-dev] Issues regarding glep-55 (Was: [gentoo-council] Re: Preliminary Meeting-Topics for 12 February 2009) Luca Barbato
2009-02-24 7:08 ` Luca Barbato
2009-02-24 14:19 ` Ciaran McCreesh
2009-02-24 16:04 ` Luca Barbato
2009-02-24 16:14 ` Ciaran McCreesh
2009-02-24 17:16 ` Luca Barbato
2009-02-24 18:24 ` Ciaran McCreesh
2009-02-25 3:04 99% ` Luca Barbato
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox