Subject: | Bug in installer |
Date: | Wed, 8 Oct 2014 17:21:15 +0000 |
To: | "bug-Archive-Extract-Libarchive [...] rt.cpan.org" <bug-Archive-Extract-Libarchive [...] rt.cpan.org> |
From: | "Krainak, Nicholas C" <nkrainak [...] mitre.org> |
Hi,
The installer for Archive::Extract::Libarchive seems to include:
inc/Devel/CheckLib.pm
However, the version of CheckLib.pm included is missing a patch that allows it to be installed on Cygwin:
https://rt.cpan.org/Public/Bug/Display.html?id=91771
Specifically:
diff --git a/lib/Devel/CheckLib.pm b/lib/Devel/CheckLib.pm
index f80ca22..8581039 100644
--- a/lib/Devel/CheckLib.pm
+++ b/lib/Devel/CheckLib.pm
@@ -374,7 +374,7 @@ sub _findcc {
my @cc = split(/\s+/, $Config{cc});
return ( [ @cc, @ccflags ], \@ldflags ) if -x $cc[0];
foreach my $path (@paths) {
- my $compiler = File::Spec->catfile($path, $cc[0]) . $Config{_exe};
+ my $compiler = File::Spec->catfile($path, $cc[0]) . ($^O eq 'cygwin' ? '' : $Config{_exe});
return ([ $compiler, @cc[1 .. $#cc], @ccflags ], \@ldflags)
if -x $compiler;
}
Perhaps the inclusion of this module would allow for the installation of the module on Cygwin.
--Nick