Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 807208 - media-sound/pulseaudio-modules-bt should be blocked by pulseaudio-15.0
Summary: media-sound/pulseaudio-modules-bt should be blocked by pulseaudio-15.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2021-08-08 18:33 UTC by Pavel
Modified: 2021-10-28 21:32 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel 2021-08-08 18:33:44 UTC
I've used media-sound/pulseaudio-modules-bt-1.4::gentoo for a while with media-sound/pulseaudio-13 for my headsets with AptX-codec.

But new release of pulseaudio-15.0 (https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/15.0/) has the same codecs and conflicting with pulseaudio-modules-bt. It brokes my configuration. The problem has gone only after deleting pulseaudio-modules-bt.


 At the same time, author of pulseaudio-modules-bt announced deprication of it's repository: https://github.com/EHfive/pulseaudio-modules-bt/issues/154.

I think, the best resolution of this conflict should be restriction of pulseaudio-modules-bt with <media-sound/pulseaudio-15.0.
Comment 1 Johannes Hirte 2021-08-16 20:09:55 UTC
Of course, with media-sound/pulseaudio-modules-bt I got now several segfaults like this:

Aug 16 21:39:26 latitude kernel: pulseaudio[225287]: segfault at 50000001f ip 00007f8ce428e295 sp 00007fff9865a130 error 4 in libpulsecommon-15.0.so[7f8ce4271000+4c000]
Aug 16 21:39:26 latitude kernel: Code: 03 00 56 ba a5 00 00 00 e9 1b ff ff ff 0f 1f 84 00 00 00 00 00 41 54 55 48 83 ec 08 48 85 ff 74 54 48 89 fd 49 89 f4 48 89 f7 <ff> 55 00 89 c7 89 c1 48 69 ff 11 08 04 02 48 c1 ef 20 29 f9 d1 
e9

Removing media-sound/pulseaudio-modules-bt fixed this for me.
Comment 2 Larry the Git Cow gentoo-dev 2021-10-27 13:48:18 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4440f839813f8e2b1a788b98535f6c149ca73eb

commit c4440f839813f8e2b1a788b98535f6c149ca73eb
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2021-10-27 13:47:27 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2021-10-27 13:48:15 +0000

    package.mask: mask media-sound/pulseaudio-modules-bt for removal
    
    Bug: https://bugs.gentoo.org/807208
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 3 i.Dark_Templar 2021-10-28 18:39:45 UTC
media-sound/pulseaudio-modules-bt must not be pmasked and removed yet: pulseaudio-15.0 in Gentoo can't be built with aptx codec support. It requires bluez5_gstreamer support [1], which is disabled in Gentoo for now [2].

Due to that, upgrading to pulseaudio 15.0 downgrades bluetooth audio quality for me.

[1] https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/meson.build?h=v15.0#n774
[2] https://github.com/gentoo/gentoo/blob/3f533ba42968c36b25a3ebd85988858aa3938c50/media-sound/pulseaudio/pulseaudio-15.0-r1.ebuild#L206
Comment 4 i.Dark_Templar 2021-10-28 18:55:43 UTC
(In reply to Johannes Hirte from comment #1)
> Of course, with media-sound/pulseaudio-modules-bt I got now several
> segfaults like this:
> 
> Aug 16 21:39:26 latitude kernel: pulseaudio[225287]: segfault at 50000001f
> ip 00007f8ce428e295 sp 00007fff9865a130 error 4 in
> libpulsecommon-15.0.so[7f8ce4271000+4c000]
> Aug 16 21:39:26 latitude kernel: Code: 03 00 56 ba a5 00 00 00 e9 1b ff ff
> ff 0f 1f 84 00 00 00 00 00 41 54 55 48 83 ec 08 48 85 ff 74 54 48 89 fd 49
> 89 f4 48 89 f7 <ff> 55 00 89 c7 89 c1 48 69 ff 11 08 04 02 48 c1 ef 20 29 f9
> d1 
> e9
> 
> Removing media-sound/pulseaudio-modules-bt fixed this for me.

I've also found fix for this crash:

https://github.com/gentoo/gentoo/blob/3f533ba42968c36b25a3ebd85988858aa3938c50/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.4.ebuild#L10

Replace PULSE_VER="13.0" with PULSE_VER="15.0", regenerate metadata and re-emerge. Works for me with pulseaudio 15.0 now:

https://github.com/iDarkTemplar/dt-overlay-patches/blob/fd2689b57c71a86256f86082502c1269f18a24a3/media-sound/pulseaudio-modules-bt/pulseaudio-modules-bt-1.4.ebuild#L10
Comment 5 Larry the Git Cow gentoo-dev 2021-10-28 21:32:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=923ce4030ae2601bb0bf9ae563db17bdd95bd426

commit 923ce4030ae2601bb0bf9ae563db17bdd95bd426
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2021-10-28 21:32:13 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2021-10-28 21:32:13 +0000

    media-sound/pulseaudio-modules-bt: Make it work with pulseaudio 15
    
    Closes: https://bugs.gentoo.org/807208
    Thanks-to: i.Dark_Templar
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 media-sound/pulseaudio-modules-bt/Manifest         |  1 +
 .../pulseaudio-modules-bt-1.4-r1.ebuild            | 81 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50bf55f8f8b33fe89aa912eec7dcfca69ddcd859

commit 50bf55f8f8b33fe89aa912eec7dcfca69ddcd859
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2021-10-28 21:30:09 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2021-10-28 21:30:09 +0000

    package.mask: Still needed with newer pulseaudio (#807208)
    
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>
    Bug: https://bugs.gentoo.org/807208

 profiles/package.mask | 5 -----
 1 file changed, 5 deletions(-)