Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684922 - media-sound/spotify-1.1.5 without media-sound/pulseaudio or media-sound/apulse fails to start
Summary: media-sound/spotify-1.1.5 without media-sound/pulseaudio or media-sound/apuls...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-02 11:28 UTC by zasire
Modified: 2019-05-07 17:43 UTC (History)
2 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 zasire 2019-05-02 11:28:23 UTC
Spotify seems to have removed Alsa only support. It does not work anymore. It didn't in recent versions already but due to a misleading error message it wasn't clear to me right away.

So the "-pulseaudio" flag is kinda broken. But it is still possible to run spotify without pulseaudio by using "apulse". 

Would it be possible to add a dependency of "apulse" when using the "-pulseaudio" flag and also replace the starting command in the resulting desktop file in "/usr/share/applications/spotify.desktop" from simply "spotify" to "apulse spotify"?
Comment 1 zasire 2019-05-02 11:29:11 UTC
Discussion about this matter in Spotify community forums: 

https://community.spotify.com/t5/Desktop-Linux/1-0-98-1-1-0-Crash-when-using-ALSA/td-p/4680398
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-05-02 17:28:53 UTC
sounds like the pulseaudio dep will need to change to || pulseaudio apulse
Comment 3 Larry the Git Cow gentoo-dev 2019-05-02 17:30:31 UTC
The bug has been closed via the following commit(s):

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

commit 8a1c6289f802b1f98da3934e5f73758a230a066a
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2019-05-02 17:29:59 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2019-05-02 17:30:19 +0000

    media-sound/spotify: fix dep on pulseaudio, it or apulse are needed
    
    Fixes: https://bugs.gentoo.org/684922
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 media-sound/spotify/{spotify-1.1.5.ebuild => spotify-1.1.5-r1.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 4 Tomasz Golinski 2019-05-03 14:25:16 UTC
It's not fixed, spotify still segfaults without pulseaudio. At least it needs a post emerge message advising user to use apulse. The best solution would be to modify running script /usr/bin/spotify to automatically invoke apulse if needed.

Some discussion of this issue was also in https://bugs.gentoo.org/665696
Comment 5 Tomasz Golinski 2019-05-03 14:27:48 UTC
Also taking into accout the comment here: https://community.spotify.com/t5/Desktop-Linux/1-0-98-1-1-0-Crash-when-using-ALSA/m-p/4711064/highlight/true#M17599 consider restoring the working version 1.0.96 to portage.
Comment 6 zasire 2019-05-05 19:23:55 UTC
Ya it would be great to add something more to it. Currently it will still fail for everyone not having Pulseaudio installed and those will not even know why. Altering the exec command in /usr/bin/spotify should be doable.
Comment 7 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-05-06 20:27:56 UTC
how spotify is run is a runtime decision, not an install time one, I'd accept a patch with a message to the user stating as much but I won't force the use of apulse (as that is not fully supported upstream).
Comment 8 zasire 2019-05-06 22:41:37 UTC
While understanding your reasoning, i've had to alter /usr/bin/spotify myself to make it work and i will have to redo this on any coming update as i am relying on the provided desktop file in /usr/share/applications which is using that file in /usr/bin. 

Other Ebuilds have small changes to things coming from upstream as well to make the program work flawlessly on Gentoo.
Comment 9 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-05-06 22:43:45 UTC
statically prepending apulse breaks users who don't have apulse
Comment 10 Daniel Nilsson 2019-05-07 17:20:45 UTC
Would it be possible to put the dependency on apulse and patching of /usr/bin/spotify behind a use flag? Then it could be decided at install time.
Comment 11 zasire 2019-05-07 17:25:56 UTC
Everyone not having pulseaudio (using "-pulseaudio") or apulse ends up with a segfault anyways. That's why the current version is still broken after install for non pulseaudio users.
Comment 12 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-05-07 17:43:49 UTC
write the patch and I'll apply it