[PATCH] emake: explicitly set SHELL
Fabian Groffen <[email protected]> Mon, 25 Jul 2022 17:28:05 +0200
| Newsgroups | gmane.linux.gentoo.portage.devel |
|---|---|
| Organization | Gentoo Foundation, Inc. |
| Message-ID | <Yt62hQj/[email protected]> |
--pkuARb8NuREgrWbV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable bin/ebuild-helpers/emake: force SHELL to be set On Prefix systems /bin/sh can be anything, including very ancient. So ensure we're running with bash, since that's what Gentoo Linux is expecting /bin/sh to be (by default, at least). Provide a fallback for the (near impossible) case that we use a bash that doesn't set BASH, or when we don't use bash at all. This is not expected, though, as we explicitly require bash throughout all Portage, so we don't really care about using a non-Prefixed one, for this really shouldn't happen. Signed-off-by: Fabian Groffen <[email protected]> diff --git a/bin/ebuild-helpers/emake b/bin/ebuild-helpers/emake index 60718a2e4..21da85845 100755 --- a/bin/ebuild-helpers/emake +++ b/bin/ebuild-helpers/emake @@ -12,7 +12,7 @@ source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1 =20 cmd=3D( - ${MAKE:-make} ${MAKEOPTS} "$@" ${EXTRA_EMAKE} + ${MAKE:-make} SHELL=3D"${BASH:-/bin/bash}" ${MAKEOPTS} "$@" ${EXTRA_EMAKE} ) =20 if [[ ${PORTAGE_QUIET} !=3D 1 ]] ; then --=20 Fabian Groffen Gentoo on a different level --pkuARb8NuREgrWbV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEELUvHd/Gtp7LaU1vuzpXahU5EQpMFAmLetoUACgkQzpXahU5E QpOOKAf+Ki96FLz/KP0QrsKZBLRKHJu3lt93bndPktmtknCBci86RkRAtAA46ZUn AGaEfOQhYkkLROct50VMzIXF4qNad0XEn+JBDTBIm8ElAvb+MA1pKqTFehtoypnm z60tlvixMq8u1Ff2o5FqjXEHkiK3utqEXpylJgyTkDbcz/ubUFTBiimci4oQtpsN 6xiEkMR2onnmr9fV5LNEI0iX3t66ERtAfbV5j1sCuVuYG6w4e9huBBZ613c/HFOO RmxLTB0KdE8SnKQMZgwbA5c4mop5p30qzg0nD3rnmfxKdISW0CdW/V8cVixifI5l NrRDNJ41R/6Wiohh0jXzN9f0+Y0SIA== =dayR -----END PGP SIGNATURE----- --pkuARb8NuREgrWbV--