Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499144 - ~media-sound/spotify-0.9.4.183 should depend on <dev-libs/libgcrypt-1.6
Summary: ~media-sound/spotify-0.9.4.183 should depend on <dev-libs/libgcrypt-1.6
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: 2014-01-24 17:49 UTC by Manuel Nickschas
Modified: 2014-05-11 10:44 UTC (History)
3 users (show)

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


Attachments
Depend on libgcrypt:11/11 to solve the libgcrypt-1.6 blocks (spotify_with_slotted_libgcrypt.patch,334 bytes, patch)
2014-04-23 13:31 UTC, Jan-Matthias Braun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Nickschas 2014-01-24 17:49:59 UTC
media-sound/spotify links to libgcrypt.so.11. Launching it on an ~ARCH system with libgcrypt-1.6.0 breaks it:

/opt/spotify/spotify-client/spotify: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory

Not sure what would be the best way to fix this, either shipping an older version of the library with the package (which seems to be already done for libudev.so.0), or slotting libgcrypt so we could install 1.5 in parallel to 1.6.

Reproducible: Always

Steps to Reproduce:
1. Install spotify on an ~ARCH system
2. Try to launch spotify

Actual Results:  
/opt/spotify/spotify-client/spotify: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory

Expected Results:  
No error :)
Comment 1 Manuel Nickschas 2014-01-24 18:49:54 UTC
Ah, now I see that a dependency was already added in -r4 wrt bug #498054. Of course that just made Portage pull in -r3 instead which is still around, so I didn't notice.
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-01-24 20:39:18 UTC
ok, closing as invalid.

post again if you still have issues with this/
Comment 3 Manuel Nickschas 2014-01-24 21:43:28 UTC
Well, removing the older ebuilds would probably be a good thing, so others won't fall into the same trap...
Comment 4 Christoph Mende (RETIRED) gentoo-dev 2014-04-21 16:23:18 UTC
Considering libgcrypt is indeed slotted now, the depedency should be changed to || ( gcrypt:0/11 gcrypt:11 ).
Comment 5 Ivan Iraci 2014-04-22 13:11:18 UTC
(In reply to Christoph Mende from comment #4)

> Considering libgcrypt is indeed slotted now, the depedency should be changed
> to || ( gcrypt:0/11 gcrypt:11 ).

I totally agree: today I had to edit spotify ebuild, remove libgrypt:0/11 and install libgcrypt:11/11 in order to fix some blockers.
Comment 6 Jan-Matthias Braun 2014-04-23 13:31:42 UTC
Created attachment 375546 [details, diff]
Depend on libgcrypt:11/11 to solve the libgcrypt-1.6 blocks
Comment 7 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-04-24 07:02:56 UTC
fixed, sorry for being somewhat unresponsive, busy busy (fixed in spotify-0.9.4.183-r6.ebuild ).
Comment 8 MaurizioB 2014-05-01 01:42:38 UTC
I added libgcrypt:11 to keywords, but this resolves in an inconsistency with the original libgcrypt, which requires then to downgrade libgpg-error to 1.10, which in turn is not enough for gnupg-2.0.22 (requires >=libgpg-error-1.11).
Maybe I'm getting this wrong, but this is the output of emerge -NDuva libgcrypt:11

[ebuild     UD ] dev-libs/libgpg-error-1.10 [1.12] USE="nls -common-lisp -static-libs" 429 kB
[ebuild     U ~] media-libs/libsamplerate-0.1.8-r1 [0.1.7] USE="sndfile -static-libs%" 4,203 kB
[ebuild  NS   ~] dev-libs/libgcrypt-1.5.3-r100:11 [1.5.3:0/11] 0 kB
[blocks B      ] dev-libs/libgcrypt:0/11 ("dev-libs/libgcrypt:0/11" is blocking dev-libs/libgcrypt-1.5.3-r100)

Total: 3 packages (1 upgrade, 1 downgrade, 1 in new slot), Size of downloads: 4,632 kB
Conflict: 1 block (1 unsatisfied)

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-libs/libgpg-error:0

  (dev-libs/libgpg-error-1.12::gentoo, installed) pulled in by
    >=dev-libs/libgpg-error-1.11 required by (app-crypt/gnupg-2.0.22::gentoo, installed)

  (dev-libs/libgpg-error-1.10::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-libs/libgpg-error-1.8[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?] required by (dev-libs/libgcrypt-1.5.3-r100::gentoo, ebuild scheduled for merge)


[... cut ...]

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (dev-libs/libgcrypt-1.5.3-r100::gentoo, ebuild scheduled for merge) pulled in by
    libgcrypt:11

  (dev-libs/libgcrypt-1.5.3::gentoo, installed) pulled in by
    >=dev-libs/libgcrypt-1.1.42:0/11= required by (dev-libs/libxslt-1.1.28-r1::gentoo, installed)
    >=dev-libs/libgcrypt-1.2.2:0/11= required by (gnome-base/gnome-keyring-3.10.1::gentoo, installed)
    >=dev-libs/libgcrypt-1.4:0 required by (app-crypt/gnupg-2.0.22::gentoo, installed)
    >=dev-libs/libgcrypt-1.2.2:0= required by (app-crypt/gcr-3.10.1::gentoo, installed)
    dev-libs/libgcrypt:0 required by (media-libs/libaacs-0.7.0::gentoo, installed)
    >=dev-libs/libgcrypt-1.2.2:0= required by (gnome-base/gnome-keyring-3.10.1::gentoo, installed)
    >=dev-libs/libgcrypt-1.2.0:0 required by (media-video/vlc-2.0.9::gentoo, installed)
    dev-libs/libgcrypt:0/11= required by (www-client/chromium-34.0.1847.116::gentoo, installed)
    >=dev-libs/libgcrypt-1.1.42:0= required by (dev-libs/libxslt-1.1.28-r1::gentoo, installed)
    dev-libs/libgcrypt:0/11 required by (media-sound/spotify-0.9.4.183-r5::gentoo, installed)
    >=dev-libs/libgcrypt-1.2.2:0/11= required by (app-crypt/gcr-3.10.1::gentoo, installed)
    dev-libs/libgcrypt:0= required by (media-sound/ario-1.5.1::gentoo, installed)
    dev-libs/libgcrypt:0 required by (media-libs/libmtp-1.1.6-r1::gentoo, installed)
Comment 9 Mikael Grahn 2014-05-01 09:03:08 UTC
I have the exact same problem and have no idea how to fix it. It's a good thing i can still use the -r5 build. So I would say that this fix brings a new problem.


(In reply to MaurizioB from comment #8)
> I added libgcrypt:11 to keywords, but this resolves in an inconsistency with
> the original libgcrypt, which requires then to downgrade libgpg-error to
> 1.10, which in turn is not enough for gnupg-2.0.22 (requires
> >=libgpg-error-1.11).
> Maybe I'm getting this wrong, but this is the output of emerge -NDuva
> libgcrypt:11
> 
> [ebuild     UD ] dev-libs/libgpg-error-1.10 [1.12] USE="nls -common-lisp
> -static-libs" 429 kB
> [ebuild     U ~] media-libs/libsamplerate-0.1.8-r1 [0.1.7] USE="sndfile
> -static-libs%" 4,203 kB
> [ebuild  NS   ~] dev-libs/libgcrypt-1.5.3-r100:11 [1.5.3:0/11] 0 kB
> [blocks B      ] dev-libs/libgcrypt:0/11 ("dev-libs/libgcrypt:0/11" is
> blocking dev-libs/libgcrypt-1.5.3-r100)
> 
> Total: 3 packages (1 upgrade, 1 downgrade, 1 in new slot), Size of
> downloads: 4,632 kB
> Conflict: 1 block (1 unsatisfied)
> 
> !!! Multiple package instances within a single package slot have been pulled
> !!! into the dependency graph, resulting in a slot conflict:
> 
> dev-libs/libgpg-error:0
> 
>   (dev-libs/libgpg-error-1.12::gentoo, installed) pulled in by
>     >=dev-libs/libgpg-error-1.11 required by
> (app-crypt/gnupg-2.0.22::gentoo, installed)
> 
>   (dev-libs/libgpg-error-1.10::gentoo, ebuild scheduled for merge) pulled in
> by
>    
> >=dev-libs/libgpg-error-1.8[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,
> abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?] required by
> (dev-libs/libgcrypt-1.5.3-r100::gentoo, ebuild scheduled for merge)
> 
> 
> [... cut ...]
> 
>  * Error: The above package list contains packages which cannot be
>  * installed at the same time on the same system.
> 
>   (dev-libs/libgcrypt-1.5.3-r100::gentoo, ebuild scheduled for merge) pulled
> in by
>     libgcrypt:11
> 
>   (dev-libs/libgcrypt-1.5.3::gentoo, installed) pulled in by
>     >=dev-libs/libgcrypt-1.1.42:0/11= required by
> (dev-libs/libxslt-1.1.28-r1::gentoo, installed)
>     >=dev-libs/libgcrypt-1.2.2:0/11= required by
> (gnome-base/gnome-keyring-3.10.1::gentoo, installed)
>     >=dev-libs/libgcrypt-1.4:0 required by (app-crypt/gnupg-2.0.22::gentoo,
> installed)
>     >=dev-libs/libgcrypt-1.2.2:0= required by (app-crypt/gcr-3.10.1::gentoo,
> installed)
>     dev-libs/libgcrypt:0 required by (media-libs/libaacs-0.7.0::gentoo,
> installed)
>     >=dev-libs/libgcrypt-1.2.2:0= required by
> (gnome-base/gnome-keyring-3.10.1::gentoo, installed)
>     >=dev-libs/libgcrypt-1.2.0:0 required by (media-video/vlc-2.0.9::gentoo,
> installed)
>     dev-libs/libgcrypt:0/11= required by
> (www-client/chromium-34.0.1847.116::gentoo, installed)
>     >=dev-libs/libgcrypt-1.1.42:0= required by
> (dev-libs/libxslt-1.1.28-r1::gentoo, installed)
>     dev-libs/libgcrypt:0/11 required by
> (media-sound/spotify-0.9.4.183-r5::gentoo, installed)
>     >=dev-libs/libgcrypt-1.2.2:0/11= required by
> (app-crypt/gcr-3.10.1::gentoo, installed)
>     dev-libs/libgcrypt:0= required by (media-sound/ario-1.5.1::gentoo,
> installed)
>     dev-libs/libgcrypt:0 required by (media-libs/libmtp-1.1.6-r1::gentoo,
> installed)
Comment 10 Dell'Aica Valentino 2014-05-01 13:09:48 UTC
It seem that after this, you must unmask libgcrypt-1.1.6, emerge it, unmask libgcrypt:11 then you can install/upgrade spotify
Comment 11 MaurizioB 2014-05-02 00:15:04 UTC
We could, but actually I don't understand why this should be necessary.
Another thing: I am on x86 and I've not seen this problem, but I always had similar problems with spotify. Have you tried to make a symlink to the actual library in the /opt/spotify/spotify-client directory?
Comment 12 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-05-02 20:39:49 UTC
one bug at a time.

as this one is closed (it may require installing both slots of libgcrypt) I'd suggest documenting the new bug in a new bug :D
Comment 13 Ville Aakko 2014-05-11 10:42:52 UTC
Hi,

Maybe I'm missing something, but I can use spotify with :0/11 without problems. Presumably it works with :11/11,too. I believe the problems above arise, because some users do not have ~amd64 / ~x86 / ~whatever globally enabled but only for spotify (there's no stable spotify).

So, I suggest:

# diff -Nau /usr/portage/media-sound/spotify/spotify-0.9.4.183-r6.ebuild  spotify-0.9.4.183-r6.ebuild 
--- /usr/portage/media-sound/spotify/spotify-0.9.4.183-r6.ebuild        2014-04-24 10:02:32.000000000 +0300
+++ spotify-0.9.4.183-r6.ebuild 2014-05-10 10:47:26.132985281 +0300
@@ -44,7 +44,7 @@
                media-libs/freetype
                dev-libs/openssl:0
                dev-libs/glib:2
-               dev-libs/libgcrypt:11/11
+               || ( dev-libs/libgcrypt:11/11 dev-libs/libgcrypt:0/11 )
                media-libs/libpng:1.2
                dev-db/sqlite:3
                sys-libs/zlib

instead of the current fix.