From 79eb2ebdcc7ed50c2a2ca66ebbb6691921fbbf40 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 22 Sep 2019 00:00:22 +0100 Subject: app-emulation/qemu: Add oss USE flag instead of always enabling It requires no additional dependencies but some platforms like Windows cannot build the OSS driver and have the oss flag masked. Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: James Le Cuirot Signed-off-by: Matthias Maier --- app-emulation/qemu/qemu-9999.ebuild | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'app-emulation/qemu') diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild index f1f1b3bc6f71..58a7d0b85807 100644 --- a/app-emulation/qemu/qemu-9999.ebuild +++ b/app-emulation/qemu/qemu-9999.ebuild @@ -35,8 +35,8 @@ SLOT="0" IUSE="accessibility +aio alsa bzip2 capstone +caps +curl debug doc +fdt glusterfs gnutls gtk infiniband iscsi +jpeg kernel_linux - kernel_FreeBSD lzo ncurses nfs nls numa opengl +pin-upstream-blobs +png - pulseaudio python rbd sasl +seccomp sdl selinux smartcard snappy + kernel_FreeBSD lzo ncurses nfs nls numa opengl +oss +pin-upstream-blobs + +png pulseaudio python rbd sasl +seccomp sdl selinux smartcard snappy spice ssh static static-user systemtap tci test usb usbredir vde +vhost-net virgl virtfs +vnc vte xattr xen xfs +xkb" @@ -475,12 +475,14 @@ qemu_src_configure() { if [[ ! ${buildtype} == "user" ]] ; then # audio options - local audio_opts="oss" - use alsa && audio_opts="alsa,${audio_opts}" - use sdl && audio_opts="sdl,${audio_opts}" - use pulseaudio && audio_opts="pa,${audio_opts}" + local audio_opts=( + $(usev alsa) + $(usev oss) + $(usev sdl) + $(usex pulseaudio pa "") + ) conf_opts+=( - --audio-drv-list="${audio_opts}" + --audio-drv-list=$(printf "%s," "${audio_opts[@]}") ) fi -- cgit v1.2.3-65-gdbad