lvm2: Add dependency on bash
PATCH v2 1/1 lvm2: Add dependency on bash
Fixes rootfs generation error if bash is not included in the image.
--- meta-oe/recipes-support/lvm2/lvm2.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/lvm2/lvm2.inc +2 -2
@@ -1,10 +1,10 @@ SECTION = "utils" DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux." -DEPENDS = "udev" +DEPENDS = "udev bash" LICENSE = "GPLv2 & LGPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24" -INC_PR = "r1" +INC_PR = "r2" S = "${WORKDIR}/LVM2.${PV}"
Signature · 1 line
1.7.9.5
Quoted 1 line · Mihai Prica
Fixes rootfs generation error if bash is not included in the image.
With rpm right?
Find which script it has in shebang and add bash only to that package RDEPENDS, if it's something which isn't always needed put it in separate package.
Quoted 30 lines
Signed-off-by Mihai Prica <[email protected]>--- meta-oe/recipes-support/lvm2/lvm2.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta-oe/recipes-support/lvm2/lvm2.inc +2
-2@@ -1,10 +1,10 @@ SECTION = "utils" DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux." -DEPENDS = "udev" +DEPENDS = "udev bash" LICENSE = "GPLv2 & LGPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24" -INC_PR = "r1" +INC_PR = "r2" S = "${WORKDIR}/LVM2.${PV}"Signature · 6 lines
1.7.9.5 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 4 lines · On Friday 26 July 2013 19:43:45 Martin Jansa wrote:
Quoted 1 line · Mihai Prica
Fixes rootfs generation error if bash is not included in the image.
With rpm right?
If it's what you're suggesting technically it's broken with any package backend, to some degree.
Quoted 3 lines
Find which script it has in shebang and add bash only to that package RDEPENDS, if it's something which isn't always needed put it in separate package.
Or if practical patch the script(s) to remove the bashisms and change the shebang to #!/bin/sh instead.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 11 lines
-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]Quoted 4 lines · On Friday 26 July 2013 19:43:45 Martin Jansa wrote:
Quoted 1 line · Mihai Prica
Fixes rootfs generation error if bash is not included in the image.
With rpm right?
If it's what you're suggesting technically it's broken with any package backend, to some degree.
For the tests I used rpm.
Quoted 7 lines
Quoted 4 lines
Find which script it has in shebang and add bash only to that package RDEPENDS, if it's something which isn't always needed put it in separate package.
Or if practical patch the script(s) to remove the bashisms and change the shebang to #!/bin/sh instead.
I've looked over the scripts and there seem to be 4 files which are using bash. The files are part of the core lvm2 package. I've used checkbashism and there are not many changes that need to be done to switch to /bin/sh. I'll send an updated patch.
Thanks,
Mihai
Quoted 8 lines
Cheers,
Paul--
Paul Eggleton
Intel Open Source Technology Centre
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Prica, MihaiQuoted 5 lines
-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]Quoted 1 line · On Friday 26 July 2013 19:43:45 Martin Jansa wrote:
On Fri, Jul 26, 2013 at 05:25:29PM +0300, Mihai Prica wrote:
Quoted 13 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Fixes rootfs generation error if bash is not included in the image.
With rpm right?
If it's what you're suggesting technically it's broken with any package backend, to some degree.
For the tests I used rpm.
Quoted 4 lines
Quoted 4 lines
Find which script it has in shebang and add bash only to that package RDEPENDS, if it's something which isn't always needed put it in separate package.
From what I discovered, the scripts in question provide some of the core functionality for the package so there is no point in splitting them.
Quoted 8 lines
Quoted 3 lines
Or if practical patch the script(s) to remove the bashisms and change the shebang to #!/bin/sh instead.
I've looked over the scripts and there seem to be 4 files which are using bash. The files are part of the core lvm2 package. I've used checkbashism and there are not many changes that need to be done to switch to
/bin/sh. I'll send an updated patch.
I've taken a deeper look into the problem and it seems there are some specific bashisms that are hard to replace and that might break the functionality.
I've sent an updated patch changing the DEPENDS to an RDEPENDS.
Thanks,
Mihai
Quoted 16 lines
Thanks,
MihaiQuoted 8 lines
Cheers,
Paul--
Paul Eggleton
Intel Open Source Technology Centre_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 8 lines · Paul Eggleton
Quoted 4 lines · On Friday 26 July 2013 19:43:45 Martin Jansa wrote:
Quoted 1 line · Mihai Prica
Fixes rootfs generation error if bash is not included in the image.
With rpm right?
If it's what you're suggesting technically it's broken with any package backend, to some degree.
Agreed, I was just commenting on it because "rootfs generation error if bash is not included" is quite vague and it could be also bashism in postinst script.
Quoted 14 lines
Quoted 3 lines
Find which script it has in shebang and add bash only to that package RDEPENDS, if it's something which isn't always needed put it in separate package.
Or if practical patch the script(s) to remove the bashisms and change the shebang to #!/bin/sh instead.
Cheers,
PaulSignature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]