Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728800 - media-sound/spotify: USE flag for selecting either media-sound/apulse or media-sound/pulseaudio
Summary: media-sound/spotify: USE flag for selecting either media-sound/apulse or medi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-19 17:56 UTC by Sietze Post
Modified: 2023-04-23 09:40 UTC (History)
1 user (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 Sietze Post 2020-06-19 17:56:19 UTC
I would like to use media-sound/apulse for spotify's pulseaudio dependancy, but how the dependancies are currently written in the ebuilds, pulseaudio will always be picked up, unless apulse is already installed. Would it be possible to add a USE flag - I suppose an exclusive double of "apulse" and "pulseaudio", or just one of them - so I can force the ebuild to depend on media/apulse instead of media-sound/pulseaudio?

for example, in the ebuild:

IUSE="${IUSE} pulseaudio"

RDEPEND="${RDEPEND}
    pulseaudio? ( media-sound/pulseaudio )
    !pulseaudio? ( media-sound/apulse )
"


Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2020-06-27 21:05:34 UTC
The bug has been closed via the following commit(s):

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

commit 7834e6ae179065f800c06187e0fe0d8265e9313a
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2020-06-27 21:05:22 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2020-06-27 21:05:28 +0000

    media-sound/spotify: fix pulseaudio / apulse dependency
    
    Closes: https://bugs.gentoo.org/728800
    Package-Manager: Portage-2.3.99, Repoman-2.3.23
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 media-sound/spotify/metadata.xml                                     | 1 +
 .../spotify/{spotify-1.1.26.ebuild => spotify-1.1.26-r1.ebuild}      | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
Comment 2 Niklāvs Koļesņikovs 2021-10-23 13:32:34 UTC
Please undo this change. apulse should only be used by those who know what they are getting themselves into, which means that having it as a second option in a || () is perfectly fine.

Having it controlled via pulseaudio use flag being disabled just leads to confusion, as seen today on #gentoo when a user tried to emerge media-sound/spotify[-pulseaudio] but for some reason they had media-plugins/alsa-plugins[pulseaudio] pulled in as a dependency (most likely the person is selectively setting pulseaudio USE flag on some packages). USE=-pulseaudio does not mean that apulse is desired or wanted. ;(
Comment 3 Andreas Sturmlechner gentoo-dev 2023-03-15 10:43:26 UTC
ping(?)
Comment 4 Igor V. Kovalenko 2023-04-23 09:40:41 UTC
I do not use spotify but if (most likely) this package brings it's own libpulse binary then it should depend sound server impl like libpulse does, e.g.

|| (
    media-video/pipewire[sound-server(+))
    media-sound/pulseaudio-daemon
)

and maybe add apulse into the mix if spotify works with that.

If spotify needs system libpulse, then just depend on libpulse or apulse[sdk] if  that is desired.