From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kG5ZJTPzEmQskAAASxT56A (envelope-from ) for ; Thu, 16 Mar 2023 11:45:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oA8cJTPzEmTPYAEAauVa8A (envelope-from ) for ; Thu, 16 Mar 2023 11:45:07 +0100 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 3E9BAB29D for ; Thu, 16 Mar 2023 11:45:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcl6W-0000FO-4a; Thu, 16 Mar 2023 06:45:04 -0400 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 1pcl6U-0000Ez-KG for bug-guix@gnu.org; Thu, 16 Mar 2023 06:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pcl6U-0006so-3U for bug-guix@gnu.org; Thu, 16 Mar 2023 06:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pcl6T-00079y-Qi for bug-guix@gnu.org; Thu, 16 Mar 2023 06:45:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62181: [PATCH 1/2] gnu: gnulib: Reset the shebangs. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 16 Mar 2023 10:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62181 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Vivien Kraus Cc: 62181@debbugs.gnu.org Received: via spool by 62181-submit@debbugs.gnu.org id=B62181.167896345027439 (code B ref 62181); Thu, 16 Mar 2023 10:45:01 +0000 Received: (at 62181) by debbugs.gnu.org; 16 Mar 2023 10:44:10 +0000 Received: from localhost ([127.0.0.1]:41282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcl5d-00078U-1V for submit@debbugs.gnu.org; Thu, 16 Mar 2023 06:44:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcl5a-00077s-1u for 62181@debbugs.gnu.org; Thu, 16 Mar 2023 06:44:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcl5U-00061i-LB; Thu, 16 Mar 2023 06:44:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=d6krgZ12T2cgtv5rqG7jjvym6iVRGUoFWw16t3XnhME=; b=kj+9DfP8rJEHtSBlCk81 hS60XyfdlTQ6ZrvOXBswVuVBtHDwPpq9a+GeRulHLauccSTRyYSts8vESR6Nd+tuW7vl+mxoyiJTI AViPZpCeCDtOL1JJQiUbdpTVMlDN60ATkJZ/yUICe9rJgNZmMzGeLsXd5/L1ya3Bg39M1NpSNNKr8 jpvpTI9knztuvffcHTC8nJQ7BnhMr3Be5L/lxwwdwz2W7ZhnNoSxBRviaCKBdkwuDKnqQA/Dzcj0w e+3ZXhR2nRTlqMb1cS3hkxXrd2E4mIzjfHT6hEq5D/pJshy1lOdrgZYv0eHjhZgAHcK2Yd6ERGpaO dNnKafek51WpEA==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcl5T-000806-Ik; Thu, 16 Mar 2023 06:44:00 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875yb3689f.fsf@inria.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 26 =?UTF-8?Q?Vent=C3=B4se?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Pissenlit X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 16 Mar 2023 11:43:58 +0100 In-Reply-To: (Vivien Kraus's message of "Tue, 14 Mar 2023 09:58:34 +0100") Message-ID: <87y1nxgemp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=kj+9DfP8; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678963507; a=rsa-sha256; cv=none; b=VanWWLJ2Osx6Ia7JMQ/jh3NVUG8iYaULoVdbbwALZM82BMsAC2sqAuFX6658KwJ0OENMqD QjYZF+jDP2Re6R5P4LYee8aI6665tqPZcBP6mcSw8Nyc8jghxASvTKlEcF1l2T/To06Wh4 QN/5h9aPkwAU2jUxmrLQxKFROxmihPT4jZ+Pfw4xu47ykyyytytnIZdOJuPSpFdWx+EUfw +pbEEpmVSsOXJv/1AbnPUcw3FRgvOjhcW/ssKyltgVZRKuL3GbivTgKMXqHp5rJ4x+3oFi iYYmm5VS42Mr9/vyL+gqwcZB50PGVtKyLkZUAZn5MA3Cmm2mxG5jjursb6YkyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678963507; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=d6krgZ12T2cgtv5rqG7jjvym6iVRGUoFWw16t3XnhME=; b=EhtDiGfjjTWlew4d6edtHLnt8Iw5eVNkxWWg56K5rxFXddeuuNVuWL7lDZ/T1/tWpy/8v9 8AKX66MA5Rpl/uHkzAw37JoHkAeUF5TCaTWvfjMibJ5k+MglQEMOYc1juRzb4dKtne+hXo F7jqMe+8Cr0/X4PRZlY3e1QHnmlHkbyU0TUX2uYP+WZBcaoQYJMl+GLVHZoCgdurPG7Wv2 eCLa2jdl2QT2jQGE7QvJ5l0InVA3gnaZ3FmHBTLqiE2RM6iBFE8jBbKfeTHxVb2wpf/jQq DKVnbrRjI7R3/vmT4So5enB6bCI32gXQpw7f+43a2+zoWaYUJApVGM2N+OJIHg== X-Migadu-Spam-Score: -4.14 X-Spam-Score: -4.14 X-Migadu-Queue-Id: 3E9BAB29D X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=kj+9DfP8; 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=pass (policy=none) header.from=gnu.org X-TUID: V/6eNQw7H5LW Vivien Kraus skribis: > * gnu/packages/build-tools.scm (gnulib) [phase reset-shebangs]: After > installation, rewrite the /gnu/store shebangs in the distributed build-aux > files. > [inputs, native-inputs]: Add bash-minimal. > [phase let-autogen-execute-gnulib-tool]: Specify a shell to execute > gnulib-tool from autogen.sh. [...] > + (add-after 'install 'reset-shebangs s/reset/restore/ ? > + (lambda _ > + (for-each > + (lambda (file) > + (false-if-exception > + ;; Might fail on binary files, this is not a problem. > + (substitute* file > + ((#$(file-append (this-package-native-input "bash-mi= nimal") > + "/bin/sh")) > + "/bin/sh") > + ((#$(file-append (this-package-native-input "python") > + "/bin/python3")) > + "/usr/bin/env python3") > + ((#$(file-append (this-package-native-input "perl") > + "/bin/perl")) > + "/usr/bin/perl") > + ((#$(file-append (this-package-native-input "clisp") > + "/bin/clisp")) > + "/usr/bin/clisp")))) > + (find-files (string-append #$output "/src/gnulib")))))))) How about: (substitute* (find-files =E2=80=A6) (("^#! ?(.*)/bin/([a-zA-Z0-9-]+)" _ prefix program) (string-append "#!/bin/" program "\n"))) ? Ludo=E2=80=99.