summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@geanix.com>2018-11-07 13:22:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-14 11:14:39 +0000
commit68dfc310f52566be0dbcf9711ecc65d65a919de5 (patch)
treebdfd146bbdc619064c197dd8e32f36773133adf1 /meta/recipes-extended/shadow
parent88ac8e533438532ff6cad3285cdd16479e70642d (diff)
downloadopenembedded-core-contrib-68dfc310f52566be0dbcf9711ecc65d65a919de5.tar.gz
shadow: improve reproducibility by hard-coding shell path
The shadow configure script tries really hard to detect the running shell to make sure it doesn't do unsupported calls. On my system the shell is detected as /bin/sh, while a build in an ubuntu docker it resolves to /bin/bash. And since the shell path is baked into the target binaries through config.h, the build becomes inreproducible. Fix reproducibility by hard-coding the shell to be /bin/sh (From OE-Core rev: 5e3e30446b6abd98d1d3e9bee818203a6a206634) Signed-off-by: Martin Hundebøll <martin@geanix.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow')
-rw-r--r--meta/recipes-extended/shadow/shadow.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index 0fa80a282a..09c37ef8a3 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -45,6 +45,8 @@ PAM_SRC_URI = "file://pam.d/chfn \
inherit autotools gettext
+export CONFIG_SHELL="/bin/sh"
+
EXTRA_OECONF += "--without-audit \
--without-libcrack \
--without-selinux \