Files
poky/meta/recipes-devtools/autoconf/autoconf/preferbash.patch
Richard Purdie 96e488b76a python3/gcc/autoconf: Fix Upstream-Status in some patches I authored
(From OE-Core rev: 337798fa5c0a1d1e745a143f6a9f398b07f0628f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-07 15:14:34 +01:00

26 lines
1.1 KiB
Diff

This value is used to determine CONFIG_SHELL and SHELL which may get exported into
scripts shared via sstate onto other systems.
Some systems have /bin/sh -> dash and others /bin/sh -> bash. Bash is preferred
but sometimes we can sometimes end up exporting /bin/sh yet use bashisms.
This patch puts bash first in the search results which avoids the bash/dash confusion.
RP 2012/9/23
Upstream-Status: Inappropriate [OE specific configuration]
Index: autoconf-2.69/lib/m4sugar/m4sh.m4
===================================================================
--- autoconf-2.69.orig/lib/m4sugar/m4sh.m4 2012-03-07 17:35:26.000000000 +0000
+++ autoconf-2.69/lib/m4sugar/m4sh.m4 2013-09-23 16:12:38.853597515 +0000
@@ -229,7 +229,7 @@
[_AS_PATH_WALK([/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH],
[case $as_dir in @%:@(
/*)
- for as_base in sh bash ksh sh5; do
+ for as_base in bash sh ksh sh5; do
# Try only shells that exist, to save several forks.
as_shell=$as_dir/$as_base
AS_IF([{ test -f "$as_shell" || test -f "$as_shell.exe"; } &&