sys-fs/lvm2: Backport the device-mapper-only + static-lib fix
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 23 Feb 2020 12:29:03 +0000 (13:29 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 23 Feb 2020 12:29:33 +0000 (13:29 +0100)
It is already fixed in ~ since a while.

Package-Manager: Portage-2.3.89, Repoman-2.3.18
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
sys-fs/lvm2/lvm2-2.02.184-r5.ebuild

index 97c1dcb53f93cb83ef41d00746fcab562efb92f7..6575e869d5a4e006e1fd066b4ed97b7dd4bff110 100644 (file)
@@ -239,8 +239,10 @@ src_install() {
 
        if use static-libs; then
                dolib.a libdm/ioctl/libdevmapper.a
-               dolib.a libdaemon/client/libdaemonclient.a #462908
-               dolib.a daemons/dmeventd/libdevmapper-event.a
+               if use !device-mapper-only ; then
+                       dolib.a libdaemon/client/libdaemonclient.a #462908
+                       dolib.a daemons/dmeventd/libdevmapper-event.a
+               fi
        else
                rm -f "${ED%/}"/usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a
        fi