From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CON4IyvfZWI9GgAAbAwnHQ (envelope-from ) for ; Mon, 25 Apr 2022 01:37:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GP56IyvfZWIgMAEAauVa8A (envelope-from ) for ; Mon, 25 Apr 2022 01:37:15 +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 5754B2CAE5 for ; Mon, 25 Apr 2022 01:37:14 +0200 (CEST) Received: from localhost ([::1]:57958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nilmy-0001Rp-JU for larch@yhetil.org; Sun, 24 Apr 2022 19:37:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nilmo-0001RR-4Z for bug-guix@gnu.org; Sun, 24 Apr 2022 19:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nilmn-0005s2-SB for bug-guix@gnu.org; Sun, 24 Apr 2022 19:37:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nilmn-000195-O3 for bug-guix@gnu.org; Sun, 24 Apr 2022 19:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42164: Combining file-append with gexps results in incomprehensible errors Resent-From: Brian Cully Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 24 Apr 2022 23:37: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: Maxime Devos Received: via spool by 42164-submit@debbugs.gnu.org id=B42164.16508433814350 (code B ref 42164); Sun, 24 Apr 2022 23:37:01 +0000 Received: (at 42164) by debbugs.gnu.org; 24 Apr 2022 23:36:21 +0000 Received: from localhost ([127.0.0.1]:60346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nilm9-000185-HQ for submit@debbugs.gnu.org; Sun, 24 Apr 2022 19:36:21 -0400 Received: from coleridge.kublai.com ([166.84.7.167]:57936 helo=mail.spork.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nilm8-00017y-CQ for 42164@debbugs.gnu.org; Sun, 24 Apr 2022 19:36:20 -0400 Received: from ditto (unknown [IPv6:2001:470:1f07:1b9:ec80:35ff:fedf:c760]) by mail.spork.org (Postfix) with ESMTPSA id D05D94BA3; Sun, 24 Apr 2022 19:36:03 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1650843380; bh=gXbZxnZIM614BgFb84SX0UxYy3gv5AUW6ugqX4ltsuQ=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=v6gqSKamI9PCr2igUK5WiZpNz+rHdssw4sU/R8vPb9bXOUfUxW1XQUA2wqIbJQilp ovd7mSqYgJISmdB9gHpl8go/qrkM85E7HuWOtglI/z5ae++6oUVYALRhaX28sQMZjX /1TPoBLLvjUILMvSLpMp1aELDOOHeAkOdlvhrWZE= References: <20200702120029.vglwgexyasdzhgll@gravity> <87k0bfkca3.fsf@ditto.jhoto.spork.org> <87bkwrk7zk.fsf@ditto.jhoto.spork.org> <2bda48c996ac6b0bae970d8e5559675d6984ac51.camel@telenet.be> <877d7f7cn4.fsf@ditto.jhoto.spork.org> <5be60a6138fde8bfe521e7e9c7c18f28a9c50742.camel@telenet.be> User-agent: mu4e 1.6.10; emacs 28.1 From: Brian Cully Date: Sun, 24 Apr 2022 19:27:11 -0400 In-reply-to: <5be60a6138fde8bfe521e7e9c7c18f28a9c50742.camel@telenet.be> Message-ID: <87bkwqqckg.fsf@ditto.jhoto.spork.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed 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: 42164@debbugs.gnu.org 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=1650843435; 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=QqbNzX+Dl1h8ZgA9jMIWfPkxXe4MKn7HghvGojuJ38U=; b=JD+0Rn2x7Vc6v8pZZ4IcszVs7gKxjtu/kaKKFQszSCnjKuI8JNJPfwsXJGS3Dl9WrLvi+i Dt4Aenujk2vn9voG3Hy8hxIWwR+o/FqLladFP3QZV1gc3ufp5ian5LNRnV9vr3is8KyHMi RJxT2WcobQPJPwacuwqiUfr1iZFXRWqP1kUreVt6anOjluGxholCe5q66xJPNOSnQ+pfRI 00w27Am56kJPNk7FwZMawgyi0GSY3kvHYTU0x8BwfydzCVJZ48H6UNJ1B8p4/z0BLGqGJT g6WACO7cde5vXPd4cXNwGERfjG5FcTw+3DwSpYPLYq80v9tViepYbgnFnhkvTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650843435; a=rsa-sha256; cv=none; b=qPPg/mEPc5tYQHmVcseiwr+Q7jdqhkHWnyj9+B2baQ8rTXW5PWIl0dsrlVX/LhU1gzuY2t L0jMtpkH6y4mKR41CDocyU6+ehz//usGYX0FWBgFyz5AfWoVXuP/+ZwDlkkII0zvYCKGlP GYTczmkZR917qFRROj7AfCaNM4fYjcinarjT9gwY0evNL3pxeb78Rw1FYnYEHwwL1WMGHZ B8CFkteh2Q0pyn/7MeKuOhchIMB8BWbZ7ApAWPJKBhoJ00BxiR5t+IqsGjOgUybdreVk5E ijfPZoY9snHBf5PQ8XDFjbWIpa9frHRnJWxJATjYAtyih+AanQHM+YknlSJCfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=v6gqSKam; dmarc=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: 2.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=v6gqSKam; dmarc=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: 5754B2CAE5 X-Spam-Score: 2.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: C5CGRxXlQAmj Maxime Devos writes: > Nowhere. I tried implementing 'output', and noticed I just=20 > ended up > with something equivalent to a simple call to 'gexp-input'=20 > (hence, > =E2=80=98this thing already exists=E2=80=99). 'gexp-input' can be found = in=20 > (guix > gexp). I finally had a chance to mess around with this, and it=20 does, indeed, do the job. Since it wasn=E2=80=99t clear to me how=20 it worked, I=E2=80=99d like to document it here. To accomplish the goal at the begging of this thread,=20 rather than using: --8<---------------cut here---------------start------------->8--- (file-append #~#$gcc:lib =E2=80=9C/lib=E2=80=9D) --8<---------------cut here---------------end--------------->8--- The =E2=80=9Ccorrect=E2=80=9D way is this: --8<---------------cut here---------------start------------->8--- (gexp-input (file-append gcc "/lib") "lib") --8<---------------cut here---------------end--------------->8--- The name seems a little weird, since we=E2=80=99re selecting an=20 output, but it makes sense from the other end: we=E2=80=99re=20 creating an input for the higher-level expression (in this=20 case, the special-file-services-type). Anyway, this works for me, so this ticket can probably be=20 closed. -bjc