-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
sextractor: Support newer compilers by changing finite
to isfinite
#181246
Conversation
finite
to isfinite
Has this been submitted upstream? |
Upstream hasn't released a version in years and would need checking against a whole range of old/ancient compilers. I felt it would be easier to patch it here since the range of compilers that need supporting is fairly limited compared to upstream. |
There is an upstream bug report opened in 2022 as well with no traction: astromatic/sextractor#27 |
If upstream stopped responding we should also deprecate this. |
Bit harsh ;) Gonna raise an MR on upstream as well and see if they respond |
It's either that or we keep putting bandaids on a corpse hoping it'll live. |
Don't get me wrong, I get your point of view. I'll try and get that fixed upstream. |
This supports latest compilers on Mac OS X, see Homebrew/homebrew-core#181246
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Thanks for contributing to Homebrew! 🎉 It looks like you're having trouble with a CI failure. See our contribution guide for help. You may be most interested in the section on dealing with CI failures. You can find the CI logs in the Checks tab of your pull request. |
|
5125b43
to
7c7a575
Compare
Well that took a few attempts but works now |
This supports latest compilers on Mac OS X, see Homebrew/homebrew-core#181246
Added an Apple check in the sextractor patch so now it works for Linux like before |
Isn't the upstream code in C ( |
I went with the header this page suggested: https://en.cppreference.com/w/cpp/numeric/math/isfinite |
The upstream maintainers replied so going to look at that code hopefully as well. I can try changing to math.h tonight |
This supports latest compilers on Mac OS X, see Homebrew/homebrew-core#181246
Changed it to math.h |
If this applies cleanly, could you make the patch block use the upstream commit instead of a |
Let me read up on how to do that! |
d30215d
to
e25fd7b
Compare
Should be done now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing
Signed-off-by: Rui Chen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Chekov2k ! Without contributions like yours it'd be impossible to keep homebrew going with the high standards that users have come to expect from the project. You can feel good knowing that you've made the world a tiny bit better for homebrew users around the world! 👍 🎉
No problem :) |
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?Works around the following issue: