X-Loop: help-debbugs@HIDDEN
Subject: bug#74450: patch-shebang does not work with '/usr/bin/env -S'
Resent-From: =?UTF-8?Q?Th=C3=A9o?= Tyburn <theo.tyburn@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 21 Nov 2024 00:43:02 +0000
Resent-Message-ID: <handler.74450.B.17321497655581 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 74450
X-GNU-PR-Package: guix
X-GNU-PR-Keywords:
To: 74450 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17321497655581
(code B ref -1); Thu, 21 Nov 2024 00:43:02 +0000
Received: (at submit) by debbugs.gnu.org; 21 Nov 2024 00:42:45 +0000
Received: from localhost ([127.0.0.1]:48397 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1tDvHQ-0001Rw-TA
for submit <at> debbugs.gnu.org; Wed, 20 Nov 2024 19:42:45 -0500
Received: from lists.gnu.org ([209.51.188.17]:36258)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <theo.tyburn@HIDDEN>) id 1tDvHP-0001Rp-1T
for submit <at> debbugs.gnu.org; Wed, 20 Nov 2024 19:42:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <theo.tyburn@HIDDEN>)
id 1tDvHO-0003mv-EE
for bug-guix@HIDDEN; Wed, 20 Nov 2024 19:42:42 -0500
Received: from mout01.posteo.de ([185.67.36.65])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <theo.tyburn@HIDDEN>)
id 1tDvHM-0005zq-HS
for bug-guix@HIDDEN; Wed, 20 Nov 2024 19:42:42 -0500
Received: from submission (posteo.de [185.67.36.169])
by mout01.posteo.de (Postfix) with ESMTPS id E1528240027
for <bug-guix@HIDDEN>; Thu, 21 Nov 2024 01:42:25 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
t=1732149745; bh=xi6TGu5Z99xt2Cq8I0D7mCIC9sYAPep/+61dMisQj84=;
h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:
Content-Transfer-Encoding:From;
b=PI3PqgMzu6/+T+jWXdpSMBHaGnIebncjIkGySF9nU5Pir7TSF+FkdsYF1WoDT5J8s
FdbeOLg13fmiCEKGjImXTNq+Zqi2mFQyqbdyPfKoYVbkr6k7vIyRKJOhnlvITnZuy4
zel2LKXqWqvM7nN4kO0GnKNLg33vMSa8piLyI0GuzyPXASSJ8Lc+1f35opFTCKFAR7
nBEUp6Apr2qIQCybjrV8UsOrdZf6HI8LQ5vuOxAJy+08wSQu2nxqQGqTNi94e/kiVJ
8lD3izw5iCSy3wlPnZRmbfe48N9mseqbakQekJgNWeAZECBzRcpUty7EVM/R/dHDG7
Ms/b354UPicEQ==
Received: from customer (localhost [127.0.0.1])
by submission (posteo.de) with ESMTPSA id 4Xtzw12LSrz9rxG
for <bug-guix@HIDDEN>; Thu, 21 Nov 2024 01:42:25 +0100 (CET)
From: =?UTF-8?Q?Th=C3=A9o?= Tyburn <theo.tyburn@HIDDEN>
Date: Thu, 21 Nov 2024 00:42:20 +0000
Message-ID: <87bjy95ser.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.67.36.65; envelope-from=theo.tyburn@HIDDEN;
helo=mout01.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)
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=C3=A9o
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: =?UTF-8?Q?Th=C3=A9o?= Tyburn <theo.tyburn@HIDDEN> Subject: bug#74450: Acknowledgement (patch-shebang does not work with '/usr/bin/env -S') Message-ID: <handler.74450.B.17321497655581.ack <at> debbugs.gnu.org> References: <87bjy95ser.fsf@HIDDEN> X-Gnu-PR-Message: ack 74450 X-Gnu-PR-Package: guix Reply-To: 74450 <at> debbugs.gnu.org Date: Thu, 21 Nov 2024 00:43:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 74450 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 74450: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74450 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.