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 qLfGKSgtZGIBAQAAbAwnHQ (envelope-from ) for ; Sat, 23 Apr 2022 18:45:28 +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 MPrTKSgtZGKKNgEAauVa8A (envelope-from ) for ; Sat, 23 Apr 2022 18:45:28 +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 4108F3120C for ; Sat, 23 Apr 2022 18:45:28 +0200 (CEST) Received: from localhost ([::1]:35488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niIsx-0007CL-Dg for larch@yhetil.org; Sat, 23 Apr 2022 12:45:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niIZC-0003Um-Nx for guix-patches@gnu.org; Sat, 23 Apr 2022 12:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1niIZC-0002Ek-E1 for guix-patches@gnu.org; Sat, 23 Apr 2022 12:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1niIZC-0003mL-8z for guix-patches@gnu.org; Sat, 23 Apr 2022 12:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55081] [PATCH v1] Allow Guix root-dir overrides when working via Tramp. Resent-From: Brian Cully Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 23 Apr 2022 16:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55081 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55081@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165073106414475 (code B ref -1); Sat, 23 Apr 2022 16:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Apr 2022 16:24:24 +0000 Received: from localhost ([127.0.0.1]:57091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niIYZ-0003lK-LR for submit@debbugs.gnu.org; Sat, 23 Apr 2022 12:24:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:40506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niITr-0003dQ-MN for submit@debbugs.gnu.org; Sat, 23 Apr 2022 12:19:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niITr-0001yo-Ht for guix-patches@gnu.org; Sat, 23 Apr 2022 12:19:31 -0400 Received: from coleridge.kublai.com ([166.84.7.167]:63341 helo=mail.spork.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niITp-0001Qt-Of for guix-patches@gnu.org; Sat, 23 Apr 2022 12:19:31 -0400 Received: from ditto (unknown [IPv6:2001:470:1f07:1b9:8650:a942:ec5e:856b]) by mail.spork.org (Postfix) with ESMTPSA id 1E3BE49DB for ; Sat, 23 Apr 2022 12:18:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1650730725; bh=vP8cHiO1noIw/RzBnLxkDbF3nQqIWxX0kJD1ZAL2vIc=; h=From:To:Subject:Date; b=wvfMIY1mv6yVY1o/MkmE7xgzQfZErvdcJhjktpvYLwBZTeyaVDNoYs9/SgUUPAKMY cHruI2Mlz3tMclI4qB49+YgpCvxzojAbEngbtWHQX54+KjkOStgLMHJtsLyzto8hHQ AwPqEXZlt57YdL/aLHfk3ewroLVHQEnqWt6IsaQE= User-agent: mu4e 1.6.10; emacs 28.1 From: Brian Cully Date: Sat, 23 Apr 2022 12:17:52 -0400 Message-ID: <87fsm3kc2m.fsf@ditto.jhoto.spork.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=166.84.7.167; envelope-from=bjc@spork.org; helo=mail.spork.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 23 Apr 2022 12:24:22 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 23 Apr 2022 12:44:56 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1650732328; 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:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=bKuDE4icKIOSVQ0Aj818YrcWwMKjHAHFwmfrMQXUrP8=; b=u+DhLlkDlJrIGx/q8Zo7l6ZzcyI0q65Dzw/GWc/tolBgwp1hsVexci6HryV5g8W+LK0s4j 6sIzHtuPnbHDzdxLDswQXR+0YuAdL2tUbqhKaaV+eSDWvQ7KvcC27pF/XkyV7pA2ThOb8V 9iLRpz48vTIxyNvynjc/gKnkLBqXUb/v6jEJMBSATysvdOqZkWkST1oFAX9mJL/x72t6dw JRo2G8UkoR+2XIFy3Fm6dtRHqA2uGXW2yA0lkldaF5+7aHQS3dWq3JmYgTz2WtpGz1b/q/ 4DIyUhg1NOS7pIJ2cOlPxCwE2UkJFohpMvgyt50P5BUwfxtx6qTA/cQpnyv/4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650732328; a=rsa-sha256; cv=none; b=DtnRDOtrKrfkjoYu6euQnshKnbRZFyn3cL4orKHPDNWI9SUUnBwKJRGe4qJZb6GTQ9xbcd FNgWH/MFxvIYSIKXoy09fZ+ObeZBTiM4fjp+1z9DMdK3OT6BoXn1d30I+HUiB8H3iub+sR Jj5cxvKVHrrb7Aj9hZJsaTvRTPqyLUp6ymimdBdP3Evy74zFnCMo93+yaXRf+9DjC0Uy1H coFJhp/CIjnuA8X4u6WPb4q4zs5VR94wGLpOWbAx6txoK8yhuu22bL6LtkRy4Hm5KqGj5t EHnV7B1VA62JgQTV8ixcqPcCXlVHYM8ERw66KBVpbwPPkAFJdi/fBSqDdf9Xbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=wvfMIY1m; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=wvfMIY1m; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4108F3120C X-Spam-Score: 0.78 X-Migadu-Scanner: scn1.migadu.com X-TUID: mCvn0CM6j70E Add only the local part of the root directory to the guile search path. This lets you use Tramp to hack on a remote Guix checkout. --- .dir-locals.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.dir-locals.el b/.dir-locals.el index 09e19223d5..3b75989133 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -29,7 +29,7 @@ ;; Hence the following "when", which might otherwise be unnecessary; ;; it prevents causing an error when root-dir-unexpanded is nil. (when root-dir-unexpanded - (let* ((root-dir (expand-file-name root-dir-unexpanded)) + (let* ((root-dir (file-local-name (expand-file-name root-dir-unexpanded))) ;; Workaround for bug https://issues.guix.gnu.org/43818. (root-dir* (directory-file-name root-dir))) base-commit: 8540c2d86ca535ceb188c838cf1885de6f65c94f -- 2.35.1