mirror of
https://git.yoctoproject.org/poky
synced 2026-02-13 04:03:03 +01:00
All of them seem like very old, very oe specific tweaks; please adjust otherwise. (From OE-Core rev: c9c0f7569559aa334f7b8f4486b70ead13226c11) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
From 0aac3047cd7681d610b22d79501c297fa3433148 Mon Sep 17 00:00:00 2001
|
|
From: Ross Burton <ross.burton@intel.com>
|
|
Date: Thu, 12 Mar 2020 17:25:41 +0000
|
|
Subject: [PATCH 2/7] m4sh: prefer bash over sh
|
|
|
|
_AS_DETECT_BETTER_SHELL looks for a good shell to use, and tries to look for
|
|
'sh' before 'bash'. Whilst for many systems sh is a symlink to bash,
|
|
there are many where sh is a symlink to a more minimal sh implementation.
|
|
|
|
For example, Debian by default has /bin/sh -> /bin/dash: dash is a faster
|
|
shell to start (which makes a notable difference to boot speed) but is not
|
|
as fast as bash at executing long scripts (and configure scripts are not
|
|
known for their conciseness).
|
|
|
|
Change the search order to bash then sh, so that a known-good shell (bash)
|
|
is used if available over something which is merely POSIX compliant.
|
|
|
|
Upstream-Status: Inappropriate [oe specific]
|
|
---
|
|
lib/m4sugar/m4sh.m4 | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
|
|
index 9d543952..84ef84a9 100644
|
|
--- a/lib/m4sugar/m4sh.m4
|
|
+++ b/lib/m4sugar/m4sh.m4
|
|
@@ -230,7 +230,7 @@ dnl Remove any tests from suggested that are also required
|
|
[_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"; } &&
|
|
--
|
|
2.25.1
|
|
|