-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install DateTime@1.63
for perl-5.10.1
on macOS 14 Sonoma
#141
Comments
I'm not familiar with the API in diff --git a/DateTime.xs b/DateTime.xs
index 09778cf..9409144 100644
--- a/DateTime.xs
+++ b/DateTime.xs
@@ -13,7 +13,9 @@
# define dt_isfinite Perl_isfinite
# endif
# else
-# define dt_isfinite Perl_isfinite
+# ifndef __APPLE__
+# define dt_isfinite Perl_isfinite
+# endif
# endif
#define DAYS_PER_400_YEARS 146097
Never mind, it's for sure defined here: https://github.com/Perl/perl5/blob/5348debf9fd57fc15c26529386769684fab96e57/perl.h#L2140-L2154 Seems to be this line that fails which is the one calling |
Is this a typo that never got discovered somehow? Searching for It was originally added 2001 in Perl/perl5@758a5d7, updated in 2014 in Perl/perl5@4efd38a and then shortly after removed in Perl/perl5@25c46df but without any mention regarding the use of If this actually is a typo maybe we can fix this by redefining this given the same conditional as the original code? This fix also solves my issue: diff --git a/DateTime.xs b/DateTime.xs
index 09778cf..c546d05 100644
--- a/DateTime.xs
+++ b/DateTime.xs
@@ -13,6 +13,10 @@
# define dt_isfinite Perl_isfinite
# endif
# else
+# if !defined(Perl_fp_class_finite)
+# define Perl_is_inf Perl_isinf
+# define Perl_is_nan Perl_isnan
+# endif
# define dt_isfinite Perl_isfinite
# endif If you think that's reasonable I'll happily make a PR! |
I think the simplest thing is just to not worry about this on older macOS builds, similarly to how the code currently handles Windows pre-5.22.0. I'd note that 5.10.1 is now more than 14 years old. I don't want to invest a huge amount of effort in supporting it. |
I can't get my CI to work with older Perls on macOS. I'll do a trial release with the fix and monitor CPAN Testers. |
Yeah that sounds reasonable! I just wanted to do the right thing:tm: but I agree it's not worth spending effort on such old versions. Tbh I haven't used such old versions in a long time and the package I mentioned is probably not used much. It was mostly since both my package and this one claims to support this version.
Let me know if there's anything you want me to try for you if you don't have access to macOS! |
If you can try the trial release with an older Perl on macOS, I'd greatly appreciate it. |
Works fine both on my machine and in CI: https://github.com/personnummer/perl/actions/runs/6689612280/job/18173436632 Thank's a bunch! |
Fixed in 1.65. |
Hey, thanks for this awesome package!
I have a project (and pipeline) that uses the latest version of
DateTime
. With the latest auto bump of my action I noticed that I can no longer install latestDateTime
(currently at 1.63) on Perl 5.10.1 and macOS 14. Here's a link to a failed pipeline.To try to sort this out I installed
perl-5.10.1
locally on my macOS 14 machine but when I try to installDateTime
I get the same issue.Looking at the
build.log
I see that all the test fails with a similar error:This looks similar, although not the same, as the release notes for the
TRIAL RELEASE
s1.60
,1.61
and1.62
, could this be related? Any clues on what is going on here?And although this looks related to the C bindings for
DateTime
this is the rest of my environment (freshly installed and just runningcpanm DateTime
):Version for all modules
The text was updated successfully, but these errors were encountered: