Subject: | [PATCH] portability for new dependency logic |
Hard-coding forward slashes as the directory delimiter is not necessarily going to work across
platforms, and in fact it broke the core build on VMS when 5.83 was integrated into blead.
Luckily it's easy to do the portable thing with File::Spec; see the attached patch, which is against
blead, so apply with -p3.
Subject: | digest_sha_makefile.patch |
--- cpan/Digest-SHA/Makefile.PL;-0 2013-03-05 10:47:21 -0600
+++ cpan/Digest-SHA/Makefile.PL 2013-03-06 07:31:46 -0600
@@ -4,6 +4,7 @@ use strict;
use ExtUtils::MakeMaker;
use Getopt::Std;
use Config qw(%Config);
+use File::Spec;
my $PM = 'lib/Digest/SHA.pm';
@@ -33,8 +34,8 @@ if ($Config{archname} =~ /^i[3456]86/ &&
push(@extra, OPTIMIZE => '-O1 -fomit-frame-pointer');
}
-my @srcs = map { "src/$_" } qw(sha.c sha64bit.c);
-my @hdrs = map { "src/$_" } qw(sha.h sha64bit.h);
+my @srcs = map { File::Spec->catfile('src', $_) } qw(sha.c sha64bit.c);
+my @hdrs = map { File::Spec->catfile('src', $_) } qw(sha.h sha64bit.h);
my $deps = join(' ', @srcs, @hdrs);
my %att = (