GNU bug report logs - #53643
[PATCH] Gnu: Elixir: Use previous method for detecting sh

Previous Next

Package: guix-patches;

Reported by: John Hamelink <me <at> johnhame.link>

Date: Sun, 30 Jan 2022 21:18:01 UTC

Severity: normal

Tags: patch

Merged with 53708

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Maxime Devos <maximedevos <at> telenet.be>
To: John Hamelink <me <at> johnhame.link>, 53643 <at> debbugs.gnu.org
Subject: [bug#53643] [PATCH] Gnu: Elixir: Use previous method for detecting sh
Date: Sun, 30 Jan 2022 23:20:38 +0100
[Message part 1 (text/plain, inline)]
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.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.