aboutsummaryrefslogtreecommitdiffstats
path: root/community/qemu/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-04-20 15:17:38 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-04-20 15:33:43 +0200
commit5adbe4930461bef37687ee064aa82533a1bdf3c9 (patch)
tree224dbc4a708f800bd43f50d64d0b25986eee99e4 /community/qemu/APKBUILD
parentf4d03a7ca40a19ccfae035ff519aa9bb1720ea40 (diff)
downloadaports-5adbe4930461bef37687ee064aa82533a1bdf3c9.tar.gz
aports-5adbe4930461bef37687ee064aa82533a1bdf3c9.tar.bz2
aports-5adbe4930461bef37687ee064aa82533a1bdf3c9.tar.xz
community/qemu: upgrade to 7.0.0
Diffstat (limited to 'community/qemu/APKBUILD')
-rw-r--r--community/qemu/APKBUILD115
1 files changed, 87 insertions, 28 deletions
diff --git a/community/qemu/APKBUILD b/community/qemu/APKBUILD
index f6501a2677..2036ba31f6 100644
--- a/community/qemu/APKBUILD
+++ b/community/qemu/APKBUILD
@@ -3,8 +3,8 @@
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qemu
-pkgver=6.2.0
-pkgrel=5
+pkgver=7.0.0
+pkgrel=0
pkgdesc="QEMU is a generic machine emulator and virtualizer"
url="https://qemu.org/"
arch="all"
@@ -65,6 +65,13 @@ options="suid !strip !check"
[ "$CARCH" = "riscv64" ] && options="$options textrels"
subpackages="$pkgname-doc $pkgname-lang $pkgname-guest-agent:guest
+ $pkgname-tools:_tools
+ $pkgname-hppa-firmware:_hppa_firmware
+ $pkgname-ppc-firmware:_ppc_firmware
+ $pkgname-s390x-firmware:_s390x_firmware
+ $pkgname-pr-helper:_pr_helper
+ $pkgname-vhost-user-gpu:_vhost_user_gpu
+ $pkgname-virtiofsd:_virtiofsd
"
_subsystems="
@@ -74,6 +81,7 @@ _subsystems="
arm
armeb
cris
+ hexagon
hppa
i386
m68k
@@ -138,31 +146,33 @@ done
_modules="
audio-alsa
+ audio-dbus
audio-oss
audio-pa
audio-sdl
+ audio-spice
block-curl
block-dmg-bz2
block-nfs
block-ssh
- hw-display-qxl
- hw-usb-redirect
- ui-curses
- ui-gtk
- ui-sdl
- ui-spice-app
- audio-spice
chardev-spice
- hw-display-virtio-gpu-pci
+ hw-display-qxl
hw-display-virtio-gpu
- hw-display-virtio-vga
hw-display-virtio-gpu-gl
+ hw-display-virtio-gpu-pci
hw-display-virtio-gpu-pci-gl
+ hw-display-virtio-vga
hw-display-virtio-vga-gl
hw-s390x-virtio-gpu-ccw
hw-usb-host
+ hw-usb-redirect
+ ui-curses
+ ui-dbus
ui-egl-headless
+ ui-gtk
ui-opengl
+ ui-sdl
+ ui-spice-app
ui-spice-core
"
@@ -184,7 +194,6 @@ subpackages="$subpackages $pkgname-img" # -img must be declared the last
source="https://wiki.qemu-project.org/download/qemu-$pkgver.tar.xz
0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
xattr_size_max.patch
- fix-ppc.patch
MAP_SYNC-fix.patch
fix-sockios-header.patch
guest-agent-shutdown.patch
@@ -192,12 +201,6 @@ source="https://wiki.qemu-project.org/download/qemu-$pkgver.tar.xz
musl-initialise-msghdr.patch
CVE-2021-20255.patch
- 0001-hw-arm-virt-Add-a-control-for-the-the-highmem-PCIe-M.patch
- 0002-hw-arm-virt-Add-a-control-for-the-the-highmem-redist.patch
- 0003-hw-arm-virt-Honor-highmem-setting-when-computing-the.patch
- 0004-hw-arm-virt-Use-the-PA-range-to-compute-the-memory-m.patch
- 0005-hw-arm-virt-Disable-highmem-devices-that-don-t-fit-i.patch
- 0006-hw-arm-virt-Drop-superfluous-checks-against-highmem.patch
$pkgname-guest-agent.confd
$pkgname-guest-agent.initd
@@ -410,14 +413,76 @@ _subsys() {
amove /usr/bin/qemu-$name
+ local _arch=${name#system-}
case "$name" in
+ system-aarch64)
+ amove /usr/share/qemu/edk2-aarch64-code.fd
+ ;;
+ system-arm)
+ amove /usr/share/qemu/edk2-arm-code.fd \
+ /usr/share/qemu/edk2-arm-vars.fd
+ ;;
system-x86_64|system-i386)
- provides="qemu-accel-tcg-${name#system-}"
- amove /usr/lib/qemu/accel-tcg-${name#system-}.so
+ provides="qemu-accel-tcg-$_arch"
+ amove /usr/lib/qemu/accel-tcg-$_arch.so \
+ /usr/share/qemu/edk2-$_arch-code.fd \
+ /usr/share/qemu/edk2-$_arch-secure-code.fd
+ ;;
+ system-s390x|system-hppa|system-ppc)
+ depends="$pkgname-$_arch-firmware"
;;
esac
}
+_tools() {
+ pkgdesc="QEMU support tools"
+ depends=""
+ options=""
+ amove /usr/bin/qemu-edid \
+ /usr/bin/qemu-keymap \
+ /usr/bin/elf2dmp
+}
+
+# keep s390x boot files in subpackage to prevent abuild from stripping it
+_s390x_firmware() {
+ pkgdesc="QEMU s390x boot devices"
+ depends=""
+ amove /usr/share/qemu/s390-ccw.img \
+ /usr/share/qemu/s390-netboot.img
+}
+
+_hppa_firmware() {
+ pkgdesc="QEMU hppa firmware"
+ depends=""
+ amove /usr/share/qemu/hppa-firmware.img
+}
+
+_ppc_firmware() {
+ pkgdesc="QEMU ppc firmware"
+ depends=""
+ amove /usr/share/qemu/openbios-ppc
+}
+
+_vhost_user_gpu() {
+ pkgdesc="QEMU vhost user GPU device"
+ depends=""
+ options=""
+ amove /usr/lib/qemu/vhost-user-gpu \
+ /usr/share/qemu/vhost-user/50-qemu-gpu.json
+}
+
+_virtiofsd() {
+ pkgdesc="QEMU virtio-fs shared file system daemon"
+ amove /usr/lib/qemu/virtiofsd \
+ /usr/share/qemu/vhost-user/50-qemu-virtiofsd.json
+}
+
+_pr_helper() {
+ pkgdesc="QEMU pr helper utility"
+ amove /usr/bin/qemu-pr-helper
+}
+
+
img() {
pkgdesc="QEMU command line tool for manipulating disk images"
depends=""
@@ -427,6 +492,7 @@ img() {
mv "$pkgdir"/usr/bin/qemu-img \
"$pkgdir"/usr/bin/qemu-io \
"$pkgdir"/usr/bin/qemu-nbd \
+ "$pkgdir"/usr/bin/qemu-storage-daemon \
"$subpkgdir"/usr/bin/
# We exploit the fact that -img subpackage are created last
@@ -482,22 +548,15 @@ _all_modules() {
}
sha512sums="
-e9f8231c9e1cfcc41cb47f10a55d63f6b8aee307af00cf6acf64acb7aa4f49fa7e9d6330703a2abea15d8b7bbaba7d3cb08c83edd98d82642367b527df730817 qemu-6.2.0.tar.xz
+44ecd10c018a3763e1bc87d1d35b98890d0d5636acd69fe9b5cadf5024d5af6a31684d60cbe1c3370e02986434c1fb0ad99224e0e6f6fe7eda169992508157b1 qemu-7.0.0.tar.xz
98db5e23397cfad4a7210f9f7e1c5fa5c48f065785439521c5b39325c429f2dc367c40925adff6aa8677b3192a1a98a30e93d5b9c879df523deb019c40edd9d9 0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
4b1e26ba4d53f9f762cbd5cea8ef6f8062d827ae3ae07bc36c5b0c0be4e94fc1856ad2477e8e791b074b8a25d51ed6d0ddd75e605e54600e5dd0799143793ce4 xattr_size_max.patch
-90c5424230914da5c8f04663892521c6a2775510cec980d7021ca99154465e56312620235827ec5fa71a909f16a85222aac8205d21b46ce3f70f49507d7f98a2 fix-ppc.patch
d7de79ea74e36702cac4a59e472564a55f0a663be7e63c3755e32b4b5dfbc04b390ee79f09f43f6ae706ee2aec9e005eade3c0fd4a202db60d11f436874a17d7 MAP_SYNC-fix.patch
39590476a4ebd7c1e79a4f0451b24c75b1817a2a83abaa1f71bb60b225d772152f0af8f3e51ff65645e378c536ffa6ff551dade52884d03a14b7c6a19c5c97d4 fix-sockios-header.patch
d6b81846cefd46b8fd1fb04450d4898f97dc77d11e049fb1bc8e2553bbb88c8325151d0e4bec70cc6820a5863c1d1749b99100b4747d91182856c3ca1946cb28 guest-agent-shutdown.patch
e3acdab38c17eccb87bce1dfec22ce9474dae281474b886860848ae206006b071378882b855023916bb00a86cfbe55216c3fa4336b4e402399df2a9937b8c21c mips-softfloat.patch
7387fb02371268072291c80c54a2785030a55aeb697c5e84a1c7a0179c42059338a70f384602a508d2189d63f35a2ca3591109dcc9ab8bc1ccfcc9dd7e89d0a5 musl-initialise-msghdr.patch
e9389a6e3b2c3b59f66ea13eb7a3515e87341a68ca14afeb1ddd0084717bf4a13f5f58dc41dadbf0f2faf8fe1ae94ba7d1469c41539c79e45fa1624c6081e904 CVE-2021-20255.patch
-88d2599275f64b67ee56b110241c4ad3e74aaf8a18d031e9c9323c8d887adeb4171b4b53c5d4991567dfac995c17a309fd10f3a70e72c2d26e4aec3eb526ad63 0001-hw-arm-virt-Add-a-control-for-the-the-highmem-PCIe-M.patch
-0dbc4e0f2cc880886ce1f16587b2dec8f04e478fdcc6378bedc50a6c4dacafec04bf7882db3522e4ee70f26e6d84557d27cd827e8982db31620f2973d4ba4a28 0002-hw-arm-virt-Add-a-control-for-the-the-highmem-redist.patch
-bdc51c430987322af007f966d8c03f7c7ee844e8a8d3bebef4d26a8f163f4b85751bcc6f704b4b5c29f33d02c81b6bc660b5e798e97ab5c3da1fd05eb991548f 0003-hw-arm-virt-Honor-highmem-setting-when-computing-the.patch
-cfb9ffd164284b9822ccd213e368e917e159717a12221c548df7e91382189b56e7e98565fb6c2f4633be163079fe3130b7593cc7aeffc091d117b07fe30edc08 0004-hw-arm-virt-Use-the-PA-range-to-compute-the-memory-m.patch
-198966993e94247067bf2125aa30eb90f83178ec1cd090380b2ecc925d7509d4d22b9c9880c500cc092e84c9ee25cdc25b1f0b17a3b40b3f3fca682f3d0aae5e 0005-hw-arm-virt-Disable-highmem-devices-that-don-t-fit-i.patch
-719f0fd6d985db2b1f7dd95138dfa3a09a5241de6358267d5cdc5a309ab268526cfefe24a04b6ab718d26e65a69f0dbf39154006bdf16a24fe149a6bec732580 0006-hw-arm-virt-Drop-superfluous-checks-against-highmem.patch
d90c034cae3f9097466854ed1a9f32ab4b02089fcdf7320e8f4da13b2b1ff65067233f48809911485e4431d7ec1a22448b934121bc9522a2dc489009e87e2b1f qemu-guest-agent.confd
1cd24c2444c5935a763c501af2b0da31635aad9cf62e55416d6477fcec153cddbe7de205d99616def11b085e0dd366ba22463d2270f831d884edbc307c7864a6 qemu-guest-agent.initd
9b7a89b20fcf737832cb7b4d5dc7d8301dd88169cbe5339eda69fbb51c2e537d8cb9ec7cf37600899e734209e63410d50d0821bce97e401421db39c294d97be2 80-kvm.rules