Skip Menu |

This queue is for tickets about the Module-Install CPAN distribution.

Report information
The Basics
Id: 23490
Status: resolved
Priority: 0/
Queue: Module-Install

Owner: Nobody in particular
Requestors: dagolden [...]

Bug Information
Severity: Normal
Broken in: 0.64
Fixed in: (no value)


Subject: t/02_basic.t fails -- detects Makefile in the future
Download (untitled) / with headers
text/plain 238b
On Win32, the FAT filesystem has only 2 second granularity. In some cases, 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
--- Sat Nov 18 19:52:00 2006 +++ 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.
Download (untitled) / with headers
text/plain 146b
Closed this ticket as it looks like this issue has already been addressed for some time (though in a bit different way from your patch). Thanks.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to