Summary: | app-emulation/qemu-4.2.0-r2: Order of audio drivers (--audio-drv-list) is reversed from that of previous ebuilds | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stephen Freeman <trekie> |
Component: | Current packages | Assignee: | Matthias Maier <tamiko> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | jstein, slyfox, virtualization |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Emerge output
Details of tests performed |
Description
Stephen Freeman
2020-04-04 16:58:42 UTC
Created attachment 630018 [details]
Emerge output
The "--audio-drv-list=alsa,oss,sdl,pa," is near the bottom of this emerge output (truncated).
I'd say it's a user configuration problem if alsa libraries don't work on pulseaudio system. You might want to install media-plugins/alsa-plugins[pulseautio] if you did not already to repair it. Generally we should not rely on init order of audio backends. To prove your theory of sound ordering you can try to change ebuild locally and see if it restores audio for you. This has been changed in commit 79eb2ebdcc7ed50c2a2ca66ebbb6691921fbbf40 Author: James Le Cuirot <chewi@gentoo.org> Date: Sun Sep 22 00:00:22 2019 +0100 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 <chewi@gentoo.org> Signed-off-by: Matthias Maier <tamiko@gentoo.org> (In reply to Sergei Trofimovich from comment #2) > Generally we should not rely on init order of audio backends. That's true but I agree with Steve that preferring abstraction layers first (before alsa/oss/etc. backends) might be a better course of action :-) Created attachment 630362 [details] Details of tests performed Thanks for the help. In reply to Sergei Trofimovich (comment #2), I do have media-plugins/alsa-plugins [-abi_x86_32 -arcam_av -debug +ffmpeg -jack -libsamplerate +mix -oss +pulseaudio -speex +usb_stream]. It was built January 23. I have run several tests. Attached are the details. It still appears to me that the reordering of the audio-drv-list option does indeed break sound for my guests. SUGGESTED FIXES: 1) In future builds, revert the setting of audio-drv-list to the previous ordering. Systems should behave essentially as they always did. OR 2) The simplest workaround that I see is for users to manually set QEMU_AUDIO_DRV=pa. Notify users of this during installation. This is easy to set, but not knowing this in advance caused me hours of research and some downtime (as a result of rapidly expanding log files filling the filesystem). Reverting to original ordering sounds fine. Do you want to craft a patch against ::gentoo? Should be a matter of 'repoman commit' / 'git format-patch' against gentoo's git tree. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d77f947c3b17674479e6727c863708c369a75fd commit 0d77f947c3b17674479e6727c863708c369a75fd Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2020-04-08 18:43:48 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2020-04-08 18:51:13 +0000 app-emulation/qemu: reverse order of audio backends Closes: https://bugs.gentoo.org/716202 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Matthias Maier <tamiko@gentoo.org> app-emulation/qemu/qemu-4.2.0-r2.ebuild | 4 ++-- app-emulation/qemu/qemu-9999.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75f31320689f76b7c55f5c854d3015de2737bf92 commit 75f31320689f76b7c55f5c854d3015de2737bf92 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-04-09 18:59:51 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-04-09 18:59:56 +0000 app-emulation/qemu: add a comment that backend ordering matters Bug: https://bugs.gentoo.org/716202 Package-Manager: Portage-2.3.97, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> app-emulation/qemu/qemu-4.2.0-r3.ebuild | 2 ++ app-emulation/qemu/qemu-9999.ebuild | 2 ++ 2 files changed, 4 insertions(+) |