1 |
commit: c4f81ea7517f3b1339b4013f419d2e90b0e51ea8 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 31 23:18:09 2019 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 1 17:46:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4f81ea7 |
7 |
|
8 |
sys-libs/libblockdev: fix lvm-cache-stats |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
12 |
|
13 |
sys-libs/libblockdev/libblockdev-2.22.ebuild | 5 +++++ |
14 |
1 file changed, 5 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/libblockdev/libblockdev-2.22.ebuild b/sys-libs/libblockdev/libblockdev-2.22.ebuild |
17 |
index fe1a9b0b4e7..043dd58c3e8 100644 |
18 |
--- a/sys-libs/libblockdev/libblockdev-2.22.ebuild |
19 |
+++ b/sys-libs/libblockdev/libblockdev-2.22.ebuild |
20 |
@@ -112,4 +112,9 @@ src_configure() { |
21 |
src_install() { |
22 |
default |
23 |
find "${ED}" -type f -name "*.la" -delete || die |
24 |
+ # This is installed even with USE=-lvm, but libbd_lvm are omitted so it |
25 |
+ # doesn't work at all. |
26 |
+ if ! use lvm; then |
27 |
+ rm -f "${ED}"/usr/bin/lvm-cache-stats || die |
28 |
+ fi |
29 |
} |