This is to aid in resolution of bug 462956. If a package (like sys-fs/dmraid) is built with USE="static" and depends on lvm2, then lvm2 needs to be built with USE="static-libs". However, if lvm2 is build with USE="udev", then the output of 'pkg-config --static --libs devmapper' also includes -ludev ; and if virtual/udev isn't also built with USE="static-libs" then the original USE="static" package still won't be built successfully. Although I can add a dependency on virtual/udev in dmraid, this isn't really valid due to the fact that it's lvm2 that's bringing it in; it would be much better to have USE="static-libs" propagate down to all dependencies of lvm2 instead. So, I'm requesting that something similar to the following be applied to the lvm2 ebuilds -- note that I believe libdlm may also require the additional use dep, but have not tested. : --- lvm2-2.02.97-r1.ebuild 24 Feb 2013 17:44:32 -0000 1.13 +++ lvm2-2.02.97-r1.ebuild 17 Apr 2013 20:27:46 -0000 @@ -20,7 +20,7 @@ readline? ( sys-libs/readline ) clvm? ( =sys-cluster/libdlm-3* cman? ( =sys-cluster/cman-3* ) ) - udev? ( virtual/udev )" + udev? ( virtual/udev[static-libs?] )" # /run is now required for locking during early boot. /var cannot be assumed to # be available.
Given the go-ahead on irc; fix applied for the udev atom. NOTE, may need this for sys-cluster/libdlm atom as well but I didn't test. Repoen if necessary. + 23 May 2013; Ian Stakenvicius <axs@gentoo.org> lvm2-2.02.95-r4.ebuild, + lvm2-2.02.97-r1.ebuild, lvm2-2.02.97.ebuild, lvm2-2.02.98.ebuild: + require static-libs from virtual/udev so that rdeps of lvm[static-libs] will + build, bug 466282 +