-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Restore Ruby 2.5 support #100
Conversation
While trying to justify the restoration of Ruby 2.6 support by looking at the stats from RubyGems.org, it appears that the third most popular Ruby version is still 2.5. It's not clear why this is but if it is easy for us to add support, this means we cover the top five most used Ruby versions according to https://ui.honeycomb.io/ruby-together/datasets/rubygems.org/result/HBSqTboW1yi (with the bonus of supporting 2.6 due to it being the default system Ruby on macOS Monterey).
Looks like the two failures are the same here:
@stanhu any ideas what might be causing that? |
@mudge The issue is that
This is because the arm64 builds in rake-compiler-dock use Ubuntu 20.04 as the base image, and that's why in the README.md we mentioned that glibc v2.29 is required. I originally tried to fix this in rake-compiler/rake-compiler-dock#68, but that change required QEMU instead of cross-compilation. I've considered sending an upstream fix to downgrade from Ubuntu 20.04 to 18.04 as the arm64 base image, but given that 18.04 has already reached EOL that idea doesn't seem prudent. If we really want Ruby 2.5 support, we could update the CI job to use a current version of Ubuntu and install Ruby 2.5 on it rather than use the |
Given Ruby 2.5 support would be for people (presumably) stuck on old platforms, if it doesn’t work on the official |
Note this is only an issue with arm64, since the x86 image uses an older version of glibc. We could just build 2.5 for x86 only, though if users did try to use the package with 2.5 arm64 they would encounter a load error. Or we could just test arm64 and Ruby 2.5 separately. |
Is there a way for us to use our own arm64 image with the older glibc to build the gem (to match x86) or is that a massive ordeal? |
@mudge It appears that |
Standardize on using the Alpine Ruby base images since they tend to use a more recent version of glibc. Since Alpine images don't include `bash` and `gcompat` by default, add a wrapper (`scripts/test-gem-install-sh`) for Alpine.
For some reason these |
I'm going to close this as I'm reticent to add Ruby 2.5 support that requires system dependencies newer than are available in the official (I would still love to know why Ruby 2.5 is so popular, outstripping both 3.1 and 3.2.) |
While trying to justify the restoration of Ruby 2.6 support by looking at the stats from RubyGems.org, it appears that the third most popular Ruby version is still 2.5. It's not clear why this is but if it is easy for us to add support, this means we cover the top five most used Ruby versions according to https://ui.honeycomb.io/ruby-together/datasets/rubygems.org/result/HBSqTboW1yi (with the bonus of supporting 2.6 due to it being the default system Ruby on macOS Monterey).