8000 qemu 10.0.2 · Homebrew/homebrew-core@ac15ec5 · GitHub
[go: up one dir, main page]

Skip to content

Commit ac15ec5

Browse files
BrewTestBotchenrui333
authored andcommitted
qemu 10.0.2
qemu: remove build patches and move test resource into test block Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent 53d5324 commit ac15ec5

File tree

1 file changed

+9
-36
lines changed

1 file changed

+9
-36
lines changed

Formula/q/qemu.rb

Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,11 @@
11
class Qemu < Formula
22
desc "Generic machine emulator and virtualizer"
33
homepage "https://www.qemu.org/"
4+
url "https://download.qemu.org/qemu-10.0.2.tar.xz"
5+
sha256 "ef786f2398cb5184600f69aef4d5d691efd44576a3cff4126d38d4c6fec87759"
46
license "GPL-2.0-only"
57
head "https://gitlab.com/qemu-project/qemu.git", branch: "master"
68

7-
stable do
8-
url "https://download.qemu.org/qemu-10.0.0.tar.xz"
9-
sha256 "22c075601fdcf8c7b2671a839ebdcef1d4f2973eb6735254fd2e1bd0f30b3896"
10-
11-
# The next four patches fix segmentation faults on macOS 15.0-15.3
12-
# See https://github.com/Homebrew/homebrew-core/issues/221154
13-
# Changes already merged upstream, remove on next release
14-
15-
patch do
16-
url "https://gitlab.com/qemu-project/qemu/-/commit/563cd698dffb977eea0ccfef3b95f6f9786766f3.diff"
17-
sha256 "51d07db06532bdd655bec3fdd7eb15cd2004fc96652f0d4dc25522917c9b129a"
18-
end
19-
20-
patch do
21-
url "https://gitlab.com/qemu-project/qemu/-/commit/6804b89fb531f5dd49c1e038214c89272383e220.diff"
22-
sha256 "7e17787f09488fa731d6de8304b689df767236009c19a3bb662904189028d687"
23-
end
24-
25-
patch do
26-
url "https://gitlab.com/qemu-project/qemu/-/commit/797150d69d2edba8b1bd4a7d8c7ba2df1219c503.diff"
27-
sha256 "82f14935f588f7ee103e2ba25852aa3cbf19a4319588f270e09d3bd33fe83001"
28-
end
29-
30-
patch do
31-
url "https://gitlab.com/qemu-project/qemu/-/commit/a5b30be534538dc6e44a68ce9734e45dd08f52ec.diff"
32-
sha256 "a1ff1e8e7c64e7f7dfe7284277f2bef76b837a4c3a86394dd29768d1b1586818"
33-
end
34-
end
35-
369
livecheck do
3710
url "https://www.qemu.org/download/"
3811
regex(/href=.*?qemu[._-]v?(\d+(?:\.\d+)+)\.t/i)
@@ -92,13 +65,6 @@ class Qemu < Formula
9265
depends_on "systemd"
9366
end
9467

95-
# 820KB floppy disk image file of FreeDOS 1.2, used to test QEMU
96-
# NOTE: Keep outside test block so that `brew fetch` is able to handle slow download/retries
97-
resource "homebrew-test-image" do
98-
url "https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/official/FD12FLOPPY.zip"
99-
sha256 "81237c7b42dc0ffc8b32a2f5734e3480a3f9a470c50c14a9c4576a2561a35807"
100-
end
101-
10268
def install
10369
ENV["LIBTOOL"] = "glibtool"
10470

@@ -144,6 +110,13 @@ def install
144110
end
145111

146112
test do
113+
# 820KB floppy disk image file of FreeDOS 1.2, used to test QEMU
114+
# NOTE: Keep outside test block so that `brew fetch` is able to handle slow download/retries
115+
resource "homebrew-test-image" do
116+
url "https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/official/FD12FLOPPY.zip"
117+
sha256 "81237c7b42dc0ffc8b32a2f5734e3480a3f9a470c50c14a9c4576a2561a35807"
118+
end
119+
147120
archs = %w[
148121
aarch64 alpha arm avr hppa i386 loongarch64 m68k microblaze microblazeel mips
149122
mips64 mips64el mipsel or1k ppc ppc64 riscv32 riscv64 rx

0 commit comments

Comments
 (0)
0