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 ms5.migadu.com with LMTPS id 8LKGMEEyZGJIXQAAbAwnHQ (envelope-from ) for ; Sat, 23 Apr 2022 19:07:13 +0200 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 yO6LMEEyZGIfRgAAauVa8A (envelope-from ) for ; Sat, 23 Apr 2022 19:07:13 +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 633CD31CB1 for ; Sat, 23 Apr 2022 19:07:13 +0200 (CEST) Received: from localhost ([::1]:42252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niJE0-0005QO-8X for larch@yhetil.org; Sat, 23 Apr 2022 13:07:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niJDq-0005Pz-Fd for bug-guix@gnu.org; Sat, 23 Apr 2022 13:07:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35015) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1niJDq-0008V7-6T for bug-guix@gnu.org; Sat, 23 Apr 2022 13:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1niJDq-00074P-0v for bug-guix@gnu.org; Sat, 23 Apr 2022 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42164: Combining file-append with gexps results in incomprehensible errors Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 23 Apr 2022 17:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42164 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Brian Cully , 42164@debbugs.gnu.org Received: via spool by 42164-submit@debbugs.gnu.org id=B42164.165073360427119 (code B ref 42164); Sat, 23 Apr 2022 17:07:01 +0000 Received: (at 42164) by debbugs.gnu.org; 23 Apr 2022 17:06:44 +0000 Received: from localhost ([127.0.0.1]:57136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niJDY-00073K-DS for submit@debbugs.gnu.org; Sat, 23 Apr 2022 13:06:44 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:39748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niJDW-00073B-8Q for 42164@debbugs.gnu.org; Sat, 23 Apr 2022 13:06:43 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by xavier.telenet-ops.be with bizsmtp id NH6g270054UW6Th01H6gem; Sat, 23 Apr 2022 19:06:40 +0200 Message-ID: From: Maxime Devos Date: Sat, 23 Apr 2022 19:06:34 +0200 In-Reply-To: <87k0bfkca3.fsf@ditto.jhoto.spork.org> References: <20200702120029.vglwgexyasdzhgll@gravity> <87k0bfkca3.fsf@ditto.jhoto.spork.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-BE4cIAI8GCbAN+Ocws/j" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1650733600; bh=4UkWbwvo6m5TznjlnuR2gLQV8H8nkhYT3r41ru8cceE=; h=Subject:From:To:Date:In-Reply-To:References; b=gxoaLNcoGHwRA0tnhwbL4/ASPAkPHRQzqkV6AOFh6fPNYUO7E2pCJJXIC51y/mizs CA0+Vb2ogjxlF4POhrQenT6iqFVkhdrXUtCKoldScznfq2nXYFGWQKNEvXCBffEMzn ux5nqBPs7aE+nmokjlXxzq33mT06SnAn+ijBugiyskOP21TufGAvy8crPGmX8IsDLE NVwrYbGsAYslI8xU7W+HVtVagNWUws6v/CVDo9TQD6p/3REOlyTKzOjkrEd0W/n3OA +BcBjvJst/EQ67SkNRwkn3oh3PrJShclOtrym8vVdQTA3buaFgHyYiZZ2U72GoC/5v JhccfByy2dZUA== 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" 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=1650733633; 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: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=4UkWbwvo6m5TznjlnuR2gLQV8H8nkhYT3r41ru8cceE=; b=nQqsBlMxnNJtEox4eckLwRrUOvrQ/yM039p58q+S0u+bKS2I5fx+MZwHnyQBmgZ/BMpLU2 WNjKJzjmFK4HTwadujjR/cjoL1kWjx/TX/M+9o1k0X3NM10tVV7z0PyC9vsnas/YuI9WSb UCoLeYpXVpB1Fu4v1X0K+cbUmuWsHxdJpByWkqsOATd0+eBEwfWMjgDHmm4IP6+fe8xiYe a2SghvPkbfiFFd3BYfHc4QTfCLHoUbFZFaEQfK2YbAKBJPjq4Uii1z1jZS9igvK5t8e3GV 20SwduMd3xyjB3FK8CVmNwxem0TGlBN5EUWc2n5Yg6M68zD1EiC74wichNniqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650733633; a=rsa-sha256; cv=none; b=f3IAP4YHUIlXq2Izh6lCavDFnYJDSUkKGoimW2zJB4GN9V6EH8Espr1ZVuxhHWjxw555X8 tgLFjGwIXDi1chAQz0/YfyT1n4Jwm7JPYCGH4nFEYJgfZnO6EZoK1b5QtnNPxRz6MzUAvC qPO0LCCIdOkT43+pDsZjI8yh6xHXqDBY9Jmd0M3h7gyo5gPaVSfV1IqrnRf/hwG0FJ/Uvz oPXvN5Yjo5Hk9hCPCsbSlNagT2s082jZnpNNzSx0FSKft6MewYgkvwt/JcFeGmlcg41KO8 h9+Tzpa+oiU412v4sy2Vfy6iwGye95Pvqzcph/0E+sNdh2YAgm9UoKTgA2zQqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=gxoaLNco; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=gxoaLNco; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: 633CD31CB1 X-Spam-Score: 3.88 X-Migadu-Scanner: scn1.migadu.com X-TUID: zlqFtPcIoWXS --=-BE4cIAI8GCbAN+Ocws/j Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Brian Cully schreef op za 23-04-2022 om 12:03 [-0400]: > I was having a similar issue, so I dug into this issue a bit, > and it turns out that you *can* select an output from file-append, but > the syntax is a bit wonky: >=20 > ---[snip]--- > (let ((fa (file-append pkg "/path"))) > =C2=A0 $~$#fa:output) > ---[snip]--- >=20 > I=E2=80=99ve tried to remove the let: >=20 > ---[snip]--- > $~$#(file-append pkg "/path"):output > ---[snip]--- Do you mean #~#$fa:output here? >=20 > But this confuses the reader, an it things =E2=80=98:output=E2=80=99 is = a > variable. Not too surprising, but it does make the Guix configuration > files more awkward, since now you have to =E2=80=98define=E2=80=99 the fi= le-append > operations at the top level so you can refer to them with the syntax > above. >=20 > I would prefer to have something like any of the following (in > order of preference): >=20 > ---[snip]--- > (file-append pkg:output "/path") This one is only possible if file-append becomes syntax instead of a procedure. > (file-append (list pkg "output") "/path") Possible, but seems semantically wrong to me -- what's a list doing in a file-manipulating procedure? > (file-append $~$#pkg:output "/path") I assume this would be #~#$pkg:output? My bikeshed proposal: (file-append (output glibc "static") "/lib/...") Here, 'output' is a procedure constructing some kind of object. This would also be useful outside 'file-append', as it allows programmatically constructing equivalents #~#$pkg:output for multiple 'output' (there was some package definition some while back where this would have been useful). This 'output' could perhaps also be used in 'inputs' / 'native-inputs' fields. YMMV. Greetings, Maxime. --=-BE4cIAI8GCbAN+Ocws/j Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYmQyGhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ijSAP41ydOYBlz6vXJiKxcFUTy4DQCl qYZg5zCfRoQwAr4mhgD/U2jNkxQsin69eY38p0aauSPaP5aaQnzuX59Opkqp7Qs= =HXtc -----END PGP SIGNATURE----- --=-BE4cIAI8GCbAN+Ocws/j--