From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OEYLITb8MWIRnwAAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 16:03:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GCKTHjb8MWI6+AAA9RJhRA (envelope-from ) for ; Wed, 16 Mar 2022 16:03:18 +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 0DDF03B132 for ; Wed, 16 Mar 2022 16:03:18 +0100 (CET) Received: from localhost ([::1]:51190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUVBF-0006W0-8S for larch@yhetil.org; Wed, 16 Mar 2022 11:03:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUV3H-0005Ye-3H for bug-guix@gnu.org; Wed, 16 Mar 2022 10:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUV3G-0003Ns-Q8 for bug-guix@gnu.org; Wed, 16 Mar 2022 10:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nUV3G-0001Kh-MM for bug-guix@gnu.org; Wed, 16 Mar 2022 10:55:02 -0400 Subject: bug#53915: No way of replacing an input in modify-input syntax structure but keep all the outputs Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Wed, 16 Mar 2022 14:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 53915 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler Mail-Followup-To: 53915@debbugs.gnu.org, ludo@gnu.org, gordon@niflheim.info Received: via spool by 53915-done@debbugs.gnu.org id=D53915.16474424445052 (code D ref 53915); Wed, 16 Mar 2022 14:55:02 +0000 Received: (at 53915-done) by debbugs.gnu.org; 16 Mar 2022 14:54:04 +0000 Received: from localhost ([127.0.0.1]:52007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUV2K-0001JQ-Hw for submit@debbugs.gnu.org; Wed, 16 Mar 2022 10:54:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUV2I-0001Iv-I7 for 53915-done@debbugs.gnu.org; Wed, 16 Mar 2022 10:54:02 -0400 Received: from [2001:470:142:3::e] (port=33240 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUV29-0003GT-Ml; Wed, 16 Mar 2022 10:53:54 -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=Ss9VO6c9cxgmuLbvGyymOb7L+eeJgehq9jrJscJx6q8=; b=jGQS8XM8jdvad/qExuiW fQXSuZJnm+YKQmsFP32sm7PusteRi9Mzv+UCSmqrvjzu4Xqxcuv0P8iXQmW2Kc9BYhhcc0x0kcJAe QDVI2ZRcub5s0/UQDMi4nEQM3BUx/Q48O37+0cyHxPSW1nUtWRwck0v+xctSOvtl3aewaPn92g7Tu pSjL3A2YLK24ed5hjArZ9TlhdIdNfWynw02xeAqS69dbFMoFqJqufD7UgE8a1YGmgFAkujX63VY6Y BY3sB3Qcmqa8OH2BIhIkw4Z1USqavfwXUMgSzMvUapM1Qwfs7svweWKjiBfhNmfTI9UGWWdUInLSn ROMmO3h4nBEZuQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:63830 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUV28-00032k-5z; Wed, 16 Mar 2022 10:53:53 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220210100941.nwmrbgm7qt34dv3v@citadel.info> <87zgm04e6f.fsf@gnu.org> <33debb0b55b52a09d268c07ec8f2355f928de62a.camel@gmail.com> Date: Wed, 16 Mar 2022 15:53:49 +0100 In-Reply-To: <33debb0b55b52a09d268c07ec8f2355f928de62a.camel@gmail.com> (Liliana Marie Prikler's message of "Tue, 08 Mar 2022 21:28:43 +0100") Message-ID: <87k0cuc5j6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: , Cc: 53915-done@debbugs.gnu.org, Gordon Quad Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647442998; 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-to: 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=Ss9VO6c9cxgmuLbvGyymOb7L+eeJgehq9jrJscJx6q8=; b=coERiAZGurKwbOeMLWsnx+Bn81H6m0M+WhegmZVNQjbyTsItTXZZnJOcuBPDIUFkzI1p5M TkBcGYQ4Xw8dNWWT/sVnb1BNzTXK6X/XCpcEmdYzb25ZHhNv5QwCTgC8QN5gea5i0AJCpb Vu4mbAqge833zVTNtDdCPIhd82yL7bXS74dh5nes5pGd5oOz5zc1YclI1mMw0qzdCrosB+ vcRDsQyJ0qP6fHY85TLK0cXactyadH/VdAq0xU6qTxa/KE9u/wOkqCK7UXprwgXtppXQGL xskEkCOEvVf53BDEgcpaVoeBCulBwtuCSZ+lO58sfpfXSSn5q2ZXotVAYuG6RQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647442998; a=rsa-sha256; cv=none; b=ZiAj7GmNEOTkh/YGc9N8jnQwbAyzxvepkq590QRg21A1h0Q0at6t92e3joj1/3jGWOsdpU g7EdsFIHWDk+ljgsKgYxLZOrbywSAMaAGFxCY4PWJJz74BQxB+fPiA/KG6WEw/3KEZGSp3 P0QdamI/LSefYilieMSwAMaZDfixbxcRjR0IuCdDJX/KOtgoCgZAObRHGU9imGlAmS8jEG gTqhy5UAb72NwjkFazaFn7qz6h+iMgSbRyU6j9JhBdYll2/xgLRo3ZK9ezOX/GeoJwAnhU P4OpKqkIyrO7tGcZyDDkYsqce7PF8G3A4rc0pp1HUgolOloiqdDBnkd1mPf7ig== 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=jGQS8XM8; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -3.76 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jGQS8XM8; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 0DDF03B132 X-Spam-Score: -3.76 X-Migadu-Scanner: scn1.migadu.com X-TUID: alj6UBvVAlgm Hi, Liliana Marie Prikler skribis: > Am Dienstag, dem 08.03.2022 um 17:11 +0100 schrieb Ludovic Court=C3=A8s: >> [...] >> With the patch below, we get more sensible behavior: >>=20 >> --8<---------------cut here---------------start------------->8--- >> scheme@(guile-user)> (modify-inputs (append $5 $4) >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (replace "glib= " xpdf)) >> $8 =3D (("glib" #> 7f9b1457c9a0>) ("pkg-config" #> pkg-config@0.29.2=C2=A0gnu/packages/pkg-config.scm:36 7f9b13a30580>) >> ("glib" # >> "bin") ("gobject-introspection" #> gobject-introspection@1.66.1=C2=A0gnu/packages/glib.scm:428 >> 7f9b12994e70>)) >> --8<---------------cut here---------------end--------------->8--- >>=20 >> If that makes sense to you, I=E2=80=99ll go ahead with this change and a= djust >> documentation accordingly. > Sounds better than my own suggestion, since it'll keep working the way > it did even when labels are eventually dropped. Pushed with tests in 00dfff84c66c5c6aa4853684419a92befe55d4b4. > If more control is needed, we can always later extend it to support > (replace ("label" "output") (package output)). WDYT? I=E2=80=99d rather not: the goal of =E2=80=98modify-inputs=E2=80=99 is to p= rovide an interface that works as if input labels didn=E2=80=99t exist, with an eye on removing= them entirely in the future: https://guix.gnu.org/en/blog/2021/the-big-change/ Regardless, we=E2=80=99ll have to keep an eye on all these corner cases and= to adjust the plan accordingly. Thanks! Ludo=E2=80=99.