update qemu-iscsi to 11.0.0

- add python-setuptools build dep (new upstream requirement)
- keep qemu_qmp wheel (needed for offline build)
- remove microblazeel from test archs (removed upstream)
- fix iscsi test: exit code changed from 1 to 0 in QEMU 11
This commit is contained in:
sid 2026-04-29 21:31:02 -06:00
parent c746c75ab9
commit 4e5726693e

View file

@ -1,8 +1,8 @@
class QemuIscsi < Formula class QemuIscsi < Formula
desc "Generic machine emulator and virtualizer (with libiscsi support)" desc "Generic machine emulator and virtualizer (with libiscsi support)"
homepage "https://www.qemu.org/" homepage "https://www.qemu.org/"
url "https://download.qemu.org/qemu-10.2.2.tar.xz" url "https://download.qemu.org/qemu-11.0.0.tar.xz"
sha256 "784b296ff29c1417aa72323abcb2d2ea9ab9771724f577dcd785c3b04f21e176" sha256 "c04ca36012653f32d11c674d370cf52a710e7d3f18c2d8b63e4932052a4854d6"
license "GPL-2.0-only" license "GPL-2.0-only"
head "https://gitlab.com/qemu-project/qemu.git", branch: "master" head "https://gitlab.com/qemu-project/qemu.git", branch: "master"
@ -17,6 +17,7 @@ class QemuIscsi < Formula
depends_on "meson" => :build depends_on "meson" => :build
depends_on "ninja" => :build depends_on "ninja" => :build
depends_on "pkgconf" => :build depends_on "pkgconf" => :build
depends_on "python-setuptools" => :build
depends_on "python@3.14" => :build depends_on "python@3.14" => :build
depends_on "spice-protocol" => :build depends_on "spice-protocol" => :build
@ -60,7 +61,10 @@ class QemuIscsi < Formula
def install def install
ENV["LIBTOOL"] = "glibtool" ENV["LIBTOOL"] = "glibtool"
rm(Dir["python/wheels/*"] - Dir["python/wheels/pycotap-*-none-any.whl"]) # Remove wheels unless explicitly permitted. Currently this:
# * removes `meson` so that brew `meson` is always used
# * keeps `pycotap` and `qemu_qmp` which are pure-python "none-any" wheels (allowed in homebrew/core)
rm(Dir["python/wheels/*"] - Dir["python/wheels/{pycotap,qemu_qmp}-*-none-any.whl"])
args = %W[ args = %W[
--prefix=#{prefix} --prefix=#{prefix}
@ -101,7 +105,7 @@ class QemuIscsi < Formula
end end
archs = %w[ archs = %w[
aarch64 alpha arm avr hppa i386 loongarch64 m68k microblaze microblazeel mips aarch64 alpha arm avr hppa i386 loongarch64 m68k microblaze mips
mips64 mips64el mipsel or1k ppc ppc64 riscv32 riscv64 rx mips64 mips64el mipsel or1k ppc ppc64 riscv32 riscv64 rx
s390x sh4 sh4eb sparc sparc64 tricore x86_64 xtensa xtensaeb s390x sh4 sh4eb sparc sparc64 tricore x86_64 xtensa xtensaeb
] ]
@ -112,8 +116,8 @@ class QemuIscsi < Formula
resource("homebrew-test-image").stage testpath resource("homebrew-test-image").stage testpath
assert_match "file format: raw", shell_output("#{bin}/qemu-img info FLOPPY.img") assert_match "file format: raw", shell_output("#{bin}/qemu-img info FLOPPY.img")
assert_match "libiscsi", assert_match "iscsi",
shell_output("#{bin}/qemu-system-x86_64 -drive format=? 2>&1", 1) shell_output("#{bin}/qemu-system-x86_64 -drive format=? 2>&1")
if OS.mac? if OS.mac?
output = shell_output("codesign --verify --verbose #{bin}/qemu-system-x86_64 2>&1") output = shell_output("codesign --verify --verbose #{bin}/qemu-system-x86_64 2>&1")