Skip to contentSkip to conversation

lvm2: Avoid an unnecessary dependency on bash

PATCH New Peter Kjellerstedt 1 participant 1 message Mar 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lvm2: Avoid an unnecessary dependency on bash

Rather than having the lvm2 package depend on bash, modify the init scripts it may contain to use /bin/sh instead of /bin/bash.

---
 meta-oe/recipes-support/lvm2/lvm2.inc              |   2 +-
 .../lvm2/0001-Avoid-bashisms-in-init-scripts.patch | 182 +++++++++++++++++++++
 2 files changed, 183 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-support/lvm2/lvm2/0001-Avoid-bashisms-in-init-scripts.patch
meta-oe/recipes-support/lvm2/lvm2.inc +1 -1
index 3e795525f..75fc51f8d 100644
@@ -12,6 +12,7 @@ SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \
            file://0002-Guard-use-of-mallinfo-with-__GLIBC__.patch \
            file://0003-include-fcntl.h-for-O_-defines-and-fcntl-signature.patch \
            file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \
+           file://0001-Avoid-bashisms-in-init-scripts.patch \
            "
 S = "${WORKDIR}/LVM2.${PV}"
 
@@ -98,7 +99,6 @@ FILES_libdevmapper-dev = " \
 "
 
 RDEPENDS_${PN}-scripts = "${PN} (= ${EXTENDPKGV}) bash"
-RDEPENDS_${PN} = " bash"
 RDEPENDS_libdevmapper-dev = "libdevmapper (= ${EXTENDPKGV})"
 RRECOMMENDS_${PN} = "${PN}-scripts (= ${EXTENDPKGV})"
 
meta-oe/recipes-support/lvm2/lvm2/0001-Avoid-bashisms-in-init-scripts.patch new file +182 -0

182 lines not on this page · raw message

Signature · 1 line
2.12.0