* [PATCH] bash: define NON_INTERACTIVE_LOGIN_SHELLS
@ 2015-07-07 5:56 wenzong.fan
2015-07-07 7:18 ` Olof Johansson
0 siblings, 1 reply; 2+ messages in thread
From: wenzong.fan @ 2015-07-07 5:56 UTC (permalink / raw)
To: openembedded-core
From: Li Wang <li.wang@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@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@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bash: define NON_INTERACTIVE_LOGIN_SHELLS
2015-07-07 5:56 [PATCH] bash: define NON_INTERACTIVE_LOGIN_SHELLS wenzong.fan
@ 2015-07-07 7:18 ` Olof Johansson
0 siblings, 0 replies; 2+ messages in thread
From: Olof Johansson @ 2015-07-07 7:18 UTC (permalink / raw)
To: wenzong.fan@windriver.com; +Cc: openembedded-core@
Excerpts from wenzong.fan@windriver.com's message of 2015-07-07 07:56:48 +0200:
> From: Li Wang <li.wang@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
How is this different from
commit 3985cef24de2da3b6895e67f4d577d4806c032b0
Author: Chen Qi <Qi.Chen@windriver.com>
Date: Tue Apr 21 17:30:47 2015 +0800
bash: explicitly define NON_INTERACTIVE_LOGIN_SHELLS in CFLAGS
If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the
startup files, even if they are not interactive.
This is the behaviour of other major distros like Ubuntu and Fedora.
We also need to set it so that when executing `su -l xxx -c env' command,
/etc/profile is parsed.
[YOCTO #5359]
[YOCTO #7137]
?
--
olof johansson
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-07 7:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 5:56 [PATCH] bash: define NON_INTERACTIVE_LOGIN_SHELLS wenzong.fan
2015-07-07 7:18 ` Olof Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox