Unverified Commit b56f32a6 authored by Timothée Floure's avatar Timothée Floure
Browse files

community/qemu: enable rbd support

parent d6c36b79
Pipeline #60909 failed with stages
in 60 minutes and 15 seconds
# Contributor: Sergei Lukin <sergej.lukin@gmail.com> # Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com> # Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Jakub Jirutka <jakub@jirutka.cz> # Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Timothée Floure <timothee.floure@ungleich.ch>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# 2020-06-15: CEPH is only available for x86_64 and aarch64 at the moment.
case "$CARCH" in
x86*|aarch64)
rbd_depends="ceph-dev"
rbd_module="block-rbd"
rbd_support="--enable-rbd"
;;
esac
pkgname=qemu pkgname=qemu
pkgver=5.1.0 pkgver=5.1.0
pkgrel=1 pkgrel=2
pkgdesc="QEMU is a generic machine emulator and virtualizer" pkgdesc="QEMU is a generic machine emulator and virtualizer"
url="https://qemu.org/" url="https://qemu.org/"
arch="all" arch="all"
...@@ -48,7 +59,9 @@ makedepends=" ...@@ -48,7 +59,9 @@ makedepends="
xfsprogs-dev xfsprogs-dev
zlib-dev zlib-dev
zlib-static zlib-static
$rbd_depends
" "
pkggroups="qemu" pkggroups="qemu"
install="$pkgname.pre-install $pkgname.post-install $pkgname.pre-upgrade" install="$pkgname.pre-install $pkgname.post-install $pkgname.pre-upgrade"
# suid needed for qemu-bridge-helper # suid needed for qemu-bridge-helper
...@@ -147,7 +160,9 @@ _modules=" ...@@ -147,7 +160,9 @@ _modules="
ui-gtk ui-gtk
ui-sdl ui-sdl
ui-spice-app ui-spice-app
$rbd_module
" "
for _mod in $_modules; do for _mod in $_modules; do
subpackages="$subpackages $pkgname-$_mod:_module" subpackages="$subpackages $pkgname-$_mod:_module"
done done
...@@ -290,6 +305,7 @@ build() { ...@@ -290,6 +305,7 @@ build() {
--enable-vnc \ --enable-vnc \
--enable-vnc-jpeg \ --enable-vnc-jpeg \
--enable-vnc-png \ --enable-vnc-png \
$rbd_support \
--tls-priority=@QEMU,SYSTEM --tls-priority=@QEMU,SYSTEM
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment