develooper Front page | perl.perl5.porters | Postings from March 2000

[PATCH] Re: [ID 20000324.002] OK: perl v5.6.0 on sun4-solaris-64int 2.7

From:
Robin Barker
Date:
March 24, 2000 10:14
Subject:
[PATCH] Re: [ID 20000324.002] OK: perl v5.6.0 on sun4-solaris-64int 2.7
Message ID:
200003241814.SAA08569@tempest.npl.co.uk
I sent:
> ---
> @INC for perl v5.6.0:
>     /home/rmb1/appl/lib/perl5/site_perl/5.005
>     /home/rmb1/appl/lib/perl5/5.6.0/sun4-solaris-64int
>     /home/rmb1/appl/lib/perl5/5.6.0
>     /home/rmb1/appl/lib/perl5/site_perl/5.6.0/sun4-solaris-64int
>     /home/rmb1/appl/lib/perl5/site_perl/5.6.0
>     /home/rmb1/appl/lib/perl5/site_perl
>     .
> 
But in fact that's a "Not OK". 
@INC should have picked up 5.5.670/sun4-solaris-64int and 5.5.670

And its all my fault, because its due to my fix to preserve ~ in
$prefix in Configure.  The problem is that F<getverlist> uses 
sitelib instead of sitelibexp.  In fact, as the patch below shows,
it doesn't need sitelib but sitelib_stem (which it recalculates).

On the up side, this bug is very low severity because
 - it can avoided by using expanded pathnames for $prefix, and 
 - even when it bites perl is fine: it just has fewer directories
   to wade through.

Well done Sarathy (and the rest of us) for getting out 5.6.0!

Robin 

--- Configure.orig	Fri Mar 24 18:14:53 2000
+++ Configure	Fri Mar 24 18:46:19 2000
@@ -5521,13 +5521,12 @@
 use File::Basename;
 \$api_versionstring = "$api_versionstring";
 \$version = "$version";
-\$sitelib = "$sitelib";
+\$stem = "$sitelib_stem";
 \$archname = "$archname";
 EOPL
 	$cat >> getverlist <<'EOPL'
 # Can't have leading @ because metaconfig interprets it as a command!
 ;@inc_version_list=();
-$stem=dirname($sitelib);
 # XXX Redo to do opendir/readdir? 
 if (-d $stem) {
     chdir($stem);

-- 
Robin Barker                        | Eail:  Robin.Barker@npl.co.uk
CMSC, Building 10,                  | Phone: +44 (0) 20 8943 7090
National Physical Laboratory,       | Fax:   +44 (0) 20 8977 7091
Teddington, Middlesex, UK. TW11 OLW | WWW:   http://www.npl.co.uk



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