sys-libs/libblockdev: Synced live ebuild
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 10 Sep 2019 07:44:15 +0000 (09:44 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 10 Sep 2019 07:48:19 +0000 (09:48 +0200)
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-libs/libblockdev/libblockdev-9999.ebuild

index fb0c5edf21875b33bfeedbfed2b6189e9e248fc4..6108db98a24f18e506a2377bb389f4f3771a3ffa 100644 (file)
@@ -113,4 +113,9 @@ src_configure() {
 src_install() {
        default
        find "${ED}" -type f -name "*.la" -delete || die
+       # This is installed even with USE=-lvm, but libbd_lvm are omitted so it
+       # doesn't work at all.
+       if ! use lvm; then
+               rm -f "${ED}"/usr/bin/lvm-cache-stats || die
+       fi
 }