From: "Théo Tyburn" <theo.tyburn@posteo.net>
To: 74450@debbugs.gnu.org
Subject: bug#74450: patch-shebang does not work with '/usr/bin/env -S'
Date: Thu, 21 Nov 2024 00:42:20 +0000 [thread overview]
Message-ID: <87bjy95ser.fsf@posteo.net> (raw)
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
https://www.gnu.org/software/coreutils/manual/html_node/env-invocation.html#g_t_002dS_002f_002d_002dsplit_002dstring-usage-in-scripts
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
reply other threads:[~2024-11-21 0:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bjy95ser.fsf@posteo.net \
--to=theo.tyburn@posteo.net \
--cc=74450@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.