[oe] [meta-oe][PATCH] lvm2: fix install file conflict with multilib

kai.kang at windriver.com kai.kang at windriver.com
Tue Sep 4 07:07:38 UTC 2018


From: Kai Kang <kai.kang at windriver.com>

When enable multilib and both lvm2 and multilib lvm2 such as lib32-lvm2
are installed to image, it causes install file conflict.

| file /etc/lvm/lvm.conf conflicts between attempted installs of
| lib32-lvm2-2.02.180-r0.x86 and lvm2-2.02.180-r0.core2_64

Inherit multilib_script to fix it.

Signed-off-by: Kai Kang <kai.kang at windriver.com>
---
 meta-oe/recipes-support/lvm2/lvm2_2.02.180.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.02.180.bb b/meta-oe/recipes-support/lvm2/lvm2_2.02.180.bb
index 5b9b2f7ec..9da0f5ec9 100644
--- a/meta-oe/recipes-support/lvm2/lvm2_2.02.180.bb
+++ b/meta-oe/recipes-support/lvm2/lvm2_2.02.180.bb
@@ -7,6 +7,10 @@ SRC_URI += "file://0001-explicitly-do-not-install-libdm.patch"
 
 DEPENDS += "autoconf-archive-native"
 
+inherit multilib_script
+
+MULTILIB_SCRIPTS = "${PN}:${sysconfdir}/lvm/lvm.conf"
+
 CACHED_CONFIGUREVARS += "MODPROBE_CMD=${base_sbindir}/modprobe"
 
 do_install_append() {
-- 
2.18.0




More information about the Openembedded-devel mailing list