Subject: | t/02_basic.t fails -- detects Makefile in the future |
On Win32, the FAT filesystem has only 2 second granularity. In some
cases, Install.pm detects a future Makefile and fails, causing
t/02_basic.t to fail its test.
The attached patch sleeps for 2 seconds on Win32 at the appropriate spot.
Subject: | Module-Install-fix-future-Makefile.patch |
--- Install.pm.orig Sat Nov 18 19:52:00 2006
+++ Install.pm Sat Nov 18 19:53:24 2006
@@ -55,6 +55,11 @@
# again. This is bad. Rather than taking action to touch it (which
# is unreliable on some platforms and requires write permissions)
# for now we should catch this and refuse to run.
+
+# FAT filesystem on Win32 has 2 second time granularity so
+# sleep just in case
+sleep(2) if $^O eq 'MSWin32';
+
if ( -f $0 and (stat($0))[9] > time ) {
die << "END_DIE";
Your installer $0 has a modification time in the future.