summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2017-02-18 03:10:11 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2017-02-22 13:16:47 +0100
commit6370feda0dd633d05d3de6fd862a7a68899eff0d (patch)
tree51a3e9587e4c0126e75c690c5b2fd3fea64a4094
parent402ee2143c7157f50d9644275aaaa18e1e663a3f (diff)
downloadmeta-openembedded-6370feda0dd633d05d3de6fd862a7a68899eff0d.tar.gz
lvm2: Move bash scripts to a separate package
By putting the bash scripts in a separate package (lvm2-scripts), the lvm2 package no longer needs to depend on bash. For backwards compatibility, the lvm2 package recommends the lvm2-scripts package. Also remove the adding of ${libdir}/device-mapper/.debug to FILES_${PN}-dbg as it has not been needed since Krogoth. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2.inc12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index 438ea7b60..1462841a2 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -73,6 +73,8 @@ do_install_append() {
73 fi 73 fi
74} 74}
75 75
76PACKAGE_BEFORE_PN = "${PN}-scripts"
77
76SYSTEMD_PACKAGES = "${PN}" 78SYSTEMD_PACKAGES = "${PN}"
77SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \ 79SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \
78 ${@bb.utils.contains('PACKAGECONFIG', 'lvmetad', 'lvm2-lvmetad.socket lvm2-pvscan@.service', '', d)} \ 80 ${@bb.utils.contains('PACKAGECONFIG', 'lvmetad', 'lvm2-lvmetad.socket lvm2-pvscan@.service', '', d)} \
@@ -82,8 +84,14 @@ SYSTEMD_AUTO_ENABLE = "disable"
82TARGET_CC_ARCH += "${LDFLAGS}" 84TARGET_CC_ARCH += "${LDFLAGS}"
83 85
84FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev" 86FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev"
85FILES_${PN}-dbg += "${libdir}/device-mapper/.debug" 87FILES_${PN}-scripts = " \
88 ${sbindir}/blkdeactivate \
89 ${sbindir}/fsadm \
90 ${sbindir}/lvmconf \
91 ${sbindir}/lvmdump \
92"
86 93
87RDEPENDS_${PN} = "bash" 94RDEPENDS_${PN}-scripts = "${PN} (= ${EXTENDPKGV}) bash"
95RRECOMMENDS_${PN} = "${PN}-scripts (= ${EXTENDPKGV})"
88 96
89CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf" 97CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf"