develooper Front page | perl.perl5.porters | Postings from February 2008

Re: Prob in CPAN make/gen & test...multiple mods appear affected.

Thread Previous | Thread Next
From:
Linda W
Date:
February 27, 2008 04:06
Subject:
Re: Prob in CPAN make/gen & test...multiple mods appear affected.
Message ID:
47C55244.7060807@tlinx.org
Michael G Schwern wrote:
> Linda W wrote:
>> The last time I tried to rebuild a bunch of modules in cpan, I noticed 
>> this problem, but didn't track it down [to being in the perl code]
>>
>> This is a problem where "//var/..." is not equivalent to "/var/..." 
>> (or \\var isn't equivalent to \var, i.e. Win32).
> 
> This is probably related to this issue:
> http://rt.cpan.org/Ticket/Display.html?id=32813
----
	Yup.  Patch mentioned (and a combined variant) worked.  Relative to
Extutils::Install build dir, I patched it as:

--- lib/ExtUtils/Install.pm     2007-09-09 16:17:23.000000000 -0700
+++ lib/ExtUtils/Install.pm     2008-02-27 03:39:18.110625000 -0800
@@ -436,7 +436,8 @@
      my $path='';
      my @make;
      while (@dirs) {
-        $dir = File::Spec->catdir($vol,@dirs);
+        $dir = File::Spec->catdir(@dirs);
+        $dir = File::Spec->catpath($vol,$dirs) if length $vol;
          next if ( $dir eq $path );
          if ( ! -e $dir ) {
              unshift @make,$dir;
----

It's like a 4-5 second wait with *each* *path* *access* without it, no wait
when fixed.   Not that everything is recompiling smoothing under 5.10, but that's
another matter...:-)

-linda



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