Bug 28918

Summary: cannot remove pulseaudio from kodi
Product: Mageia Reporter: William Bonnaventure <aztorius.fr>
Component: RPM PackagesAssignee: Giuseppe Ghibò <ghibomgx>
Status: REOPENED --- QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins
Version: 8   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: kodi-19.0-2.mga8.tainted.src.rpm CVE:
Status comment:

Description William Bonnaventure 2021-05-14 21:12:56 CEST
Description of problem:
With Kodi on Mageia 8 I have passthrough issues with pulseaudio.
I want to remove pulseaudio from the system and use directly alsa instead but it seems that it is a hard dependency of kodi and some other system package.
It will be really helpful to remove this hard dependency from kodi package to use directly alsa that is way more stable with Kodi.

Version-Release number of selected component (if applicable):
Kodi 19.0-2.mga8.tainted


How reproducible:
'sudo dnf remove pulseaudio' also removes kodi if installed


Steps to Reproduce:
1. sudo dnf install kodi
2. sudo dnf remove pulseaudio
Comment 1 Thomas Backlund 2021-05-14 21:26:47 CEST
That wont happend.

the deps are there to add pulseaudio support in various places...

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX

Comment 2 Dave Hodgins 2021-05-14 22:47:34 CEST
If you do want to remove pulseaudio on your system only, just run
sudo rpm -e --nodeps pulseaudio

I do not know what else it may cause problems with, so do so at your own risk.

CC: (none) => davidwhodgins

Comment 3 William Bonnaventure 2021-05-15 08:47:48 CEST
I just force removed pulseaudio and everything works fine. Kodi uses ALSA and enables audio passthrough with HDMI and SPDIF.

Kodi package should not have a pulseaudio dependency on installation, only when building. The Fedora package behavior seems to comply with this.

Maybe the problem lies in the SPEC file :
- On Mageia : 'BuildRequires:  pkgconfig(libpulse)'
- On Fedora : 'BuildRequires: pulseaudio-libs-devel'

Thanks.
Comment 4 Dave Hodgins 2021-05-15 10:34:15 CEST
Reopening based on comment 3 and assigning to the kodi registered maintainer.

Resolution: WONTFIX => (none)
Assignee: bugsquad => smelror
Status: RESOLVED => REOPENED

Comment 5 Stig-Ørjan Smelror 2024-02-23 22:59:02 CET
Hi.

Looking through our Pulseaudio packages, I can not find a separate package for pulseaudio-libs-devel.

It may be worthwhile for our Pulseaudio packager to consider this. At least for Cauldron.

@joeghi, can you take a look at this?

Assignee: smelror => ghibomgx

Comment 6 Giuseppe Ghibò 2024-02-23 23:54:47 CET
I can't take care of this now, but I'm not sure to have understand it.

We usually use the Buildrequires to use pkgconfig(library) where we can, so to use the pkgconfig system.

So is the problem is to find which package provides "pkgconfig(pulse)"?

BuildRequires: pulseaudio-libs-devel used in fedora is the explict library, but I think they should update to pkgconfig(pulse) too.

Anyway lib64pulseaudio-devel-16.1-14.mga9 is what provides pkgconfig(pulse), if we remove such deps I think a major feature of KODI, i.e. its pulseaudio support, will be broken.

If you want a running system without pulseaudio, you might run draksound and select NONE (or pipewire) as sound daemon, or IIRC alternatively uninstalling pulseaudio-module-x11 should disable it too.