From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oEnMDWJdpWUtTwEA62LTzQ:P1 (envelope-from ) for ; Mon, 15 Jan 2024 17:29:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oEnMDWJdpWUtTwEA62LTzQ (envelope-from ) for ; Mon, 15 Jan 2024 17:29:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=pihc2Y6p; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705336162; 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=nbKBSxWSTrr0s0buhajTOOebNQMohPuQO6+S1JL4/m4=; b=QtQmBOy6JL0TKEP7YzcS0ZwB/U/6IUEzJucCcYEsLLeylzL0pq9PrVv9QislIIaWorbIgP fhT6jt/RxUsZb5u9WUzwsd1nLnZwHKzcnSbrKXTHVrpiSggifqvAy3Zjt8Go0FJ+bh9lt5 WGDLZkH5Hk8gTk8UrXySPFTMGryy3K6J9oihY9d1Z3FjMz/BAp2xvD5X/PRTAZDRAPfwWO 9GOd4S9G+TS+3uHn24ZLZxiYeiRaC7G8Oqf3oBDJQfGxr2jWtR8Yt18NBQTKNWLKjWVvZk 7Zx3zzqIO1eE5jsz/gelvQapIFRCLDM22QwMa3uU1zZX4xmTQmzypNRfTk5G4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=pihc2Y6p; 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=1705336162; a=rsa-sha256; cv=none; b=ucqlqmvlcniKcsf2Z0KteID0QJ8Gw726Y6urlRkLrdlIGBwzCLkyWgw9gjFaE4j4g1GG1B YZ5qQtp9qyZosPWnS7NkpWrFqoj42IkxU1i3BfGMU7Nah10Os7INOt82ijhaP//AK46Emw 5F6QJWQMMGq58V9U24thX2JG+/bOuyaJwoMdQk+Tx+SYUcON1DIt8zqLr1hcc0Bfm7dQ8c pwEXtUZkvgH4MV+8sY3wwlQj103A5/JXN0iwQcKGCwrDXeR+5SPSANDXCi56807zjTnKs/ blOuuRe8VyRieXMr32pfmJtSi9NTwYLW48mPCGtR4hFAwkNplZtUOZraYjpG9g== 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 E21B451C78 for ; Mon, 15 Jan 2024 17:29:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPPph-0007um-Pw; Mon, 15 Jan 2024 11:29:05 -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 1rPPpe-0007ue-LV for bug-guix@gnu.org; Mon, 15 Jan 2024 11:29:02 -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 1rPPpe-0005c7-Dr for bug-guix@gnu.org; Mon, 15 Jan 2024 11:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPPpd-0003Wy-QW for bug-guix@gnu.org; Mon, 15 Jan 2024 11:29:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68413: Ungexp doesn't work on deep lists Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 15 Jan 2024 16:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68413 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Justin Veilleux , 68413@debbugs.gnu.org Received: via spool by 68413-submit@debbugs.gnu.org id=B68413.170533613813563 (code B ref 68413); Mon, 15 Jan 2024 16:29:01 +0000 Received: (at 68413) by debbugs.gnu.org; 15 Jan 2024 16:28:58 +0000 Received: from localhost ([127.0.0.1]:46740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPPpZ-0003Wh-Vn for submit@debbugs.gnu.org; Mon, 15 Jan 2024 11:28:58 -0500 Received: from jpoiret.xyz ([206.189.101.64]:42058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPPpY-0003WY-AM for 68413@debbugs.gnu.org; Mon, 15 Jan 2024 11:28:57 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id B1211184D5F; Mon, 15 Jan 2024 16:28:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1705336134; 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=nbKBSxWSTrr0s0buhajTOOebNQMohPuQO6+S1JL4/m4=; b=pihc2Y6ptgDnCd1PajrBMcW1N1vdr9NNzomkCJ+cmrvCw+jxhBTbrM5F1OYpxkOy58tFmC amlnWSOWPTk4jdmVLGcqnREW4SZE95tQWcYK6A/EcrM7vvVyv1YThQMwZ3DQwa+q5FF2P4 tS5npDMASaaM4RMTOZUAjUBsm1zoqtMx9CbAklt4KhBoBFYSXRXtklQFDVX5atU09bdD+E OhohmsZWBJxBaa48+szvHokXi+OfO75MG2NIzjZVXkR9mI7KJBQzgC7ES3po/wIf7Yg/GO YNGb+shvwReifNXn0EHDtMp7v39VikNITUgGCAfGaCnCW0lWAdtetUXwCCaB2A== In-Reply-To: <87le8rj5dp.fsf@gnu.org> References: <87v87yvw2y.fsf@cock.li> <87ttnhh39d.fsf@jpoiret.xyz> <87le8rj5dp.fsf@gnu.org> Date: Mon, 15 Jan 2024 17:28:47 +0100 Message-ID: <87bk9m1ry8.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: -- 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: , Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix 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-Queue-Id: E21B451C78 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.41 X-Spam-Score: -7.41 X-TUID: 1b/7zq5xIcEq --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Ludovic Court=C3=A8s writes: > Actually, what bug are we talking about? It seems to work for me with > this example: > > --8<---------------cut here---------------start------------->8--- > scheme@(guile-user)> (define packages `(("coreutils" ,coreutils) ("make" = ,gnu-make))) > scheme@(guile-user)> ,build (scheme-file "foo" #~(begin '#$packages)) > building /gnu/store/lq9gvbilv0y2nph00zxk6bn3lvcgdxqq-foo.drv... > $7 =3D "/gnu/store/9ryh6v80jvjv3kwx0q782h26h9gbaclj-foo" > scheme@(guile-user)> (call-with-input-file $7 get-string-all) > $8 =3D "(begin (quote ((\"coreutils\" \"/gnu/store/mppp9hwxizx9g9pikwcvvs= hb2ffxyq7p-coreutils-9.1\") (\"make\" \"/gnu/store/9fadhs5qmwl5x7f669a0v39b= 3ryrmmf1-make-4.3\"))))" > --8<---------------cut here---------------end--------------->8--- > > One of the design decisions for gexps was to ensure that substituting a > file-like object by its file name would be O(1) in most cases. > > Substitution in lists as in the example above is supported, but > primarily for backward compatibility. It should be avoided when > possible because it=E2=80=99s inefficient: =E2=80=98gexp->sexp=E2=80=99 n= eeds to traverse the > whole list/tree in search of potential candidates. Notice that OP's example uses `(("thing" . ,package)), ie. lists of pairs and not lists of lists, as in your case! Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmWlXT8QHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5FhcairojC/9CurDR/TEqvZIn0O5WeT385pUtJ2PgC0GY qsCzJQxvQN3LwMRmK+Lp3J5jvHKkMCqh6ufyc5FhrsSaiWS6Il0dfzLhwfqwnAFz 18iw46Q/8CQ8myxxa0rCxuwQEBmy6vMfl1We56wGC8UPChM9QRXWbthv/1TLctCD yhKYv4nDjkpkT/nf/EhTOrdCeTuzve7CUkeud21uQ7q+bYLRkXnUfoHDQ+qIan3m SuYnnUDLPfzVJSZuxTxQ+DeI4TNFibrkwWzpGgsjFE4PcqDkgcRCe9oPF20XcmJA S9IzPcRF34bzp3IHipU5JmlRXYwGJriAAI5sImpm0jq2DaKHGshd9hwYUzw1obR5 0CLPpM/yksZOX2H2z3L5UZTnSZENs49k/LfR6LQpU2sDAsk0OE+ODoGgzQ0AYxJ8 EZxCn3TatNpZIxEmrLubqpCT0c5gXZU/NmJnQ2PPhDcDbtt2iupMhFMBjTifnTXG wFrQJHKdWWLhwLBjdStzgXcPznlk888= =lsmz -----END PGP SIGNATURE----- --=-=-=--