mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/qemu to 5.0.0-5
This commit is contained in:
parent
db59a6ce0b
commit
7f96b00186
1 changed files with 21 additions and 23 deletions
|
@ -12,20 +12,20 @@ pkgbase=qemu
|
||||||
pkgname=(qemu qemu-headless qemu-arch-extra qemu-headless-arch-extra
|
pkgname=(qemu qemu-headless qemu-arch-extra qemu-headless-arch-extra
|
||||||
qemu-block-{iscsi,gluster} qemu-guest-agent)
|
qemu-block-{iscsi,gluster} qemu-guest-agent)
|
||||||
pkgdesc="A generic and open source machine emulator and virtualizer"
|
pkgdesc="A generic and open source machine emulator and virtualizer"
|
||||||
pkgver=4.2.0
|
pkgver=5.0.0
|
||||||
pkgrel=2
|
pkgrel=5
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
license=(GPL2 LGPL2.1)
|
license=(GPL2 LGPL2.1)
|
||||||
url="https://wiki.qemu.org/"
|
url="https://wiki.qemu.org/"
|
||||||
_headlessdeps=(gnutls libpng libaio jemalloc xfsprogs libnfs
|
_headlessdeps=(gnutls libpng libaio numactl libnfs
|
||||||
lzo snappy curl vde2 libcap-ng spice libcacard usbredir libslirp
|
lzo snappy curl vde2 libcap-ng spice libcacard usbredir libslirp
|
||||||
libssh)
|
libssh zstd liburing)
|
||||||
depends=(virglrenderer sdl2 vte3 libpulse brltty "${_headlessdeps[@]}")
|
depends=(virglrenderer sdl2 vte3 libpulse brltty "${_headlessdeps[@]}")
|
||||||
makedepends=(spice-protocol python libiscsi glusterfs python-sphinx)
|
makedepends=(spice-protocol python libiscsi glusterfs python-sphinx xfsprogs)
|
||||||
source=(https://download.qemu.org/qemu-$pkgver.tar.xz{,.sig}
|
source=(https://download.qemu.org/qemu-$pkgver.tar.xz{,.sig}
|
||||||
qemu-ga.service
|
qemu-ga.service
|
||||||
65-kvm.rules)
|
65-kvm.rules)
|
||||||
sha512sums=('2a79973c2b07c53e8c57a808ea8add7b6b2cbca96488ed5d4b669ead8c9318907dec2b6109f180fc8ca8f04c0f73a56e82b3a527b5626b799d7e849f2474ec56'
|
sha512sums=('21ef0cbe107c468a40f0fa2635db2a40048c8790b629dfffca5cd62bb1b502ea8eb133bfc40df5ecf1489e2bffe87f6829aee041cb8a380ff04a8afa23b39fcf'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'269c0f0bacbd06a3d817fde02dce26c99d9f55c9e3b74bb710bd7e5cdde7a66b904d2eb794c8a605bf9305e4e3dee261a6e7d4ec9d9134144754914039f176e4'
|
'269c0f0bacbd06a3d817fde02dce26c99d9f55c9e3b74bb710bd7e5cdde7a66b904d2eb794c8a605bf9305e4e3dee261a6e7d4ec9d9134144754914039f176e4'
|
||||||
'bdf05f99407491e27a03aaf845b7cc8acfa2e0e59968236f10ffc905e5e3d5e8569df496fd71c887da2b5b8d1902494520c7da2d3a8258f7fd93a881dd610c99')
|
'bdf05f99407491e27a03aaf845b7cc8acfa2e0e59968236f10ffc905e5e3d5e8569df496fd71c887da2b5b8d1902494520c7da2d3a8258f7fd93a881dd610c99')
|
||||||
|
@ -51,7 +51,6 @@ build() {
|
||||||
|
|
||||||
_build headless \
|
_build headless \
|
||||||
--audio-drv-list= \
|
--audio-drv-list= \
|
||||||
--disable-bluez \
|
|
||||||
--disable-sdl \
|
--disable-sdl \
|
||||||
--disable-gtk \
|
--disable-gtk \
|
||||||
--disable-vte \
|
--disable-vte \
|
||||||
|
@ -63,22 +62,17 @@ build() {
|
||||||
_build() (
|
_build() (
|
||||||
cd build-$1
|
cd build-$1
|
||||||
|
|
||||||
# qemu vs. make 4 == bad
|
|
||||||
export ARFLAGS=rv
|
|
||||||
|
|
||||||
# http://permalink.gmane.org/gmane.comp.emulators.qemu/238740
|
|
||||||
export CFLAGS+=" -fPIC"
|
|
||||||
|
|
||||||
../${pkgname}-${pkgver}/configure \
|
../${pkgname}-${pkgver}/configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--libexecdir=/usr/lib/qemu \
|
--libexecdir=/usr/lib/qemu \
|
||||||
|
--extra-ldflags="$LDFLAGS" \
|
||||||
--smbd=/usr/bin/smbd \
|
--smbd=/usr/bin/smbd \
|
||||||
--enable-modules \
|
--enable-modules \
|
||||||
--enable-sdl \
|
--enable-sdl \
|
||||||
--enable-jemalloc \
|
|
||||||
--enable-slirp=system \
|
--enable-slirp=system \
|
||||||
|
--enable-xfsctl \
|
||||||
"${@:2}"
|
"${@:2}"
|
||||||
|
|
||||||
make
|
make
|
||||||
|
@ -106,7 +100,7 @@ _package() {
|
||||||
'qemu-block-iscsi: iSCSI block support'
|
'qemu-block-iscsi: iSCSI block support'
|
||||||
'qemu-block-gluster: glusterfs block support')
|
'qemu-block-gluster: glusterfs block support')
|
||||||
install=qemu.install
|
install=qemu.install
|
||||||
options=(!strip)
|
options=(!strip !emptydirs)
|
||||||
|
|
||||||
make -C build-$1 DESTDIR="$pkgdir" install "${@:2}"
|
make -C build-$1 DESTDIR="$pkgdir" install "${@:2}"
|
||||||
|
|
||||||
|
@ -118,7 +112,6 @@ _package() {
|
||||||
rm -r var
|
rm -r var
|
||||||
|
|
||||||
cd usr/lib
|
cd usr/lib
|
||||||
tidy_strip
|
|
||||||
|
|
||||||
# bridge_helper needs suid
|
# bridge_helper needs suid
|
||||||
# https://bugs.archlinux.org/task/32565
|
# https://bugs.archlinux.org/task/32565
|
||||||
|
@ -128,7 +121,6 @@ _package() {
|
||||||
rm qemu/block-{iscsi,gluster}.so
|
rm qemu/block-{iscsi,gluster}.so
|
||||||
|
|
||||||
cd ../bin
|
cd ../bin
|
||||||
tidy_strip
|
|
||||||
|
|
||||||
# remove extra arch
|
# remove extra arch
|
||||||
for _bin in qemu-*; do
|
for _bin in qemu-*; do
|
||||||
|
@ -139,7 +131,7 @@ _package() {
|
||||||
ga) rm "$_bin"; continue ;;
|
ga) rm "$_bin"; continue ;;
|
||||||
|
|
||||||
# tools
|
# tools
|
||||||
img|io|nbd) continue ;;
|
edid|img|io|keymap|nbd|pr-helper|storage-daemon) continue ;;
|
||||||
|
|
||||||
# core emu
|
# core emu
|
||||||
system-${_corearch}) continue ;;
|
system-${_corearch}) continue ;;
|
||||||
|
@ -153,21 +145,27 @@ _package() {
|
||||||
[[ -f $_blob ]] || continue
|
[[ -f $_blob ]] || continue
|
||||||
|
|
||||||
case $_blob in
|
case $_blob in
|
||||||
|
# provided by edk2-ovmf package
|
||||||
|
edk2-*) rm "$_blob"; continue ;;
|
||||||
|
|
||||||
# iPXE ROMs
|
# iPXE ROMs
|
||||||
efi-*|pxe-*) continue ;;
|
efi-*|pxe-*) continue ;;
|
||||||
|
|
||||||
# core blobs
|
# core blobs
|
||||||
kvmvapic.bin|linuxboot*|multiboot.bin|sgabios.bin|vgabios*) continue ;;
|
bios-microvm.bin|kvmvapic.bin|linuxboot*|multiboot.bin|sgabios.bin|vgabios*) continue ;;
|
||||||
|
|
||||||
# Trace events definitions
|
# Trace events definitions
|
||||||
trace-events*) continue ;;
|
trace-events*) continue ;;
|
||||||
|
|
||||||
# Logos
|
|
||||||
*.bmp|*.svg) continue ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
mv "$_blob" "$srcdir/extra-arch-$1/usr/share/qemu"
|
mv "$_blob" "$srcdir/extra-arch-$1/usr/share/qemu"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# provided by edk2-ovmf package
|
||||||
|
rm -r firmware
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
if [ "$1" = headless ]; then rm -r {applications,icons}; fi
|
||||||
}
|
}
|
||||||
|
|
||||||
package_qemu-arch-extra() {
|
package_qemu-arch-extra() {
|
||||||
|
@ -190,7 +188,7 @@ package_qemu-headless-arch-extra() {
|
||||||
|
|
||||||
package_qemu-block-iscsi() {
|
package_qemu-block-iscsi() {
|
||||||
pkgdesc="QEMU iSCSI block module"
|
pkgdesc="QEMU iSCSI block module"
|
||||||
depends=(glib2 libiscsi jemalloc)
|
depends=(glib2 libiscsi)
|
||||||
|
|
||||||
install -D build-full/block-iscsi.so "$pkgdir/usr/lib/qemu/block-iscsi.so"
|
install -D build-full/block-iscsi.so "$pkgdir/usr/lib/qemu/block-iscsi.so"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue