Skip to content

[WIP] chore: bump homebrew version to 5.1.0 - #129

Closed
MillerApps wants to merge 3 commits into
zhaofengli:mainfrom
MillerApps:main
Closed

[WIP] chore: bump homebrew version to 5.1.0#129
MillerApps wants to merge 3 commits into
zhaofengli:mainfrom
MillerApps:main

Conversation

@MillerApps

@MillerApps MillerApps commented Mar 11, 2026

Copy link
Copy Markdown

[WIP] Just bumping the homebrew version to the latest. Initial brew upgrade fails, but subsequent ones succeed.

@MillerApps MillerApps closed this Mar 17, 2026
@MillerApps MillerApps reopened this Mar 17, 2026
@MillerApps MillerApps changed the title chore: bump homebrew version to 5.1.0 [WIP] chore: bump homebrew version to 5.1.0 Mar 17, 2026
@MillerApps

Copy link
Copy Markdown
Author

• I found one real issue in Homebrew’s Ruby flags
Homebrew was launching Ruby with --disable=gems,rubyopt, which can break fiddle. I patched that to just --disable=rubyopt, and the patch did apply.
• That patch was not enough
Even after the flag fix, brew upgrade still fails on fiddle.
• Plain Ruby can load fiddle, but Homebrew’s Ruby environment cannot
This is the big clue. The raw Ruby binary works, but brew ruby -e 'require "fiddle"' fails.
• Why that probably happens
In Ruby 4, fiddle is no longer available the way Homebrew expects by default. So Homebrew’s Ruby 4 environment likely needs fiddle explicitly available as a gem or package in the Nix-managed Ruby environment.
• Best current conclusion
This is no longer just a simple patching problem. The remaining issue appears to be a deeper compatibility problem between:
• Homebrew 5.1.0
• Ruby 4
• and the Ruby environment provided through nix-homebrew
• Bottom line
I got far enough to prove the issue is real and isolate where it lives, but the remaining fix is advanced enough that it probably needs someone more experienced with Nix, Ruby packaging, or Homebrew internals.

@MillerApps MillerApps closed this Mar 18, 2026
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.

1 participant