Setting POSIX_SHELL to "/usr/bin/env sh" fails when tested in
libopts.m4 with test -x "$POSIX_SHELL", because test -x needs
a file as an argument (e.g. test -x FILE).

Due to the above failure, the build system will use a shell available
in tmp/hosttools, which can generate shebang lines longer than 128.

This patch sets the POSIX_SHELL variable to "/bin/sh".

Signed-off-by: Gabriel Ionescu <gabriel.ione...@enea.com>
---
 meta/recipes-devtools/autogen/autogen-native_5.18.12.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/autogen/autogen-native_5.18.12.bb 
b/meta/recipes-devtools/autogen/autogen-native_5.18.12.bb
index 853477c..9be03fc 100644
--- a/meta/recipes-devtools/autogen/autogen-native_5.18.12.bb
+++ b/meta/recipes-devtools/autogen/autogen-native_5.18.12.bb
@@ -31,7 +31,7 @@ inherit autotools texinfo native pkgconfig
 export GUILE_LOAD_PATH = "${STAGING_DATADIR_NATIVE}/guile/2.0"
 export GUILE_LOAD_COMPILED_PATH = "${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache"

-export POSIX_SHELL = "/usr/bin/env sh"
+export POSIX_SHELL = "/bin/sh"

 do_install_append () {
        create_wrapper ${D}/${bindir}/autogen \
--
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to