mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
Patch-shebang: Do not add space after interpreter without argument.
* guix/build/utils.scm (patch-shebang): Do not add a space after a command interpreter not followed by an argument; this made two tests of coreutils fail.
This commit is contained in:
parent
11996d85d3
commit
ca8def6e6f
1 changed files with 3 additions and 1 deletions
|
@ -486,7 +486,9 @@ (define (patch p interpreter rest-of-line)
|
|||
"patch-shebang: ~a: changing `~a' to `~a'~%"
|
||||
file interp bin)
|
||||
(patch p bin
|
||||
(string-append " " arg1 rest)))))
|
||||
(if (string-null? arg1)
|
||||
""
|
||||
(string-append " " arg1 rest))))))
|
||||
(begin
|
||||
(format (current-error-port)
|
||||
"patch-shebang: ~a: warning: no binary for interpreter `~a' found in $PATH~%"
|
||||
|
|
Loading…
Reference in a new issue