1 |
bin/ebuild-helpers/emake: force SHELL to be set |
2 |
|
3 |
On Prefix systems /bin/sh can be anything, including very ancient. So |
4 |
ensure we're running with bash, since that's what Gentoo Linux is |
5 |
expecting /bin/sh to be (by default, at least). |
6 |
|
7 |
Provide a fallback for the (near impossible) case that we use a bash |
8 |
that doesn't set BASH, or when we don't use bash at all. This is not |
9 |
expected, though, as we explicitly require bash throughout all Portage, |
10 |
so we don't really care about using a non-Prefixed one, for this really |
11 |
shouldn't happen. |
12 |
|
13 |
Signed-off-by: Fabian Groffen <grobian@g.o> |
14 |
|
15 |
diff --git a/bin/ebuild-helpers/emake b/bin/ebuild-helpers/emake |
16 |
index 60718a2e4..21da85845 100755 |
17 |
--- a/bin/ebuild-helpers/emake |
18 |
+++ b/bin/ebuild-helpers/emake |
19 |
@@ -12,7 +12,7 @@ |
20 |
source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1 |
21 |
|
22 |
cmd=( |
23 |
- ${MAKE:-make} ${MAKEOPTS} "$@" ${EXTRA_EMAKE} |
24 |
+ ${MAKE:-make} SHELL="${BASH:-/bin/bash}" ${MAKEOPTS} "$@" ${EXTRA_EMAKE} |
25 |
) |
26 |
|
27 |
if [[ ${PORTAGE_QUIET} != 1 ]] ; then |
28 |
|
29 |
-- |
30 |
Fabian Groffen |
31 |
Gentoo on a different level |