From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qLRlGrGofGSrhgAASxT56A (envelope-from ) for ; Sun, 04 Jun 2023 17:07:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iORWGbGofGSxCAEAG6o9tA (envelope-from ) for ; Sun, 04 Jun 2023 17:07:29 +0200 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 EE57E100A1 for ; Sun, 4 Jun 2023 17:07:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5pK2-0008De-PC; Sun, 04 Jun 2023 11:07:10 -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 1q5pJx-0008DN-2q for guix-patches@gnu.org; Sun, 04 Jun 2023 11:07:06 -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 1q5pJu-0004v3-Hb for guix-patches@gnu.org; Sun, 04 Jun 2023 11:07:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5pJu-0004SY-Ck for guix-patches@gnu.org; Sun, 04 Jun 2023 11:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63793] [PATCH] gnu: sbsigntools: Update to 0.9.5. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 04 Jun 2023 15:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63793 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: kiasoc5 , 63793-done@debbugs.gnu.org Cc: Felix Lechner Received: via spool by 63793-done@debbugs.gnu.org id=D63793.168589121117125 (code D ref 63793); Sun, 04 Jun 2023 15:07:02 +0000 Received: (at 63793-done) by debbugs.gnu.org; 4 Jun 2023 15:06:51 +0000 Received: from localhost ([127.0.0.1]:46906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5pJj-0004S9-DY for submit@debbugs.gnu.org; Sun, 04 Jun 2023 11:06:51 -0400 Received: from jpoiret.xyz ([206.189.101.64]:50314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5pJh-0004S1-WA for 63793-done@debbugs.gnu.org; Sun, 04 Jun 2023 11:06:50 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 6248818540C; Sun, 4 Jun 2023 15:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1685891208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aqWcRDPvG8xMnFbjk0mPliv2bPTt3oegZZvbEhjVZV4=; b=kbnIyqqxGnJ8/F8EmufJtrx4Uipun5Y5Vrx/iV54zpKj3yXl36hiUuWR6Xs7NnPNlmx2RM TXh6EWBsd25g82bDDeY99qoKGjuxcW/SXgTkNfmGHcuRYoDnRxmdEMHnVMuU/ckudi3kod nYQQRpp6EMjGZXmb4LPHoxQagj82u4kQmefweZaxibD6Z5PYW7MUvJerTuqAyI236NaCM1 nKOEjfjtRL+81vLkarhw/H/fUpU0BKNZH+aaarEehsiIYa/ARZsZ4hMPvInR/jTs21qraF qETCFzLX91gzrKi4ZulB5x+6FsMI93hVu/FDBw/g3mNHR0DvQ8WZV8e17FbdYg== In-Reply-To: <15c235c9-6454-bdc2-5e1e-a69dc6bcb6d3@disroot.org> References: <782d12b0f1d53565166394065415862fba56bff1.1685397220.git.kiasoc5@disroot.org> <87bkhvef98.fsf@jpoiret.xyz> <15c235c9-6454-bdc2-5e1e-a69dc6bcb6d3@disroot.org> Date: Sun, 04 Jun 2023 17:06:45 +0200 Message-ID: <87fs77xo56.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches From: Josselin Poiret via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685891249; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=aqWcRDPvG8xMnFbjk0mPliv2bPTt3oegZZvbEhjVZV4=; b=XUUEMi9w174pyJXvL2FAv7L9Lm1n4Hh/wKw4iCquhI+qD02o/WvHH/7dksKFTx4iyEiAwh kS+kIa5iCZ/gVsKxrFJrR7fWutfxm+vDXWLrDMVxEnTNQAoPJZatKS162v7SsBVN3K67LH KYItHXa3DsgRDkM9Om46mYdtB5k743qyxUGC+8nkIQT13MYRbbkZkOSNtoRsJvuJFx7rGx n4nkkHLZ8ocmmd8Sy5ez/5+ccPMAr1QJCEgLZqG0xCWtTk99mt7I/Vqfy5Mv97xoSC0XXd cYq1a5rQEbug88LmwDTiNJHIOc93gV26k96Cw0C7ogLppDCkq/cNXJKZucixUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=kbnIyqqx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685891249; a=rsa-sha256; cv=none; b=hG1hIfaQ2TdD4QOtTvqHDVECMWRPJuTUu8k1N8J6ivevU08RyJUQFAzrTnETBX4mPaN3MW E6CMOb762VcBZy1mTUr+/atoQsxz8hOKQf7Ot+Ovk4/kgOvBUwG1QWQW+NypEAZqxUutsb KATkoOvCIWyD1QSAxbnoOAVPoBM4VwBYhCM+VTX9uz8Dn1WWjqPq9UNxV76QLTN/3RsFNK +0zVFwYuTbyqAyI8T5Zue1m2L5Ht4XcGqd+9kUi72ghfpnT1GehknO97Nd8CPHIk0/jAGJ i9UtyBC+gavg8uoEGYrCXkk+xsMyZLMt2SSlpAzEaW5+rPXD67qBfXEnVrVCaQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=kbnIyqqx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EE57E100A1 X-Spam-Score: -3.78 X-TUID: 5v/+4Zx15W/j --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi kiasoc5, kiasoc5 writes: > What is the difference between this > >> - (lambda _ >> - (substitute* "lib/ccan.git/tools/create-ccan-tree" >> - (("#!/bin/bash") >> - (string-append "#!" >> - #$(this-package-native-input "bash= ") >> - "/bin/bash"))))) > > and this? > >> + (lambda* (#:key inputs native-inputs #:allow-other-keys) >> + (substitute* "lib/ccan.git/tools/create-ccan-tree" >> + (("#!/bin/bash") >> + (string-append "#!" >> + (search-input-file (or native-inputs in= puts) >> + "/bin/bash")))))) > > I meant to search for bash as a native input but I guess they are differe= nt. In general, the first method doesn't compose well with package transformations that replace inputs, since it will still refer to the original bash input. The bottom one will always search for a /bin/bash binary among all the inputs, so will pick up a new one if the input is replaced. Also, in general, inside phases, if you're building natively, native-inputs is always #f and inputs also contains the native inputs, hence the need for that (or ...) form. HTH, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmR8qIUQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5FhcaihC5C/wPOgI/Vkp+61KZdok7GlsdyyFDMETVceMQ Qs9p8A3tFutz8opJj2lQnDX219jDe1039UkEBkQmy449CELcxTs9vEKCs5sXJiwc hmIJWjLo/7VUNG+KcoaybQPzuyxgBFhN3Gzr/+Bdp8LaCMZ5HoiIEkVpcepPu7DV odjceU+24yysWnB8JOQ8mldMDA7G0Ntn0w6JhZegFxksh26kc5ibo4ZKSPf/fUvy GGkXWdB6RCOiGhfYFn7ua6WmfhjW73DmPCDIMxQK5s78uLBMS1c1eT422W/092/E UEwLMODbzSJfpQUypJYFAw46lz8RPNagRN5t0YxEmtMbK47Gxz5kEMaME+YuCD/K 5RrylO/6qU6PjaVQkscYPUwh5kfgNZTQXJcWQIi5YZlz5Nn+lro7Sas7Zhhn3tAX DMpxxzWGz4Sx0gcA4CZolBgHSCRpA9dQ4fRyK4pZ+yq7ebLt+XzdN8fZ4RLKqjB+ 32qe9oYkGestM3siouDRCecuiDuX3I4= =u3M8 -----END PGP SIGNATURE----- --=-=-=--