aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-12-03 11:20:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2021-12-03 11:20:25 +0000
commitecd62fab2d5dc37e58d63f875926f5648fa78b46 (patch)
tree5c1526da15eba19c068b3ec0bf30d1475ab5628e
parent13d634d22e884420ff2b6ea14e6e4c02a235c4cd (diff)
downloadaports-ecd62fab2d5dc37e58d63f875926f5648fa78b46.tar.gz
aports-ecd62fab2d5dc37e58d63f875926f5648fa78b46.tar.bz2
aports-ecd62fab2d5dc37e58d63f875926f5648fa78b46.tar.xz
community/qemu: bundle tcg driver with system i386/x86_64
Even if the tcg driver is not strcitly needed when using kvm, they are so small (24k) that it makes no sense to ship them as subpackages. This also solves an assertion error when they are missing. fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13225
-rw-r--r--community/qemu/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/qemu/APKBUILD b/community/qemu/APKBUILD
index 7cad7aa664..6c58f6df8c 100644
--- a/community/qemu/APKBUILD
+++ b/community/qemu/APKBUILD
@@ -4,7 +4,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qemu
pkgver=6.1.0
-pkgrel=2
+pkgrel=3
pkgdesc="QEMU is a generic machine emulator and virtualizer"
url="https://qemu.org/"
arch="all"
@@ -136,9 +136,6 @@ for _sub in $_subsystems; do
done
_modules="
- accel-tcg-i386
- accel-tcg-x86_64
-
audio-alsa
audio-oss
audio-pa
@@ -356,8 +353,14 @@ _subsys() {
system*) depends="qemu";;
esac
- mkdir -p "$subpkgdir"/usr/bin
- mv "$pkgdir"/usr/bin/qemu-$name "$subpkgdir"/usr/bin/
+ amove /usr/bin/qemu-$name
+
+ case "$name" in
+ system-x86_64|system-i386)
+ provides="qemu-accel-tcg-${name#system-}"
+ amove /usr/lib/qemu/accel-tcg-${name#system-}.so
+ ;;
+ esac
}
img() {