Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466282 - sys-fs/lvm2 : please propagate USE=static-libs to dependencies
Summary: sys-fs/lvm2 : please propagate USE=static-libs to dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 453390 462956
  Show dependency tree
 
Reported: 2013-04-17 20:29 UTC by Ian Stakenvicius (RETIRED)
Modified: 2013-05-23 14:15 UTC (History)
1 user (show)

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 Ian Stakenvicius (RETIRED) gentoo-dev 2013-04-17 20:29:22 UTC
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.
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2013-05-23 14:15:53 UTC
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
+