[OE-core] [PATCH 5/7] bitbake.conf: unexport SHELL
Christopher Larson
kergoth at gmail.com
Mon Aug 24 22:18:37 UTC 2015
From: Christopher Larson <chris_larson at mentor.com>
The user's shell shouldn't be allowed to affect the build (and it can break
the flock command and possibly more, if the user's shell isn't POSIX
compliant).
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
---
meta/conf/bitbake.conf | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 1407c5f..4250ca5 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -780,6 +780,11 @@ TARGET_ARCH[unexport] = "1"
# (breaks sysvinit at least)
DISTRO[unexport] = "1"
+# Make sure SHELL isn't exported
+# (can break any number of things if the user's shell isn't POSIX-compliant,
+# including the flock command). The user's shell shouldn't affect our builds.
+SHELL[unexport] = "1"
+
# Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
--
2.2.1
More information about the Openembedded-core
mailing list