1 |
On Mon, Jul 25, 2022 at 11:28 AM Fabian Groffen <grobian@g.o> wrote: |
2 |
> |
3 |
> bin/ebuild-helpers/emake: force SHELL to be set |
4 |
> |
5 |
> On Prefix systems /bin/sh can be anything, including very ancient. So |
6 |
> ensure we're running with bash, since that's what Gentoo Linux is |
7 |
> expecting /bin/sh to be (by default, at least). |
8 |
> |
9 |
> Provide a fallback for the (near impossible) case that we use a bash |
10 |
> that doesn't set BASH, or when we don't use bash at all. This is not |
11 |
> expected, though, as we explicitly require bash throughout all Portage, |
12 |
> so we don't really care about using a non-Prefixed one, for this really |
13 |
> shouldn't happen. |
14 |
|
15 |
I'm a little on the fence about this: in theory, Makefiles should use |
16 |
POSIX-compatible shell commands unless the author explicitly chooses |
17 |
to use bash. |
18 |
|
19 |
I guess we can get away with this since ebuilds always require bash anyway. |