Skip to content
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

Consider releasing a musl build #79

Open
stanhu opened this issue Jul 17, 2023 · 2 comments
Open

Consider releasing a musl build #79

stanhu opened this issue Jul 17, 2023 · 2 comments
Labels
packaging Issues related to the building of the gem (including precompilation)

Comments

@stanhu
Copy link
Collaborator

stanhu commented Jul 17, 2023

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

@mudge mudge added the feature label Sep 16, 2023
@mudge mudge added packaging Issues related to the building of the gem (including precompilation) and removed feature labels Sep 25, 2023
@mudge
Copy link
Owner

mudge commented Jan 26, 2024

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

@mudge
Copy link
Owner

mudge commented Apr 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging Issues related to the building of the gem (including precompilation)
Projects
None yet
Development

No branches or pull requests

2 participants