configure cannot probe for a pipefail-capable shell when
cross compiling; pass --with-shell=/bin/bash and add bash
to runtime deps.

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-support/genimage/genimage_20.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/genimage/genimage_20.bb 
b/meta-oe/recipes-support/genimage/genimage_20.bb
index 8e7f59e9f1..4ef402a305 100644
--- a/meta-oe/recipes-support/genimage/genimage_20.bb
+++ b/meta-oe/recipes-support/genimage/genimage_20.bb
@@ -12,10 +12,15 @@ DEPENDS = "libconfuse"
 SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/genimage-${PV}.tar.xz"
 SRC_URI[sha256sum] = 
"397545be2fa52d482c5fba9a11897c61324bfc559ea0efb700b9edba7a807b55"
 
-EXTRA_OECONF = "--enable-largefile"
+# When cross compiling, configure cannot probe for a shell that supports
+# "set -o pipefail", so it must be specified explicitly. genimage uses this
+# shell at runtime to run command pipelines, so point it at bash.
+EXTRA_OECONF = "--enable-largefile --with-shell=/bin/bash"
 
 inherit pkgconfig autotools gettext github-releases
 
+RDEPENDS:${PN}:append:class-target = " bash"
+
 GITHUB_BASE_URI = "https://github.com/pengutronix/genimage/releases";
 UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)*)"
 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#127918): 
https://lists.openembedded.org/g/openembedded-devel/message/127918
Mute This Topic: https://lists.openembedded.org/mt/120018141/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to