From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yDGELPoViWI8HAEAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 18:40:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wqJ7LPoViWIG/AAA9RJhRA (envelope-from ) for ; Sat, 21 May 2022 18:40:26 +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 4ACAD2F4DE for ; Sat, 21 May 2022 18:40:26 +0200 (CEST) Received: from localhost ([::1]:38280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsS9R-0004f8-HU for larch@yhetil.org; Sat, 21 May 2022 12:40:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsS94-0004el-Lv for bug-guix@gnu.org; Sat, 21 May 2022 12:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48958) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsS94-0007SE-Cw for bug-guix@gnu.org; Sat, 21 May 2022 12:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsS94-00056L-6D for bug-guix@gnu.org; Sat, 21 May 2022 12:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55464: (current-filename) is #f when guix pull'ing Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 21 May 2022 16:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55464 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Attila Lendvai Cc: 55464@debbugs.gnu.org Received: via spool by 55464-submit@debbugs.gnu.org id=B55464.165315116519558 (code B ref 55464); Sat, 21 May 2022 16:40:02 +0000 Received: (at 55464) by debbugs.gnu.org; 21 May 2022 16:39:25 +0000 Received: from localhost ([127.0.0.1]:42855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsS8M-00055E-HK for submit@debbugs.gnu.org; Sat, 21 May 2022 12:39:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsS8J-000550-Ov for 55464@debbugs.gnu.org; Sat, 21 May 2022 12:39:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsS8D-0007Ic-Si; Sat, 21 May 2022 12:39:09 -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=sCwc3HpTYSOeJoDXiIWPAFc7eZCg9RlMAdEJ3gI5TlA=; b=TRqTKM1bZlcjxwxmtllC vMewEBEe5JOQHTk1visbnhn5MzSBEgugIVmN9Xr1drQp4ZY4usUNlUmjR0hG6w5Fgz4RzQHwkTM36 J2CIzvuTEnoh3D9bjOrGo6u1cyjOFaXBfRNCfAKcbiEyYE8vyjxv+C8EpmSsHkc5hNgSmJp1QVsLd qy4dzBeeq0yb5X0Y77iGmTv5thts9uApLujtjWldqFpSSanG9IaH/hM28mp6JIHQ7rLbjz24XXt72 N6kUSDr2epUx55trwA9jyGmKQe7pSSxcQUSBj3JtMt5WW7KnGZ4u0o/WB2LaGNrG3eJBK8z5zYaAW M5JIBSOFtr5jyA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:61446 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsS8D-0005T5-EV; Sat, 21 May 2022 12:39:09 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <625DOHHScuzJjNNfdQOqaLqGWVTmXC-S9PcF2xU3nzsFYG4XYTSEt0NGXDSXnBqVHqYqr6AsEbTysg7y_fxoqeBkbEtCqMZrx9muo3DlvS0=@lendvai.name> <87ee0r42ze.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 Prairial an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 21 May 2022 18:39:08 +0200 In-Reply-To: (Attila Lendvai's message of "Thu, 19 May 2022 13:32:55 +0000") Message-ID: <87mtfau9g3.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: , 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=1653151226; 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=sCwc3HpTYSOeJoDXiIWPAFc7eZCg9RlMAdEJ3gI5TlA=; b=c0ebVXe5y5SFVlBxKFF/aXe5u844efUH9t6DeBWX3lZ0JPg4rjqh+eUKuC6kxqCR+/A2l6 Hbotj6pwelZCGYQlU/DaL3GZS0V0mW+KyXG4nj+Ga4kZ1ogu32Hn2XDEb+ZM3+SR1TJwpj /HogNEyTd5z9/8NPU8l4quY1+bcsJehCCDw0pgijt8PwyxASZ1IuM3nO/o0CNvCfVERdsN nq1iMvlpomRuYNxvq8dg58WAQjLFpKStOt7jRk3TXYe7Te2VTKc526t8LpTbUFgYAiOWPs KzpV5ZaXbet/qoUpva1AC4/ZOIrAWSiKMGiAoQ7IRku1R+mvBZzUBVQdDBCJxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653151226; a=rsa-sha256; cv=none; b=mHIpWEr2rYyfFB1X8fAVvnbXzJq42zjW71G8e3Q7hxf3Ogt2r3soPnz4+23MT3jrBAENx9 WNvCHf4Su3quCwx8uET123YzGfIDS4pxxWIv9WtVoAG2n08CYBtXzmzHAin/2EYsHV75Ik X5IAQc3k0aVX/6VBlyECmgfWNGEWHozaUk+wFDctDkLNGdIvsQkepGfHieVgZjYKax9jY+ pTiB1Hn5/Yw/jVMZdIQn4PCOE7KlWtvYkJbkkaCk4i1uXi9FxfGdxCwA2DyxNB7/37Fqi4 U/pBBAga3xDzkv3uNf2xWSZTRcZXCrgsY7AAKsk9GY0ceS5AE0ZgNdEXXvXdAg== 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=TRqTKM1b; 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: -5.65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=TRqTKM1b; 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: 4ACAD2F4DE X-Spam-Score: -5.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: DSwyVIbMkOGb Hi, Attila Lendvai skribis: > is my analysis is correct, namely that cwd is not (always?) changed at ma= croexpand time, and thus the implementation of INCLUDE is broken for relati= ve paths? is this a bug to be fixed in guile? if so, shall i try to add a t= est case for this somewhere? =E2=80=98include=E2=80=99 does all its work at macro-expansion time. It=E2= =80=99s documented like so (info "(guile) Local Inclusion"): -- Scheme Syntax: include file-name Open FILE-NAME, at expansion-time, and read the Scheme forms that it contains, splicing them into the location of the =E2=80=98include= =E2=80=99, within a =E2=80=98begin=E2=80=99. If FILE-NAME is a relative path, it is searched for relative to the path that contains the file that the =E2=80=98include=E2=80=99 form ap= pears in. And I believe that=E2=80=99s what it does=E2=80=94see =E2=80=98psyntax.scm= =E2=80=99 for the actual code. Now, if source location info were to be missing, it wouldn=E2=80=99t be abl= e to work for relative file names because it wouldn=E2=80=99t know the name of t= he source file that contains the =E2=80=98include=E2=80=99 form. HTH! Ludo=E2=80=99.