summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/autogen/autogen
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-04-06 03:05:55 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-10 23:00:43 +0100
commit607bc5958816624731ed2258dd4cdaef7d20d5df (patch)
tree301fb6917e291aeec2216f4423b677affd4c747b /meta/recipes-devtools/autogen/autogen
parent7daf525d3772636430818c0e33befd97f03e88c6 (diff)
downloadpoky-607bc5958816624731ed2258dd4cdaef7d20d5df.tar.gz
autogen-native: fix POSIX_SHELL and perl
The shebang's length is usually 128 as defined in /usr/include/linux/binfmts.h: #define BINPRM_BUF_SIZE 128 So there would be errors when /path/to/hosttools/perl is longer than 128. This patch fixes the problem when POSIX_SHELL and perl are used as the interpreters. (From OE-Core rev: 055838283349530e6f60f4169d9190aa5b59b190) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/autogen/autogen')
-rw-r--r--meta/recipes-devtools/autogen/autogen/0002-autoopts-mk-tpl-config.sh-fix-perl-path.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/autogen/autogen/0002-autoopts-mk-tpl-config.sh-fix-perl-path.patch b/meta/recipes-devtools/autogen/autogen/0002-autoopts-mk-tpl-config.sh-fix-perl-path.patch
new file mode 100644
index 0000000000..d5fe143ce4
--- /dev/null
+++ b/meta/recipes-devtools/autogen/autogen/0002-autoopts-mk-tpl-config.sh-fix-perl-path.patch
@@ -0,0 +1,32 @@
1From 9f69f3f5ef22bf1bcffb0e651efc260889cfaa46 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Mon, 13 Mar 2017 20:33:30 -0700
4Subject: [PATCH] autoopts/mk-tpl-config.sh: fix perl path
5
6Use "which perl" as shebang doesn't work when it is longer than
7BINPRM_BUF_SIZE which is 128 usually. So use "/usr/bin/env perl" to
8instead of.
9
10Upstream-Status: Pending
11
12Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13---
14 autoopts/mk-tpl-config.sh | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/autoopts/mk-tpl-config.sh b/autoopts/mk-tpl-config.sh
18index 093e808..8dfc6dd 100755
19--- a/autoopts/mk-tpl-config.sh
20+++ b/autoopts/mk-tpl-config.sh
21@@ -98,7 +98,7 @@ fix_scripts() {
22 st=`sed 1q $f`
23
24 case "$st" in
25- *perl ) echo '#!' `which perl`
26+ *perl ) echo '#!/usr/bin/env perl'
27 sed 1d $f
28 ;;
29
30--
312.10.2
32