Files
hakurei/internal/rosa/package/qemu/package.az
2026-05-28 12:16:55 +09:00

81 lines
1.4 KiB
Go

package qemu {
description = "a generic and open source machine emulator and virtualizer";
website = "https://www.qemu.org";
anitya = 13607;
version# = "11.0.1";
source = remoteTar {
url = "https://download.qemu.org/qemu-"+version+".tar.bz2";
checksum = "J3j3uNpiqxEoIEngBX2objV_1tzGfEgEphp5Ph86AJQvA_XMwYUakyvRH7YKEkwV";
compress = bzip2;
};
patches = [ "disable-mcast-test.patch" ];
// configure script uses source as scratch space
writable = true;
chmod = true;
early = `
# tests expect /var/tmp/ to be available
mkdir -p /var/tmp/
# https://gitlab.com/qemu-project/qemu/-/issues/3145
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
cat << EOF > tests/qemu-iotests/150
#!/bin/sh
_notrun 'appears to spuriously fail on zfs'
EOF
`;
exec = make {
configure = {
"disable-download";
"disable-docs";
"static";
"target-list-exclude": join {
elems = [
// fails to load firmware
"ppc-linux-user",
"ppc64-linux-user",
"ppc64le-linux-user",
"ppc-softmmu",
"ppc64-softmmu",
];
sep = ",";
};
};
};
inputs = [
bash,
python,
python-setuptools,
python-wheel,
ninja,
pkg-config,
diffutils,
openssl,
xz,
flex,
bison,
m4,
glib,
zstd,
dtc,
kernel-headers,
];
runtime = [
glib,
zstd,
];
}