patch-shebang does not work with '/usr/bin/env -S'

  • Open
  • quality assurance status badge
Details
One participant
  • Théo Tyburn
Owner
unassigned
Submitted by
Théo Tyburn
Severity
normal

Debbugs page

T
T
Théo Tyburn wrote 10 hours ago
(address . bug-guix@gnu.org)
87bjy95ser.fsf@posteo.net
Hi guix,

I noticed that 'patch-shebang' in (guix build utils) does not work if
the shebang is something like '#!/usr/bin/env -S python3 -u'. So it is
not able to patch shebangs with multiple arguments

With the shebang above I get this error in the build phase:
"patch-shebang: main.py: warning: no binary for interpreter `-S' found
in $PATH". By looking at the function, this makes sense since in the
let* bindings 'cmd' is bind to 'arg1' which is just '-S'. So the fix
would not be too hard to implement.

Cheers,

Théo
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 74450@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 74450
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch