autogen-native: backport autogen-native POSIX_SHELL fix
[AGL/meta-agl.git] / meta-agl / recipes-devtools / autogen / files / 0003-autoopts-mk-tpl-config.sh-fix-shell-path.patch
1 From df4f5ccc376a630b1a587a8ca3b1f35a305867dd Mon Sep 17 00:00:00 2001
2 From: Robert Berger <robert.berger@ReliableEmbeddedSystems.com>
3 Date: Wed, 23 Aug 2017 07:19:03 +0000
4 Subject: [PATCH] autoopts/mk-tpl-config.sh: fix shell path
5
6 POSIX_SHELL as shebang doesn't work when it is longer than
7 BINPRM_BUF_SIZE which is 128 usually. So use "/bin/sh".
8
9 Signed-off-by: Robert Berger <robert.berger@ReliableEmbeddedSystems.com>
10 ---
11  autoopts/mk-tpl-config.sh | 2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/autoopts/mk-tpl-config.sh b/autoopts/mk-tpl-config.sh
15 index c4708a2..550870e 100755
16 --- a/autoopts/mk-tpl-config.sh
17 +++ b/autoopts/mk-tpl-config.sh
18 @@ -102,7 +102,7 @@ fix_scripts() {
19                   sed 1d $f
20                   ;;
21  
22 -        */sh )   echo '#!' ${POSIX_SHELL}
23 +        */sh )   echo '#!/bin/sh'
24                   sed 1d $f
25                   ;;
26  
27 -- 
28 2.7.4
29