Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383417 - sys-fs/cryptsetup: USE="static" requires "|| ( >=sys-fs/lvm2-2.02.88[static-libs] <sys-fs/lvm2-2.02.88 )"
Summary: sys-fs/cryptsetup: USE="static" requires "|| ( >=sys-fs/lvm2-2.02.88[static-l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-17 20:40 UTC by Bernd Lommerzheim
Modified: 2011-09-19 01:34 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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