qemu: add several optional dependencies

This commit is contained in:
Juergen Daubert 2023-09-07 19:17:00 +02:00
parent 83dcb954a4
commit 979433c2d3
4 changed files with 21 additions and 21 deletions

View File

@ -10,7 +10,6 @@ drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/qemu-i386
-rwxr-xr-x root/root usr/bin/qemu-img
-rwxr-xr-x root/root usr/bin/qemu-io
-rwxr-xr-x root/root usr/bin/qemu-keymap
-rwxr-xr-x root/root usr/bin/qemu-nbd
-rwxr-xr-x root/root usr/bin/qemu-pr-helper
-rwxr-xr-x root/root usr/bin/qemu-storage-daemon
@ -55,15 +54,6 @@ drwxr-xr-x root/root usr/share/icons/hicolor/64x64/apps/
drwxr-xr-x root/root usr/share/icons/hicolor/scalable/
drwxr-xr-x root/root usr/share/icons/hicolor/scalable/apps/
-rw-r--r-- root/root usr/share/icons/hicolor/scalable/apps/qemu.svg
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/qemu.1.gz
-rw-r--r-- root/root usr/share/man/man1/virtfs-proxy-helper.1.gz
drwxr-xr-x root/root usr/share/man/man7/
-rw-r--r-- root/root usr/share/man/man7/qemu-block-drivers.7.gz
-rw-r--r-- root/root usr/share/man/man7/qemu-cpu-models.7.gz
-rw-r--r-- root/root usr/share/man/man7/qemu-ga-ref.7.gz
-rw-r--r-- root/root usr/share/man/man7/qemu-qmp-ref.7.gz
drwxr-xr-x root/root usr/share/qemu/
-rw-r--r-- root/root usr/share/qemu/QEMU,cgthree.bin
-rw-r--r-- root/root usr/share/qemu/QEMU,tcx.bin

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/Xmen4ueJjzeGYLRBrFecQpF1eERgRc+gYB6VDJ1YLQD3GxGVRoOG8K1CsH6nn6m/0SyM9Src0AfUJ7SCHeIuQI=
SHA256 (Pkgfile) = 0b7e4a4d7ba854bdbf74fc8d2ebd642a7e6d126bbe6826d00abc8ea23a9223f6
SHA256 (.footprint) = 5174c9ae109530bb63feb443ddb9688e047588603388b3c0ca69c41fb26f6c08
RWSE3ohX2g5d/cUmviWcZVkZAza1Jl2AAnoYESEkgovHsTDBAgZ4i0lXxHHJUJ2Oas6TQXjek2tTSkfH0bE9Rfc1b2M3TUZ57wQ=
SHA256 (Pkgfile) = 9dbc38b69c7865dcfe4b10bdfe1424a98c665394209306297597622546ea9914
SHA256 (.footprint) = 015a0ee651fe1363aaec56122eb435bff85037137d9d168803ecc24229a88df0
SHA256 (qemu-8.1.0.tar.xz) = 710c101198e334d4762eef65f649bc43fa8a5dd75303554b8acfec3eb25f0e55
SHA256 (qemu-man-8.1.tar.xz) = 477fed44b3825d73033a0e9113720625c2364ab1d5936845874c1793b2b26ce7
SHA256 (keyutils.patch) = 1ed4ffac0568e3ca62ed09429eaa2f896bc42bfbce7eafce502264101e59feb1

View File

@ -1,31 +1,41 @@
# Description: Fast CPU emulator and virtualizer for the x86 platform
# URL: https://www.qemu.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: dtc glib libsdl2 libusb linux-pam libxkbcommon util-linux xorg-libpixman
# Depends on: dtc glib libusb linux-pam xorg-libpixman
# Optional: alsa-lib fuse3 gnutls libaio libjpeg-turbo libpng libsdl2 libseccomp libssh liburing libxkbcommon nettle nfs-utils numactl pipewire pulseaudio python3-sphinx python3-sphinx_rtd_theme sdl2_image snappy xkeyboard-config xkeyboard-config
name=qemu
version=8.1.0
release=1
release=2
source=(https://download.qemu.org/$name-$version.tar.xz
$name-man-${version%.*}.tar.xz)
keyutils.patch)
build() {
cd $name-$version
## https://lore.kernel.org/qemu-devel/20230824094208.255279-1-thuth@redhat.com/
patch -Np1 -i $SRC/keyutils.patch
## only needed for qemu-keymap
if [[ ! -e /usr/include/xkbcommon/xkbcommon-x11.h ]] && ! prt-get isinst xkeyboard-config; then
printf '\e[1;31m%-6s\e[m\n' "You need to install xkeyboard-config, then rebuild libxkbcommon to build qemu-keymap. We are disabling this feature now."
PKGMK_QEMU+=' --disable-xkbcommon'
fi
prt-get isinst python3-sphinx python3-sphinx_rtd_theme || PKGMK_QEMU+=' --disable-docs'
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--disable-docs \
--libexecdir=/usr/lib/qemu \
--disable-gtk \
--localstatedir=/var \
--enable-linux-user \
--enable-fdt=system \
--python=/usr/bin/python3 \
--target-list=x86_64-linux-user,i386-linux-user,i386-softmmu,x86_64-softmmu
--target-list=x86_64-linux-user,i386-linux-user,i386-softmmu,x86_64-softmmu \
--disable-gtk \
make
make DESTDIR=$PKG install
cp -r $SRC/man $PKG/usr/share
install -d $PKG/etc/udev/rules.d/
echo 'KERNEL=="kvm", NAME="kvm", OWNER="root", GROUP="kvm", MODE="0660"' > \

Binary file not shown.