Update the ebuild to the lastest Spotify version supporting the new disovery features. Reproducible: Always
Created attachment 334644 [details] ebuild for spotify-0.8.8.323 Taken from my overlay https://github.com/xhochy/gentoo-overlay as described in http://xhochy.github.com/2013/01/06/spotify-0.8.8-gentoo/
One slight problem with the ebuild. USE=pax_kernel, the file it is adding PAX marks is set to "${ED}"/opt/${PN}/${PN}. This does not exist and should be "${ED}"/opt/${PN}/spotify-client/${PN}
Created attachment 334664 [details] ebuild for spotify-0.8.8.323 (with correct PaX paths)
Fix the PaX Problem with the latest ebuild.
fixed in tree
regression: missing start menu entry (KDE). because pkg_postinst() fails: >>> Installing (1 of 1) media-sound/spotify-0.8.8.323 xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. xdg-desktop-menu: file 'spotify.desktop' does not exist I suggest to use the eutils eclass and use newicon domenu functions instead of those horrible (un)register.sh scripts from Spotify.
r1 in tree, please test
(In reply to comment #7) > r1 in tree, please test fails here: >>> Install spotify-0.8.8.323-r1 into /var/tmp/portage/media-sound/spotify-0.8.8.323-r1/image/ category media-sound * 512 is an unsupported icon size! * ERROR: media-sound/spotify-0.8.8.323-r1 failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_install * environment, line 2193: Called doicon '-s' '512' '/opt/spotify/spotify-client/Icons/spotify-linux-512.png' * environment, line 476: Called _iconins 'doicon' '-s' '512' '/opt/spotify/spotify-client/Icons/spotify-linux-512.png' * environment, line 359: Called die * The specific snippet of code: * fi ) || die
You should do it like so (ignore the 512 icon, it's not supported by xdg): for size in 16 22 24 32 48 64 128 256; do newicon -s ${size} opt/spotify/spotify-client/Icons/spotify-linux-${size}.png spotify-client.png done domenu opt/spotify/spotify-client/spotify.desktop Mind the use of *newicon* which renames the icon to spotify-client, since that's what is used in the desktop file. And put domenu after newicon, otherwise I am not sure if xdg will install it if it doesn't find the right icon!
In tree as r1 still (since it would fail with the 512, could have sworn that was valid, ah well). Also, changed the order. While it should have worked I think (since the newicon/doicon and domenu are in the install phase), it's good practice.
>>> Install spotify-0.8.8.323-r1 into /var/tmp/portage/media-sound/spotify-0.8.8.323-r1/image/ category media-sound * ERROR: media-sound/spotify-0.8.8.323-r1 failed (install phase): * !!! newins: /opt/spotify/spotify-client/Icons/spotify-linux-16.png does not exist You can't use SPOTIFY_HOME: it's the final location in the merged system, not the one during the ebuild! Oh and please run these very simple tests yourself. It's no rocket science to run emerge, is it.
already fixed, ${S}${SPOTIFY_HOME} works
You need to add it also to the domenu command...
I don't know why when I test it's happy (I remove and verify removal of /opt/spotify stuff). But updated again.
Because you already have spotify installed, so /opt/spotify is a valida path... If you emerge -C spotify and emerge -1 spotify again, it will fail tho.
I did not have it installed when I tested. Anyway, it's been fixed, read the previous comment I made.
Awsome, works fine now. Thanks a lot.