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

Bug 351810

Summary: sys-fs/cryptsetup: static build needs dev-libs/libgpg-error[static-libs]
Product: Gentoo Linux Reporter: Peter Volkov (RETIRED) <pva>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: crypto+disabled, dani.church, gaoyang.public, g_linux, hrabe, melendro, oeffentlicheszeug
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter Volkov (RETIRED) gentoo-dev 2011-01-15 22:37:08 UTC
dev-libs/libgcrypt depends on dev-libs/libgpg-error that does not provide static library in 1.10. As the result attempt to statically link with libgcrypt fails and thus currently stable cryptsetup-1.1.3-r3 fails with:

libtool: link: i686-pc-linux-gnu-gcc -Wall -O2 -march=i686 -pipe -mtune=pentium3 -static -Wl,--as-needed -Wl,--hash-style=gnu -o cryptsetup cryptsetup-cryptsetup.o  ../lib/.libs/libcryptsetup.a -luuid -L/lib -ldevmapper /usr/lib/libudev.a -L/usr/lib /usr/lib/libgcrypt.a /usr/lib/libgpg-error.so /usr/lib/libpopt.a
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/bin/ld: attempted static link of dynamic object `/usr/lib/libgpg-error.so'
collect2: ld returned 1 exit status

and unstable cryptsetup-1.2.0-r1

checking whether DM_UDEV_DISABLE_DISK_RULES_FLAG is declared... yes
checking for gcry_check_version in -lgcrypt... no
configure: error: Cannot find static gcrypt library.

dev-libs/libgpg-error should provide static USE flag and cryptsetup[static] should depend on dev-libs/libgpg-error[static].
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-15 22:52:35 UTC
"static-libs" USE flag has been added in dev-libs/libgpg-error-1.10.
Comment 3 SpanKY gentoo-dev 2011-01-16 21:10:41 UTC
*** Bug 351691 has been marked as a duplicate of this bug. ***
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-16 22:26:52 UTC
By the way, for consistency with other packages, "static-libs" USE flag has been added also to dev-libs/libgcrypt.
Comment 5 SpanKY gentoo-dev 2011-01-17 19:40:47 UTC
*** Bug 351908 has been marked as a duplicate of this bug. ***
Comment 6 Rafał Mużyło 2011-01-18 10:01:15 UTC
*** Bug 351962 has been marked as a duplicate of this bug. ***
Comment 7 Franz Glauber Vanderlinde 2011-01-18 11:06:06 UTC
Is this right? Now the use flag not present in the profile needs to be explicitly set for libgcrypt, which is annoying, I believe. If there is only one option to install cryptsetup and it is by enabling static-libs on libgcrypt, shouldn't it be without intervention? Otherwise, it shouldn't be required.
Comment 8 SpanKY gentoo-dev 2011-01-18 19:51:53 UTC
*** Bug 351935 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2011-01-18 21:30:21 UTC
*** Bug 352067 has been marked as a duplicate of this bug. ***