Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#73041 - [qemu] faulty audio driver handling

Attached to Project: Arch Linux
Opened by Toolybird (Toolybird) - Wednesday, 15 December 2021, 19:49 GMT
Last edited by David Runge (dvzrv) - Saturday, 19 February 2022, 20:08 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Tobias Powalowski (tpowa)
Anatol Pomozov (anatolik)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

As of qemu-6.2.0 the meaning of the "--audio-drv-list" configure switch has changed[0]. Whereas it used to mean "build these audio drivers" (at build time) it now means "which audio drivers to try if -audiodev is not used" (ie. at runtime if using legacy audio methods)[1].

The result of this means that the audio driver modules are now included in the qemu-headless package which is not the intention.

Recommendation:
1. Drop "--audio-drv-list" in both places in the PKGBUILD
2. Add this to the headless configuration:
--disable-alsa
--disable-jack
--disable-oss
--disable-pa
--disable-sdl

I've tested the above in my personal build and it does the right thing.

[0] https://lists.nongnu.org/archive/html/qemu-devel/2021-10/msg03058.html
[1] https://lists.nongnu.org/archive/html/qemu-devel/2021-11/msg00672.html
This task depends upon

Closed by  David Runge (dvzrv)
Saturday, 19 February 2022, 20:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with qemu 6.2.0-2
Comment by Toolybird (Toolybird) - Wednesday, 15 December 2021, 20:00 GMT
On a related note:

Now that large portions of QEMU are built in a modular fashion, including all the UI stuff, it should be possible to get rid of the headless package altogether. Afterall, GTK and SDL etc are the "heads" which theoretically could be made optional. I plan to run some build tests and will come up with a proposal in a separate report if it proves viable.
Comment by David Runge (dvzrv) - Sunday, 19 December 2021, 14:04 GMT
@Toolybird: Thanks for the report.
I have been contemplating the proper split of the package already, but did not have more time to look into it yet (planned to do something with the release of 6.2.0).
It seems Fedora has achieved it in a relatively clean fashion already.
Comment by Anatol Pomozov (anatolik) - Sunday, 19 December 2021, 18:28 GMT
I am going to fix the --audio-drv-list bug.

David, do you want to take care of the modularizing qemu build?
Comment by Anatol Pomozov (anatolik) - Sunday, 19 December 2021, 21:33 GMT
qemu-6.2.0-2 disables the audio drivers for qemu headless. This build has been pushed to [testing]. @Toolybird please check it and let me know if it works for you as expected.
Comment by Toolybird (Toolybird) - Monday, 20 December 2021, 04:15 GMT
> @Toolybird please check it

LGTM
Comment by David Runge (dvzrv) - Monday, 20 December 2021, 13:37 GMT
> David, do you want to take care of the modularizing qemu build?

Will do! Not sure if I can get to it this week still though. Will be traveling a bit. However, I already had some rough idea of how to approach it, which would also allow us to close down some of the related tickets.

Loading...