mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 17:19:23 +00:00
lvm2/libdevmapper: fix invoking lvcreate failed
Previously, libdevmapper is separated from lvm2 in the following commit: Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -5,27 +5,10 @@ SRC_URI[sha256sum] = "e120b066b85b224552efda40204488c5123de068725676fd6e5c8bc655
|
|||||||
|
|
||||||
DEPENDS += "autoconf-archive-native"
|
DEPENDS += "autoconf-archive-native"
|
||||||
|
|
||||||
PACKAGECONFIG = ""
|
|
||||||
|
|
||||||
# Unset user/group to unbreak install.
|
|
||||||
EXTRA_OECONF = "--with-user= \
|
|
||||||
--with-group= \
|
|
||||||
--enable-pkgconfig \
|
|
||||||
--with-usrlibdir=${libdir} \
|
|
||||||
"
|
|
||||||
|
|
||||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||||
|
|
||||||
do_install_append() {
|
do_install() {
|
||||||
# Remove things unrelated to libdevmapper
|
oe_runmake 'DESTDIR=${D}' -C libdm install
|
||||||
rm -rf ${D}${sysconfdir}
|
|
||||||
for i in `ls ${D}${sbindir}/*`; do
|
|
||||||
if [ $i != ${D}${sbindir}/dmsetup ]; then
|
|
||||||
rm $i
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
# Remove docs
|
|
||||||
rm -rf ${D}${datadir}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RRECOMMENDS_${PN}_append_class-target = " lvm2-udevrules"
|
RRECOMMENDS_${PN}_append_class-target = " lvm2-udevrules"
|
||||||
|
|||||||
@@ -18,11 +18,18 @@ S = "${WORKDIR}/LVM2.${PV}"
|
|||||||
|
|
||||||
inherit autotools-brokensep pkgconfig systemd
|
inherit autotools-brokensep pkgconfig systemd
|
||||||
|
|
||||||
|
LVM2_PACKAGECONFIG = "dmeventd lvmetad"
|
||||||
|
LVM2_PACKAGECONFIG_append_class-target = " \
|
||||||
|
${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
|
||||||
|
thin-provisioning-tools \
|
||||||
|
udev \
|
||||||
|
"
|
||||||
|
|
||||||
# odirect is always enabled because there currently is a bug in
|
# odirect is always enabled because there currently is a bug in
|
||||||
# lib/device/dev-io.c which prevents compiling without it. It is
|
# lib/device/dev-io.c which prevents compiling without it. It is
|
||||||
# better to stick to configurations that were actually tested by
|
# better to stick to configurations that were actually tested by
|
||||||
# upstream...
|
# upstream...
|
||||||
PACKAGECONFIG_append = " odirect"
|
PACKAGECONFIG ??= "odirect ${LVM2_PACKAGECONFIG}"
|
||||||
|
|
||||||
PACKAGECONFIG[dmeventd] = "--enable-dmeventd,--disable-dmeventd"
|
PACKAGECONFIG[dmeventd] = "--enable-dmeventd,--disable-dmeventd"
|
||||||
PACKAGECONFIG[lvmetad] = "--enable-lvmetad,--disable-lvmetad"
|
PACKAGECONFIG[lvmetad] = "--enable-lvmetad,--disable-lvmetad"
|
||||||
@@ -31,3 +38,20 @@ PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
|
|||||||
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
|
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
|
||||||
PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools"
|
PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools"
|
||||||
PACKAGECONFIG[udev] = "--enable-udev_sync --enable-udev_rules --with-udevdir=${nonarch_base_libdir}/udev/rules.d,--disable-udev_sync --disable-udev_rules,udev"
|
PACKAGECONFIG[udev] = "--enable-udev_sync --enable-udev_rules --with-udevdir=${nonarch_base_libdir}/udev/rules.d,--disable-udev_sync --disable-udev_rules,udev"
|
||||||
|
|
||||||
|
# Unset user/group to unbreak install.
|
||||||
|
EXTRA_OECONF = "--with-user= \
|
||||||
|
--with-group= \
|
||||||
|
--enable-realtime \
|
||||||
|
--enable-applib \
|
||||||
|
--enable-cmdlib \
|
||||||
|
--enable-pkgconfig \
|
||||||
|
--with-usrlibdir=${libdir} \
|
||||||
|
--with-systemdsystemunitdir=${systemd_system_unitdir} \
|
||||||
|
--disable-thin_check_needs_check \
|
||||||
|
--with-thin-check=${sbindir}/thin_check \
|
||||||
|
--with-thin-dump=${sbindir}/thin_dump \
|
||||||
|
--with-thin-repair=${sbindir}/thin_repair \
|
||||||
|
--with-thin-restore=${sbindir}/thin_restore \
|
||||||
|
"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
From 0a8e466fcf99622896e070c5133165e4278e8cfb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||||
|
Date: Thu, 25 May 2017 05:27:11 -0400
|
||||||
|
Subject: [PATCH] explicitly do not install libdm
|
||||||
|
|
||||||
|
Already have package libdevmapper which split from lvm2,
|
||||||
|
explicitly do not do the installation here.
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [meta-oe specific]
|
||||||
|
|
||||||
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||||
|
---
|
||||||
|
libdm/Makefile.in | 6 ++++--
|
||||||
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libdm/Makefile.in b/libdm/Makefile.in
|
||||||
|
index 3c9a4ce..45c91c6 100644
|
||||||
|
--- a/libdm/Makefile.in
|
||||||
|
+++ b/libdm/Makefile.in
|
||||||
|
@@ -77,9 +77,11 @@ ifeq ("@PKGCONFIG@", "yes")
|
||||||
|
INSTALL_TYPE += install_pkgconfig
|
||||||
|
endif
|
||||||
|
|
||||||
|
-install: $(INSTALL_TYPE) install_include
|
||||||
|
+install:
|
||||||
|
+ echo "Do not install device mappler in lvm2"
|
||||||
|
|
||||||
|
-install_device-mapper: install
|
||||||
|
+install_device-mapper:
|
||||||
|
+ echo "Do not install device mappler in lvm2"
|
||||||
|
|
||||||
|
install_include: $(srcdir)/libdevmapper.h
|
||||||
|
$(INSTALL_DATA) -D $< $(includedir)/$(<F)
|
||||||
|
--
|
||||||
|
2.8.1
|
||||||
|
|
||||||
@@ -3,33 +3,10 @@ require lvm2.inc
|
|||||||
SRC_URI[md5sum] = "153b7bb643eb26073274968e9026fa8f"
|
SRC_URI[md5sum] = "153b7bb643eb26073274968e9026fa8f"
|
||||||
SRC_URI[sha256sum] = "b815a711a2fabaa5c3dc1a4a284df0268bf0f325f0fc0f5c9530c9bbb54b9964"
|
SRC_URI[sha256sum] = "b815a711a2fabaa5c3dc1a4a284df0268bf0f325f0fc0f5c9530c9bbb54b9964"
|
||||||
|
|
||||||
|
SRC_URI += "file://0001-explicitly-do-not-install-libdm.patch"
|
||||||
|
|
||||||
DEPENDS += "autoconf-archive-native"
|
DEPENDS += "autoconf-archive-native"
|
||||||
|
|
||||||
LVM2_PACKAGECONFIG = "dmeventd lvmetad"
|
|
||||||
LVM2_PACKAGECONFIG_append_class-target = " \
|
|
||||||
${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
|
|
||||||
thin-provisioning-tools \
|
|
||||||
udev \
|
|
||||||
"
|
|
||||||
|
|
||||||
PACKAGECONFIG ??= "${LVM2_PACKAGECONFIG}"
|
|
||||||
|
|
||||||
# Unset user/group to unbreak install.
|
|
||||||
EXTRA_OECONF = "--with-user= \
|
|
||||||
--with-group= \
|
|
||||||
--enable-realtime \
|
|
||||||
--enable-applib \
|
|
||||||
--enable-cmdlib \
|
|
||||||
--enable-pkgconfig \
|
|
||||||
--with-usrlibdir=${libdir} \
|
|
||||||
--with-systemdsystemunitdir=${systemd_system_unitdir} \
|
|
||||||
--disable-thin_check_needs_check \
|
|
||||||
--with-thin-check=${sbindir}/thin_check \
|
|
||||||
--with-thin-dump=${sbindir}/thin_dump \
|
|
||||||
--with-thin-repair=${sbindir}/thin_repair \
|
|
||||||
--with-thin-restore=${sbindir}/thin_restore \
|
|
||||||
"
|
|
||||||
|
|
||||||
CACHED_CONFIGUREVARS += "MODPROBE_CMD=${base_sbindir}/modprobe"
|
CACHED_CONFIGUREVARS += "MODPROBE_CMD=${base_sbindir}/modprobe"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
@@ -45,10 +22,6 @@ do_install_append() {
|
|||||||
mv ${D}${sysconfdir}/rc.d/init.d ${D}${sysconfdir}/init.d
|
mv ${D}${sysconfdir}/rc.d/init.d ${D}${sysconfdir}/init.d
|
||||||
rm -rf ${D}${sysconfdir}/rc.d
|
rm -rf ${D}${sysconfdir}/rc.d
|
||||||
fi
|
fi
|
||||||
# Remove things related to libdevmapper
|
|
||||||
rm -f ${D}${sbindir}/dmsetup
|
|
||||||
rm -f ${D}${libdir}/libdevmapper.so.*
|
|
||||||
rm -f ${D}${libdir}/libdevmapper.so ${D}${libdir}/pkgconfig/devmapper.pc ${D}${includedir}/libdevmapper.h
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGE_BEFORE_PN = "${PN}-scripts ${PN}-udevrules"
|
PACKAGE_BEFORE_PN = "${PN}-scripts ${PN}-udevrules"
|
||||||
|
|||||||
Reference in New Issue
Block a user