diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/autoconf/autoconf/preferbash.patch | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/autoconf/autoconf/preferbash.patch')
-rw-r--r-- | meta/recipes-devtools/autoconf/autoconf/preferbash.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-devtools/autoconf/autoconf/preferbash.patch b/meta/recipes-devtools/autoconf/autoconf/preferbash.patch new file mode 100644 index 0000000000..41a623ac56 --- /dev/null +++ b/meta/recipes-devtools/autoconf/autoconf/preferbash.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | This value is used to determine CONFIG_SHELL and SHELL which may get exported into | ||
2 | scripts shared via sstate onto other systems. | ||
3 | |||
4 | Some systems have /bin/sh -> dash and others /bin/sh -> bash. Bash is preferred | ||
5 | but sometimes we can sometimes end up exporting /bin/sh yet use bashisms. | ||
6 | |||
7 | This patch puts bash first in the search results which avoids the bash/dash confusion. | ||
8 | |||
9 | RP 2012/9/23 | ||
10 | |||
11 | Index: autoconf-2.69/lib/m4sugar/m4sh.m4 | ||
12 | =================================================================== | ||
13 | --- autoconf-2.69.orig/lib/m4sugar/m4sh.m4 2012-03-07 17:35:26.000000000 +0000 | ||
14 | +++ autoconf-2.69/lib/m4sugar/m4sh.m4 2013-09-23 16:12:38.853597515 +0000 | ||
15 | @@ -229,7 +229,7 @@ | ||
16 | [_AS_PATH_WALK([/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH], | ||
17 | [case $as_dir in @%:@( | ||
18 | /*) | ||
19 | - for as_base in sh bash ksh sh5; do | ||
20 | + for as_base in bash sh ksh sh5; do | ||
21 | # Try only shells that exist, to save several forks. | ||
22 | as_shell=$as_dir/$as_base | ||
23 | AS_IF([{ test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||