develooper Front page | perl.perl5.porters | Postings from August 2009

Re: help wrt old perl versions @INC

Thread Previous | Thread Next
From:
Jerome Quelin
Date:
August 8, 2009 03:03
Subject:
Re: help wrt old perl versions @INC
Message ID:
20090808100256.GB4260@mongueurs.net
hi,


On 09/08/08 11:51 +0200, Rafael Garcia-Suarez wrote:
> 2009/8/8 Jerome Quelin <jquelin@gmail.com>:
> > i just compiled 5.10.1-rc1 for mandriva, and it seems to work fine.
> 
> From the rpm specfile ? I think the spec file solves all of this; at
> least it did back in time for the 5.8.x series.

from the spec file, yes.

 
> > however, since we ship lots of modules that are not yet rebuild with the
> > new perl, i want @INC to include the 5.10.0 @INC.
> >
> > i used the following command to configure:
> >
> > sh Configure -des \
> >  -Dinc_version_list="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" \
> >  ...
> >
> > however, the resulting perl has the following @INC:
> >    /usr/lib/perl5/site_perl/5.10.1/x86_64-linux-thread-multi
> >    /usr/lib/perl5/site_perl/5.10.1
> >    /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi
> >    /usr/lib/perl5/vendor_perl/5.10.1
> >    /usr/lib/perl5/5.10.1/x86_64-linux-thread-multi
> >    /usr/lib/perl5/5.10.1
> >    /usr/lib/perl5/site_perl
> >    /usr/lib/perl5/vendor_perl/5.10.0
> >    /usr/lib/perl5/vendor_perl
> 
> Do the other directories exist ? Configure will only include
> directories it can find.

at least the directory
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi does exist
during compilation, since it is holding URPM.pm which is the base to
install the packages needed during compilation.


> > and of course, since it misses
> >    /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
> 
> I thought that mandriiva compiled a perl without threads: in that case
> that directory should not exist. (And if it does compile a perl with
> threads, I'm curious about the rationale.)

mandriva ships a threaded perl, i don't know the rationale. the
directory does exist.


> > ==> all the arch-dependant modules are not available for the new perl
> > (unless using PERL5LIB of course)
> >
> > so, what's the best way to add this missing directory? would using:
> >  -Dotherlibdirs=/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
> >
> > work? otherwise, any help is welcome.
> 
> No, you don't need to add the arch suffix : Configure will add the
> relevant subdirs as needed.

hmm, then what should/can i do?


jérôme 
-- 
jquelin@gmail.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About