Skip to content

Commit 8956558

Browse files
committed
qemu: fix segfault on macOS 15.0-15.3
Closes Homebrew#221154 Signed-off-by: botantony <antonsm21@gmail.com>
1 parent 60be0c7 commit 8956558

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Formula/q/qemu.rb

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ class Qemu < Formula
7272
end
7373

7474
def install
75+
# Fix segfault on macOS 15.0-15.3
76+
# https://github.com/Homebrew/homebrew-core/issues/221154
77+
if OS.mac? && MacOS.version == :sequoia
78+
inreplace "meson.build", "config_host_data.set('HAVE_STRCHRNUL', cc.has_function('strchrnul'))\n", ""
79+
end
80+
7581
ENV["LIBTOOL"] = "glibtool"
7682

7783
# Remove wheels unless explicitly permitted. Currently this:

0 commit comments

Comments
 (0)