mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
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>
This commit is contained in:
committed by
Martin Jansa
parent
402ee2143c
commit
6370feda0d
@@ -73,6 +73,8 @@ do_install_append() {
|
||||
fi
|
||||
}
|
||||
|
||||
PACKAGE_BEFORE_PN = "${PN}-scripts"
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}"
|
||||
SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'lvmetad', 'lvm2-lvmetad.socket lvm2-pvscan@.service', '', d)} \
|
||||
@@ -82,8 +84,14 @@ SYSTEMD_AUTO_ENABLE = "disable"
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev"
|
||||
FILES_${PN}-dbg += "${libdir}/device-mapper/.debug"
|
||||
FILES_${PN}-scripts = " \
|
||||
${sbindir}/blkdeactivate \
|
||||
${sbindir}/fsadm \
|
||||
${sbindir}/lvmconf \
|
||||
${sbindir}/lvmdump \
|
||||
"
|
||||
|
||||
RDEPENDS_${PN} = "bash"
|
||||
RDEPENDS_${PN}-scripts = "${PN} (= ${EXTENDPKGV}) bash"
|
||||
RRECOMMENDS_${PN} = "${PN}-scripts (= ${EXTENDPKGV})"
|
||||
|
||||
CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf"
|
||||
|
||||
Reference in New Issue
Block a user