Subject: Re: [bug#53643] [PATCH] Gnu: Elixir: Use previous method for detecting sh

From: Maxime Devos <[email-masked]>
Date: Sun, 30 Jan 2022 23:20:38 +0100

John Hamelink schreef op zo 30-01-2022 om 21:15 [+0000]:
> - (string-append "#!" (search-input-file inputs "sh"))))
> + (string-append "#!" (which "sh"))))

'which' looks in $PATH, which is formed by native-inputs,
so this change is incorrect when cross-compiling.

Instead, I suggest:

- (string-append "#!" (search-input-file inputs "sh"))))
+ (string-append "#!" (search-input-file inputs "bin/sh"))))

Greetings,
Maxime.