extra/qemu: fix

This commit is contained in:
Kevin Mihelich 2024-09-08 17:26:27 +00:00
parent 475cbe0e00
commit 869ee82c7d

View file

@ -4,6 +4,7 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove makedepends on seabios, revert not installing qemu seabios files # - remove makedepends on seabios, revert not installing qemu seabios files
# - remove qemu-vmsr-helper package, nothing built for it
# ALARM: Qu Wenruo <wqu@suse.com> # ALARM: Qu Wenruo <wqu@suse.com>
# - remove static build, make qemu-base/qemu-desktop meta packages to use their native system emulator as default dependency # - remove static build, make qemu-base/qemu-desktop meta packages to use their native system emulator as default dependency
@ -27,7 +28,6 @@ pkgname=(
qemu-ui-{curses,dbus,egl-headless,gtk,opengl,sdl,spice-{app,core}} qemu-ui-{curses,dbus,egl-headless,gtk,opengl,sdl,spice-{app,core}}
qemu-user{,-binfmt} qemu-user{,-binfmt}
qemu-vhost-user-gpu qemu-vhost-user-gpu
qemu-vmsr-helper
qemu-{base,desktop,emulators-full,full} qemu-{base,desktop,emulators-full,full}
) )
pkgver=9.1.0 pkgver=9.1.0
@ -222,7 +222,6 @@ _qemu_desktop_optdepends=(
'qemu-tests: for QEMU tests' 'qemu-tests: for QEMU tests'
'qemu-tools: for QEMU tools' 'qemu-tools: for QEMU tools'
'qemu-user: for user mode emulation of QEMU targets' 'qemu-user: for user mode emulation of QEMU targets'
'qemu-vmsr-helper: for accessing the Running Average Power Limit (RAPL) MSR'
) )
_qemu_base_optdepends=( _qemu_base_optdepends=(
@ -539,8 +538,6 @@ package_qemu-common() {
_pick qemu-vhost-user-gpu usr/lib/qemu/vhost-user-gpu _pick qemu-vhost-user-gpu usr/lib/qemu/vhost-user-gpu
_pick qemu-vhost-user-gpu usr/share/qemu/vhost-user/50-qemu-gpu.json _pick qemu-vhost-user-gpu usr/share/qemu/vhost-user/50-qemu-gpu.json
_pick qemu-vmsr-helper usr/bin/qemu-vmsr-helper
) )
} }
@ -1087,14 +1084,6 @@ package_qemu-vhost-user-gpu() {
_install_licenses _install_licenses
} }
package_qemu-vmsr-helper() {
pkgdesc="QEMU persistent reservation utility"
depends=(gcc-libs glib2 libglib-2.0.so libgmodule-2.0.so glibc gnutls libcap-ng libcap-ng.so liburing liburing.so numactl libnuma.so pam libpam.so qemu-common=$pkgver-$pkgrel)
mv -v $pkgname/* "$pkgdir"
install -vDm 644 $pkgbase-$pkgver/contrib/systemd/$pkgname.{service,socket} -t "$pkgdir/usr/lib/systemd/system/"
_install_licenses
}
package_qemu-base() { package_qemu-base() {
pkgdesc="A basic QEMU setup for headless environments" pkgdesc="A basic QEMU setup for headless environments"
depends=( depends=(
@ -1164,7 +1153,6 @@ package_qemu-full() {
qemu-tests=$pkgver-$pkgrel qemu-tests=$pkgver-$pkgrel
qemu-tools=$pkgver-$pkgrel qemu-tools=$pkgver-$pkgrel
qemu-user=$pkgver-$pkgrel qemu-user=$pkgver-$pkgrel
qemu-vmsr-helper=$pkgver-$pkgrel
) )
optdepends=("${_qemu_full_optdepends[@]}") optdepends=("${_qemu_full_optdepends[@]}")
provides=(qemu=$pkgver) provides=(qemu=$pkgver)