Skip to contentSkip to conversation

add PACKAGECONFIG for lvm thin provisioning

PATCH In review Hongxu Jia 2 participants 4 messages Sep 6, 2016

lore
Share & tools
lore

Hongxu Jia

author
#0 lore raw

cover add PACKAGECONFIG for lvm thin provisioning

The following changes since commit 291946d2501be1dc2549304460e3e288408dfbfe:

directfb: add PACKAGECONFIG for inputdrivers (2016-09-05 13:30:55 +0200)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib hongxu/lvm2
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=hongxu/lvm2

Hongxu Jia (1):
add PACKAGECONFIG for lvm thin provisioning

 meta-oe/recipes-support/lvm2/lvm2.inc | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
Signature · 1 line
2.8.1
author
#1 lore raw

PATCH 1/1 add PACKAGECONFIG for lvm thin provisioning

The thin provisioning tools is runtime dependency, so disable build time detection.

---
 meta-oe/recipes-support/lvm2/lvm2.inc | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
meta-oe/recipes-support/lvm2/lvm2.inc +10 -2
index e2feeb3..d66daf8 100644
@@ -18,10 +18,13 @@ S = "${WORKDIR}/LVM2.${PV}"
 
 inherit autotools-brokensep pkgconfig systemd
 
-PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
+                   thin-provisioning-tools \
+"
 
 PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
 PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
+PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools"
 
 # Unset user/group to unbreak install.
 EXTRA_OECONF = "--with-user= \
@@ -38,6 +41,11 @@ EXTRA_OECONF = "--with-user= \
                 --with-udev-prefix= \
                 --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"
@@ -66,6 +74,6 @@ TARGET_CC_ARCH += "${LDFLAGS}"
 FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev"
 FILES_${PN}-dbg += "${libdir}/device-mapper/.debug"
 
-RDEPENDS_${PN} = "bash thin-provisioning-tools"
+RDEPENDS_${PN} = "bash"
 
 CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf"
Signature · 1 line
2.8.1
#2 lore raw
Quoted 4 lines · Hongxu Jia

The thin provisioning tools is runtime dependency, so disable build time detection.

Next time start the summary with component name.

Quoted 46 lines
---
 meta-oe/recipes-support/lvm2/lvm2.inc | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
meta-oe/recipes-support/lvm2/lvm2.inc +10 -2
index e2feeb3..d66daf8 100644
@@ -18,10 +18,13 @@ S = "${WORKDIR}/LVM2.${PV}"
 
 inherit autotools-brokensep pkgconfig systemd
 
-PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
+                   thin-provisioning-tools \
+"
 
 PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
 PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
+PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools"
 
 # Unset user/group to unbreak install.
 EXTRA_OECONF = "--with-user= \
@@ -38,6 +41,11 @@ EXTRA_OECONF = "--with-user= \
                 --with-udev-prefix= \
                 --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"
@@ -66,6 +74,6 @@ TARGET_CC_ARCH += "${LDFLAGS}"
 FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev"
 FILES_${PN}-dbg += "${libdir}/device-mapper/.debug"
 
-RDEPENDS_${PN} = "bash thin-provisioning-tools"
+RDEPENDS_${PN} = "bash"
 
 CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf"
Signature · 1 line
2.8.1
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#3 lore raw

PATCH 1/1 lvm2: add PACKAGECONFIG for lvm thin provisioning

The thin provisioning tools is runtime dependency, so disable build time detection.

---
 meta-oe/recipes-support/lvm2/lvm2.inc | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
meta-oe/recipes-support/lvm2/lvm2.inc +10 -2
index e2feeb3..d66daf8 100644
@@ -18,10 +18,13 @@ S = "${WORKDIR}/LVM2.${PV}"
 
 inherit autotools-brokensep pkgconfig systemd
 
-PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
+                   thin-provisioning-tools \
+"
 
 PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
 PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
+PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools"
 
 # Unset user/group to unbreak install.
 EXTRA_OECONF = "--with-user= \
@@ -38,6 +41,11 @@ EXTRA_OECONF = "--with-user= \
                 --with-udev-prefix= \
                 --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"
@@ -66,6 +74,6 @@ TARGET_CC_ARCH += "${LDFLAGS}"
 FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev"
 FILES_${PN}-dbg += "${libdir}/device-mapper/.debug"
 
-RDEPENDS_${PN} = "bash thin-provisioning-tools"
+RDEPENDS_${PN} = "bash"
 
 CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf"
Signature · 1 line
2.8.1