Consider releasing a musl build
stanhu opened this issue · 2 comments
In #76, using a precompiled gem with alpine
or other musl-based systems requires:
apk add libstdc++ gcompat
For now, we should just document this requirement.
Using a musl build requires enforcing RubyGems 3.3.22 due to rubygems/rubygems#5852. Some glibc LInux systems might install the musl build without this enforcement:
s.required_rubygems_version = '>= 3.3.22'
I've used the rbsys/x86_64-linux-musl:0.9.72
Docker image to build a Rust-related project; it might help here.
Related issue: rake-compiler/rake-compiler-dock#75
The newly released rake-compiler-dock 1.5.0.rc1 might be relevant here: https://github.com/rake-compiler/rake-compiler-dock/releases/tag/v1.5.0.rc1
Given all the caveats described in https://github.com/rake-compiler/rake-compiler-dock?tab=readme-ov-file#linux-gnu-and-musl-important-details, I’m inclined to agree with @flavorjones in sparklemotion/nokogiri#3111 (comment) to wait until all supported platforms have a version of RubyGems and Bundler that work with musl gems by default.