Michael Pratt 665fe2f818
prereq-build: fix inconsistent value of $PATH
In the recipe SetupHostCommand for checking
and creating symlinks, $PATH was only overridden
for one of several commands.

This causes the symlinks to be included
in the paths to pick a program from
when the check was repeated, because
staging_dir/host/bin was included in $PATH,
but only *sometimes*.

When the check ran again, the command succeded
with a $PATH including the symlink,
(eval "$$$$$$$$cmd")
while the path to the program was evaluated
with a $PATH NOT including the symlink,
(bin=...)
causing the symlink to be relinked incorrectly,
instead of passing as exactly the same.

Coincidentally, this was only a problem
if the symlink targeted the alternative
program with a different name.

By overriding the value of $PATH at the invocation of Make,
it will apply to the entire environment of the checks.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2023-06-05 08:31:48 +02:00
..
2023-05-28 13:19:10 +02:00
2022-01-17 09:14:26 +01:00
2021-02-05 14:54:47 +01:00
2021-02-05 14:54:47 +01:00
2023-05-20 21:29:25 +02:00
2023-05-31 07:31:41 +02:00
2023-06-02 21:23:12 +02:00
2023-05-28 13:19:10 +02:00
2022-04-09 15:56:04 +02:00
2023-02-18 17:12:30 +01:00
2022-11-27 00:52:06 +01:00
2023-04-05 08:24:49 -03:00
2023-06-05 08:31:47 +02:00
2023-05-28 13:19:10 +02:00
2023-06-05 08:31:47 +02:00
2021-10-24 18:20:50 +02:00
2021-02-05 14:54:47 +01:00