Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Push the atime and mtime of generated Makefile.PLs back 4 seconds in …

…make_ext.pl

In certain circumstances ( on virtual machines ) the generated Makefile.PL can
produce a Makefile that is older than the Makefile.PL

Altering the atime and mtime backwards by 4 seconds seems to resolve the issue.
  • Loading branch information...
commit 23525070d6c0e51f718bc1aebdc0acbadb33aa4a 1 parent 7c2d9d0
@bingos bingos authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 make_ext.pl
View
6 make_ext.pl
@@ -377,6 +377,10 @@ sub build_extension {
EOM
close $fh or die "Can't close Makefile.PL: $!";
}
+ eval {
+ my $ftime = time - 4;
+ utime $ftime, $ftime, 'Makefile.PL';
+ };
print "\nRunning Makefile.PL in $ext_dir\n";
# Presumably this can be simplified
@@ -388,7 +392,7 @@ sub build_extension {
# Inherited from make_ext.pl
@cross = '-MCross';
}
-
+
my @args = ("-I$lib_dir", @cross, 'Makefile.PL');
if ($is_VMS) {
my $libd = VMS::Filespec::vmspath($lib_dir);
Please sign in to comment.
Something went wrong with that request. Please try again.