commit: c4f81ea7517f3b1339b4013f419d2e90b0e51ea8
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 31 23:18:09 2019 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Thu Aug 1 17:46:52 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4f81ea7
sys-libs/libblockdev: fix lvm-cache-stats
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
sys-libs/libblockdev/libblockdev-2.22.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys-libs/libblockdev/libblockdev-2.22.ebuild
b/sys-libs/libblockdev/libblockdev-2.22.ebuild
index fe1a9b0b4e7..043dd58c3e8 100644
--- a/sys-libs/libblockdev/libblockdev-2.22.ebuild
+++ b/sys-libs/libblockdev/libblockdev-2.22.ebuild
@@ -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
}