Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 579082

Summary: media-libs/mesa: automagic dependency on cryptographic library
Product: Gentoo Linux Reporter: Alexander Tsoy <alexander>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal CC: polynomial-c
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mesa-11.2.0:20160405-071304.log.gz

Description Alexander Tsoy 2016-04-05 08:07:16 UTC
Created attachment 429670 [details]
mesa-11.2.0:20160405-071304.log.gz

mesa automagically depends on one of the packages providing SHA1 hash function: nettle, libgcrypt, openssl, etc. See configure.ac for more info.


For example on my system:

$ ldd /usr/lib64/mesa/radeonsi_dri.so | grep nettle
        libnettle.so.6 => /usr/lib64/libnettle.so.6 (0x000003607109a000)
$ ldd /usr/lib64/mesa/i915_dri.so | grep nettle
        libnettle.so.6 => /usr/lib64/libnettle.so.6 (0x000003ab49313000)
# grep -rl libnettle /var/db/pkg/media-libs/mesa-11.1.2-r1/
/var/db/pkg/media-libs/mesa-11.1.2-r1/NEEDED
/var/db/pkg/media-libs/mesa-11.1.2-r1/NEEDED.ELF.2
/var/db/pkg/media-libs/mesa-11.1.2-r1/REQUIRES


From the build log:

checking for SHA1Init... no
checking for CC_SHA1_Init... no
checking for wincrypt.h... no
checking for SHA1Init in -lmd... no
checking for LIBSHA1... no
checking for nettle_sha1_init in -lnettle... yes
checking for gcry_md_open in -lgcrypt... yes
checking for SHA1_Init in -lcrypto... yes
checking for OPENSSL... yes
checking for SHA1 implementation... libnettle
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-05 09:44:14 UTC

*** This bug has been marked as a duplicate of bug 539266 ***