Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the DateTime-Format-Epoch CPAN distribution.

Report information
The Basics
Id: 55996
Status: resolved
Priority: 0/
Queue: DateTime-Format-Epoch

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

Bug Information
Severity: Important
Broken in: 0.11
Fixed in: 0.13



Download (untitled) / with headers
text/plain 324b
DateTime::Format::Epoch fails two tests on Windows (Strawberry Perl v5.10.1 (*) built for MWin32-x86-multi-thread) in t/402_format.t, specifically the last two tests. It appears to be an issue with Math::BigInt::GMP on Windows only. The attached patch fixes this issue by sniffing for the OS and not using GMP if on Windows.
Subject: Epoch.pm.patch
Download Epoch.pm.patch
text/x-diff 371b
--- Epoch.pm.bak 2010-03-27 08:46:34.833247188 -0400 +++ Epoch.pm 2010-03-27 08:47:18.897244168 -0400 @@ -9,7 +9,7 @@ use DateTime 0.22; use DateTime::LeapSecond; -use Math::BigInt ('lib' => 'GMP,Pari,FastCalc'); +use Math::BigInt ('lib' => $^O eq 'MSWin32' ? 'Pari,FastCalc' : 'GMP,Pari,FastCalc'); use Params::Validate qw/validate BOOLEAN OBJECT/; sub _floor {
"Me too", its causing a problem with the perl5i deps on Windows.


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

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