internal/rosa/make: migrate to helper interface
All checks were successful
Test / Create distribution (push) Successful in 1m8s
Test / Sandbox (push) Successful in 2m55s
Test / Hakurei (push) Successful in 5m3s
Test / ShareFS (push) Successful in 5m13s
Test / Hpkg (push) Successful in 5m56s
Test / Hakurei (race detector) (push) Successful in 6m18s
Test / Sandbox (race detector) (push) Successful in 2m37s
Test / Flake checks (push) Successful in 1m43s

This also updates all affected artifacts to use new behaviour.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-01 23:54:40 +09:00
parent 9deaf853f0
commit cc60e0d15d
41 changed files with 698 additions and 740 deletions

View File

@@ -7,12 +7,13 @@ func (t Toolchain) newQEMU() pkg.Artifact {
version = "10.2.1"
checksum = "rjLTSgHJd3X3Vgpxrsus_ZZiaYLiNix1YhcHaGbLd_odYixwZjCcAIt8CVQPJGdZ"
)
return t.NewViaMake("qemu", version, t.NewPatchedSource(
"qemu", version, pkg.NewHTTPGetTar(
nil, "https://download.qemu.org/qemu-"+version+".tar.bz2",
mustDecode(checksum),
pkg.TarBzip2,
), false, [2]string{"disable-mcast-test", `diff --git a/tests/qtest/netdev-socket.c b/tests/qtest/netdev-socket.c
return t.NewPackage("qemu", version, pkg.NewHTTPGetTar(
nil, "https://download.qemu.org/qemu-"+version+".tar.bz2",
mustDecode(checksum),
pkg.TarBzip2,
), &PackageAttr{
Patches: [][2]string{
{"disable-mcast-test", `diff --git a/tests/qtest/netdev-socket.c b/tests/qtest/netdev-socket.c
index b731af0ad9..b5cbed4801 100644
--- a/tests/qtest/netdev-socket.c
+++ b/tests/qtest/netdev-socket.c
@@ -35,26 +36,28 @@ index b731af0ad9..b5cbed4801 100644
#endif
}
`},
), &MakeAttr{
},
// configure script uses source as scratch space
Writable: true,
Chmod: true,
ScriptEarly: `
# tests expect /var/tmp/ to be available
mkdir -p /var/tmp/
# https://gitlab.com/qemu-project/qemu/-/issues/3145
(cd /usr/src/qemu && sed -i \
sed -i \
's,Input/output error,I/O error,g' \
tests/qemu-iotests/[0-9][0-9][0-9]* \
tests/qemu-iotests/tests/copy-before-write \
tests/qemu-iotests/tests/file-io-error.out &&
tests/qemu-iotests/tests/file-io-error.out
cat << EOF > tests/qemu-iotests/150
#!/bin/sh
_notrun 'appears to spuriously fail on zfs'
EOF
)
`,
}, &MakeHelper{
Configure: [][2]string{
{"disable-download"},
{"disable-docs"},
@@ -68,28 +71,28 @@ EOF
"ppc64-softmmu"},
},
},
t.Load(Bash),
t.Load(Python),
t.Load(Ninja),
t.Load(Bzip2),
t.Load(PkgConfig),
t.Load(Diffutils),
Bash,
Python,
Ninja,
Bzip2,
PkgConfig,
Diffutils,
t.Load(OpenSSL),
t.Load(Bzip2),
t.Load(XZ),
OpenSSL,
Bzip2,
XZ,
t.Load(Flex),
t.Load(Bison),
t.Load(M4),
Flex,
Bison,
M4,
t.Load(PCRE2),
t.Load(Libffi),
t.Load(Zlib),
t.Load(GLib),
t.Load(Zstd),
t.Load(DTC),
t.Load(KernelHeaders),
PCRE2,
Libffi,
Zlib,
GLib,
Zstd,
DTC,
KernelHeaders,
)
}
func init() { artifactsF[QEMU] = Toolchain.newQEMU }