Subject: | [Fwd: Fix for ExtUtils-Install-1.44 on cygwin] |
Date: | Wed, 30 Jan 2008 12:32:43 -0800 |
To: | bug-ExtUtils-Install [...] rt.cpan.org |
From: | Michael G Schwern <schwern [...] pobox.com> |
Show quoted text
-------- Original Message --------
Subject: Fix for ExtUtils-Install-1.44 on cygwin
Date: Wed, 30 Jan 2008 03:26:40 +0100
From: Wolfgang Baron <Wolfgang_Baron@gmx.de>
To: mschwern@cpan.org
Dear Michael G Schwern,
I found a problem with ExtUtils-Install-1.44 on cygwin, reporting it
cannot install into directories, because it supposedly cannot write to
directory "/", taking quite a while to make up its mind.
This is so, because on cygwin, double slashes at the beginning of a path
makes the first part of the path to be interpreted as a host name. Unix
ignores double slashes in paths. I fixed this for my private
installation and present you the really small fix I beg you to integrate
into your next release (or anything equivalent).
The problem is caused by the way File::Spec asymmetrically splits and
concatenates paths. My solution is to only use the volume description,
if it is not empty. I changed line 439 to the following:
$ diff Install_org.pm Install.pm
439c439,440
< $dir = File::Spec->catdir($vol,@dirs);
---
> $dir = File::Spec->catdir(@dirs);
> $dir = File::Spec->catdir($vol,$dir) if length $vol;
Thanks, in case you integrate this into the next release, so I don't
have to continuously apply patches to ExtUtils::Install, which is also
needed for cpan!
Kind regards,
Wolfgang Baron