[OE-core] [PATCH] bash: define NON_INTERACTIVE_LOGIN_SHELLS

wenzong.fan at windriver.com wenzong.fan at windriver.com
Tue Jul 7 05:56:48 UTC 2015


From: Li Wang <li.wang at windriver.com>

Allow login shells to read the startup files, even if they are not
interactive.

The patch comes from:
* bash-3.2-30.fc10.src.rpm - bash-2.03-profile.patch

Signed-off-by: Li Wang <li.wang at windriver.com>
---
 .../bash/bash/bash-2.03-profile.patch              | 24 ++++++++++++++++++++++
 meta/recipes-extended/bash/bash_4.3.bb             |  1 +
 2 files changed, 25 insertions(+)
 create mode 100644 meta/recipes-extended/bash/bash/bash-2.03-profile.patch

diff --git a/meta/recipes-extended/bash/bash/bash-2.03-profile.patch b/meta/recipes-extended/bash/bash/bash-2.03-profile.patch
new file mode 100644
index 0000000..a7d5fe8
--- /dev/null
+++ b/meta/recipes-extended/bash/bash/bash-2.03-profile.patch
@@ -0,0 +1,24 @@
+bash: define NON_INTERACTIVE_LOGIN_SHELLS
+
+Allow login shells to read the startup files, even if they are not
+interactive.
+
+The patch comes from:
+* bash-3.2-30.fc10.src.rpm - bash-2.03-profile.patch
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Li Wang <li.wang at windriver.com>
+---
+diff -up bash-3.2/config-top.h.profile bash-3.2/config-top.h
+--- bash-3.2/config-top.h.profile	2008-07-17 13:35:39.000000000 +0200
++++ bash-3.2/config-top.h	2008-07-17 13:42:18.000000000 +0200
+@@ -26,6 +26,8 @@
+    what POSIX.2 specifies. */
+ #define CONTINUE_AFTER_KILL_ERROR
+ 
++#define NON_INTERACTIVE_LOGIN_SHELLS
++
+ /* Define BREAK_COMPLAINS if you want the non-standard, but useful
+    error messages about `break' and `continue' out of context. */
+ #define BREAK_COMPLAINS
diff --git a/meta/recipes-extended/bash/bash_4.3.bb b/meta/recipes-extended/bash/bash_4.3.bb
index 23d3197..622058a 100644
--- a/meta/recipes-extended/bash/bash_4.3.bb
+++ b/meta/recipes-extended/bash/bash_4.3.bb
@@ -41,6 +41,7 @@ SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \
            file://mkbuiltins_have_stringize.patch \
            file://build-tests.patch \
            file://test-output.patch \
+           file://bash-2.03-profile.patch \
            file://run-ptest \
            "
 
-- 
1.9.1




More information about the Openembedded-core mailing list