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

Report information
The Basics
Id:
23490
Status:
resolved
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
dagolden [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
0.64
Fixed in:
(no value)

Attachments
Module-Install-fix-future-Makefile.patch



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.
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 runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.