[Mageia-dev] perl 5.12.3 on its way
Michael Scherer
misc at zarb.org
Thu Feb 17 01:10:46 CET 2011
Le mercredi 16 février 2011 à 23:54 +0100, Thierry Vignaud a écrit :
> On 16 February 2011 22:59, Michael Scherer <misc at zarb.org> wrote:
> >> Do you have ideas for this pb to not happen anymore ?
> >
> > For this very specific case :
> > "do not rely on human to set @INC when we can do it automatically with a
> > script"
>
> You mean at runtime?
> B/c I failed to see how we could automagically compile a list of
> released/packaged/used
> perl versions at build time
We can just bruteforce the list. Ie decide that for every possible
version from 5.8.0 to 5.12.X, we add them to @INC.
5.8.0, 5.8.1, 5.8.2, etc
then 5.10.0, 5.10.1, etc, to 5.10.5
and then 5.12.0 to 5.12.X
And keep the binary only for the current version.
For now, we have this :
-Dinc_version_list="5.12.5.12.2/%{full_arch} 2 5.12.1
5.12.1/%{full_arch} 5.12.0 5.12.0/%{full_arch} 5.10.1 5.10.0 5.8.8 5.8.7
5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 5.6.0
That seems something that we could generate with some loops, if we do
not care of adding non existent perl version in the mix.
The only issue I can see is for performance, but since we are still
doing a lookup for perl 5.6.0 who was released 11 years ago, I do not
think a few more bogus directory will matter so much. ( and I think all
our rpm were migrated to 5.10 at least ).
--
Michael Scherer
More information about the Mageia-dev
mailing list