From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OB1QKC+CPmcsBQEAe85BDQ:P1 (envelope-from ) for ; Thu, 21 Nov 2024 00:43:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id OB1QKC+CPmcsBQEAe85BDQ (envelope-from ) for ; Thu, 21 Nov 2024 01:43:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=h4QLkjPa; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=PI3PqgMz; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732149807; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xi6TGu5Z99xt2Cq8I0D7mCIC9sYAPep/+61dMisQj84=; b=bjjVaiE0YvHpfdsizKCzZ34iZA7IMqimJSuyFUlFgzXYpj5a3UXbwRuqZz0qQguHqXJZcQ XkELY3Zs+CihOMmxfsfKLOL+zrNt6GRohqGFFuk9Te6QDAA1PpsEYh5KHhoLfo8ltfJ2ZK wNAK3GLIxHyZ2eEZ4ov6yYJeIQBaHgoQdW0m3oHr4onbj+kOoya8MBFonwB0XE3J8rZHOc a3aHHq38Z6hx4MseCV6ClF6DBNhQ0q1wpZsRE1z+tKi5v2Fi9mGyu0SxVoo9sDs8ifRb4F beuZIyn0ihQVTkR0rIfBRWXIZDypSTjXiH643tsuE58fTqZg4XU+BW3C4KTGRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=h4QLkjPa; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=PI3PqgMz; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732149807; a=rsa-sha256; cv=none; b=O94qeEAoKHtAknBle6JNcRq7R4ECUIu7W8sOGWoFsSSJlwWw3lfFHjmpUIhslmpNXBfvZU vCKiE3OqdaaYr3LO2ImYXofwlTEZaH7sjC8+kzG3KW7k0z/FWhl29MCgZd5/jh4MrpYCnR vRCZLw3NXY7jtdULsH6GHsqAa+mgzq55c1zzBMVCsSQG7Oh/yLvY4ZWpwUHgoZrM890z7U oXvTqda+PXpNhMxG9YvnQyJFq7BrBQ9lBYDqaCh+t6zxqVCgxLHfncCmos3TFozcw/xVsI /4MEjNGey/nlO/HnIp3oB0ARF2RxBncv89Gjkd+Xw5ec7kDy7l9LrrJeMdg/Lw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E19AB8D5E9 for ; Thu, 21 Nov 2024 01:43:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDvHk-0003nv-Ml; Wed, 20 Nov 2024 19:43:04 -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 ) id 1tDvHj-0003ng-3O for bug-guix@gnu.org; Wed, 20 Nov 2024 19:43:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tDvHi-00061q-Lw for bug-guix@gnu.org; Wed, 20 Nov 2024 19:43:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=xi6TGu5Z99xt2Cq8I0D7mCIC9sYAPep/+61dMisQj84=; b=h4QLkjPacGisyPJ/rAGjmU6DD2dJ3JqoOkBDO2f7IdEX5zEvI4gOv1aN6/dPwcJCny9fzU0V58Hq7XnOOKClzKRM5ePRDUwMSi4Rr1ggSlrVtJxjHtALOBGkRI1I2FIa7NFCWsrOd3gApyJnV95XrFzrz1PwGy/Y5gF+FZnAK1RMFtR76NnplUjSAV2KECKucnjbNYOEurhxv1kB+jzR4C19VeJ3TAvXByyGdchs5kvXRI7XH5aFLtF8AM89y/LC0GXj2++lMp/gN/KycP8IHrQA4/c5QSa4l/5xjyJbddDIxk8TBzsCpNI/d+FIxkbcCwPWJfH5MzU37T0VJ83q1Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDvHi-0001SV-F8 for bug-guix@gnu.org; Wed, 20 Nov 2024 19:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74450: patch-shebang does not work with '/usr/bin/env -S' Resent-From: =?UTF-8?Q?Th=C3=A9o?= Tyburn Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 21 Nov 2024 00:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74450 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74450@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@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 ) id 1tDvHQ-0001Rw-TA for submit@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 ) id 1tDvHP-0001Rp-1T for submit@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 ) id 1tDvHO-0003mv-EE for bug-guix@gnu.org; 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 ) id 1tDvHM-0005zq-HS for bug-guix@gnu.org; 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 ; 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 ; Thu, 21 Nov 2024 01:42:25 +0100 (CET) From: =?UTF-8?Q?Th=C3=A9o?= Tyburn Date: Thu, 21 Nov 2024 00:42:20 +0000 Message-ID: <87bjy95ser.fsf@posteo.net> 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@posteo.net; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 0.19 X-Spam-Score: 0.19 X-Migadu-Queue-Id: E19AB8D5E9 X-TUID: 9C5AEjcp9iGO 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