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

Bug 383417

Summary: sys-fs/cryptsetup: USE="static" requires "|| ( >=sys-fs/lvm2-2.02.88[static-libs] <sys-fs/lvm2-2.02.88 )"
Product: Gentoo Linux Reporter: Bernd Lommerzheim <bernd>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bernd Lommerzheim 2011-09-17 20:40:53 UTC
When sys-fs/lvm2-2.02.88 is installed with USE="-static-libs" and you try to build sys-fs/cryptsetup-1.2.0-r1 with USE="static" you get the following build failure:

libtool: link: x86_64-pc-linux-gnu-gcc -Wall -march=core2 -msse -msse2 -msse3 -msse4.1 -O2 -pipe -fomit-frame-pointer -static -Wl,-O1 -o cryptsetup.static cryptsetup_static-utils_crypt.o cryptsetup_static-cryptsetup.o  -Wl,--as-needed ../lib/.libs/libcryptsetup.a -L/lib64 -L/usr/lib64 -lpopt /usr/lib64/libgcrypt.a /usr/lib64/libgpg-error.a -ldevmapper /usr/lib64/libudev.a -lrt -luuid
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldevmapper
collect2: ld returned 1 exit status

After rebuilding sys-fs/lvm2 with USE="static-libs" the problem is gone. Please add the following DEPEND to sys-fs/cryptsetup:

DEPEND=".. static? ( .. || ( >=sys-fs/lvm2-2.02.88[static-libs] <sys-fs/lvm2-2.02.88 ) .. ) .."
Comment 1 SpanKY gentoo-dev 2011-09-19 01:34:01 UTC
should be all set now in the tree; thanks for the report!

Commit message: Simplify deps a little more, and require static-libs with lvm2
http://sources.gentoo.org/sys-fs/cryptsetup/cryptsetup-1.2.0-r1.ebuild?r1=1.8&r2=1.9