You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're getting a lot of support requests for Ruby 3.0 failing on macOS 14+ due to a known bug in bigdecimal.c that's been fixed in Ruby 3.1 but won't get backported to 3.0 #2185 (comment)
The solution we give users is always the same: apply an upstream patch.
My question is: to reduce our workload and give users a better experience, should ruby-build automatically apply this patch to Ruby 3.0 to enable it to compile on macOS? This is perhaps controversial because ruby-build had historically always refused to apply any patches automatically, guaranteeing that you're always running a "vanilla" version of Ruby, and because Ruby 3.0 is EOL and it shouldn't be anyone's business to help EOL versions compile. But here we are.
Alternative solutions:
In BUILD FAILED messages there could be a textual hint about this patch, if the compilation errored out in bigdecimal.c
Do nothing and let people figure it out on our discussion forums
This is perhaps controversial because ruby-build had historically always refused to apply any patches automatically, guaranteeing that you're always running a "vanilla" version of Ruby
Agreed.
In BUILD FAILED messages there could be a textual hint about this patch, if the compilation errored out in bigdecimal.c
I think for simplicity it'd be fine to just output some early text linking to that solution whenever installing 3.0.x, e.g. just adding some echo's in the definitions.
We're getting a lot of support requests for Ruby 3.0 failing on macOS 14+ due to a known bug in
bigdecimal.c
that's been fixed in Ruby 3.1 but won't get backported to 3.0 #2185 (comment)The solution we give users is always the same: apply an upstream patch.
My question is: to reduce our workload and give users a better experience, should ruby-build automatically apply this patch to Ruby 3.0 to enable it to compile on macOS? This is perhaps controversial because ruby-build had historically always refused to apply any patches automatically, guaranteeing that you're always running a "vanilla" version of Ruby, and because Ruby 3.0 is EOL and it shouldn't be anyone's business to help EOL versions compile. But here we are.
Alternative solutions:
bigdecimal.c
Thoughts @hsbt @eregon?
The text was updated successfully, but these errors were encountered: