Skip to content

install.sh: fix Linux Ruby test logic#1017

Merged
MikeMcQuaid merged 1 commit intoHomebrew:mainfrom
gromgit:check-ruby
Aug 11, 2025
Merged

install.sh: fix Linux Ruby test logic#1017
MikeMcQuaid merged 1 commit intoHomebrew:mainfrom
gromgit:check-ruby

Conversation

@gromgit
Copy link
Contributor

@gromgit gromgit commented Aug 11, 2025

  1. Update the test code to mirror utils/ruby.sh more closely.
  2. Test simple require for stdlib existence before concluding "no usable Ruby" (Arch Linux is major reason for this).
  3. If no usable Ruby but Glibc is recent enough, force vendored Ruby so the install can proceed correctly.

Addresses https://github.com/orgs/Homebrew/discussions/5712 and https://github.com/orgs/Homebrew/discussions/6333.

1. Update the test code to mirror `utils/ruby.sh` more closely.
2. Test simple `require` for stdlib existence before concluding "no usable Ruby" (Arch Linux is major reason for this).
3. If no usable Ruby but Glibc is recent enough, force vendored Ruby so the install can proceed correctly.

Addresses https://github.com/orgs/Homebrew/discussions/5712 and https://github.com/orgs/Homebrew/discussions/6333.
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gromgit, great work and catch here. One question.

@MikeMcQuaid MikeMcQuaid merged commit bba7ffc into Homebrew:main Aug 11, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments