Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit 8a0b11d

Browse files
authored
Merge pull request #230 from Homebrew/sched-lock-hang-fix
2 parents 5769fde + 227684b commit 8a0b11d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Formula/portable-ruby.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class PortableRuby < PortableFormula
66
url "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.gz"
77
sha256 "fe6a30f97d54e029768f2ddf4923699c416cdbc3a6e96db3e2d5716c7db96a34"
88
license "Ruby"
9+
revision 1
910

1011
# This regex restricts matching to versions other than X.Y.0.
1112
livecheck do
@@ -47,6 +48,13 @@ class PortableRuby < PortableFormula
4748
end
4849
end
4950

51+
# Fix rare hang on forking. Affected Homebrew/core CI, especially on macOS 14 x86_64.
52+
# Patch in production use at Stripe.
53+
patch do
54+
url "https://raw.githubusercontent.com/sorbet/sorbet/2d91ebab7b642b900e02233bd49f593ad355469d/third_party/ruby/reinit_native_sched_lock.patch"
55+
sha256 "ded85ab6979b897d5b39af14ba46434e8d235200ac8cc82af2345f2166b5d185"
56+
end
57+
5058
def install
5159
# Remove almost all bundled gems and replace with our own set.
5260
rm_r ".bundle"

0 commit comments

Comments
 (0)