sys-libs/libblockdev: fix lvm-cache-stats
authorRobin H. Johnson <robbat2@gentoo.org>
Wed, 31 Jul 2019 23:18:09 +0000 (16:18 -0700)
committerRobin H. Johnson <robbat2@gentoo.org>
Thu, 1 Aug 2019 17:46:52 +0000 (10:46 -0700)
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
sys-libs/libblockdev/libblockdev-2.22.ebuild

index fe1a9b0b4e7a39323a87f79e7fd5094de66a5dc8..043dd58c3e88a7a5d1b7159abdd66e033534e869 100644 (file)
@@ -112,4 +112,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
 }