From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 +NE4NI05iWI3IgEAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 21:12: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 mp11.migadu.com with LMTPS id qNQXNI05iWJTkQAA9RJhRA (envelope-from ) for ; Sat, 21 May 2022 21:12: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 255863E572 for ; Sat, 21 May 2022 21:12:13 +0200 (CEST) Received: from localhost ([::1]:50742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsUWJ-0003kX-F1 for larch@yhetil.org; Sat, 21 May 2022 15:12:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsUWA-0003kP-By for guix-patches@gnu.org; Sat, 21 May 2022 15:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsUWA-0003pX-3a for guix-patches@gnu.org; Sat, 21 May 2022 15:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsUW9-0002i9-US for guix-patches@gnu.org; Sat, 21 May 2022 15:12:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55081] [PATCH v2] Allow Guix root-dir overrides when working via Tramp. References: <87fsm3kc2m.fsf@ditto.jhoto.spork.org> In-Reply-To: <87fsm3kc2m.fsf@ditto.jhoto.spork.org> Resent-From: Brian Cully Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 May 2022 19:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55081 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55081@debbugs.gnu.org Cc: Brian Cully Received: via spool by 55081-submit@debbugs.gnu.org id=B55081.165316031510405 (code B ref 55081); Sat, 21 May 2022 19:12:01 +0000 Received: (at 55081) by debbugs.gnu.org; 21 May 2022 19:11:55 +0000 Received: from localhost ([127.0.0.1]:42972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsUW3-0002hl-2d for submit@debbugs.gnu.org; Sat, 21 May 2022 15:11:55 -0400 Received: from coleridge.kublai.com ([166.84.7.167]:63597 helo=mail.spork.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsUVz-0002hb-2D for 55081@debbugs.gnu.org; Sat, 21 May 2022 15:11:53 -0400 Received: from guix.jhoto.kublai.com (unknown [IPv6:2001:470:1f07:1b9:c714:ed8b:7cf4:a700]) by mail.spork.org (Postfix) with ESMTPSA id 9831B707B; Sat, 21 May 2022 15:11:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1653160310; bh=HHqbBQM8meiNACwIj3SUYNyz/1W3Wa+DRKGTKW06lQo=; h=From:To:Cc:Subject:Date; b=U8GSe9l47UK7sY6UhdRUyJmi+Ehaa5zL/Y6WSlfh0HB0lt3XFJDnpUUasl1lsabOa tBf4tXglw/pV4EQvuKaIxyDs8GCzRtyxYDr7p42BqvKD9mtkCKkeN3PUYKTTDmYJxb 3wYMZ+XoFDeLBf3QinLGVxuc5dDlENQhB1cqKODU= Date: Sat, 21 May 2022 15:10:24 -0400 Message-Id: <5eb3a6b7718bb1f3959afd27f051f744c9d677f6.1653160223.git.bjc@spork.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" Reply-to: Brian Cully X-ACL-Warn: , Brian Cully via Guix-patches From: Brian Cully via Guix-patches via 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=1653160333; 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-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=tvGqDe/iImdu+xzHVUtsZObkUdU6fS2xCpph2zMF20s=; b=Wxpv0otW2SxV3nC1isG5Fq+bWjUGC475s8GBg3ag2aa4krm1BgqSRfUTmbDLtozqgN2DE8 QWlla5MfYTHaTO8Mbhu/Zhp2ulZhs8WR2ni68BvhFCja+oBwXyF7xQ/FQVGudxhdWYTmBa sDaxKgPSc1AhzXMKB2KotfHl/LP/fLRFwPVPyf1TghQ913GZzAs/RsHI7V/TqOdk3XiHmi XpiO9qtV+n6/BKZY+xRsMwrZOzOAQaprOapL2ucjF00IXyCZUkSzc0K/+NjykViBNBJRzM l8EnKlTVOIu9fqvd0+8mD9I2ntjfxXG0LLaEjHFjBvDbDn/PjvqoERyYT9Mqag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653160333; a=rsa-sha256; cv=none; b=aO2aQHGnt2yQ6eCxeQG/667oONt1Uhzf0fnlq853qH8gFkZWsOwY/6KT/G/ng3cUgsLclx Vxp8yApeLx3ZCLxna3JUYceWdsuSqRu0ZcZXjZZKK6lvMgDX9pq8c3BSdfSFvpR7X5kx4p sdKcUyAPQ40tdCnyfwi73jUxVo/cfB/kw3F2ORI6hDkACxGVcO3bkS+yeYqCkxqNKLMfrD LPBS5lCyjKzNhrnsAt4lErc4geeIT+CvnHyQtN6AmNXNhrxOdgC4rjjmsBVLQYVypqq5Uf XQ+DYpl6h2AdspWdHm4LN+HmK3p5frTNVbhFFREHz5yNdsfTaBiVxJqYtjHJdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=U8GSe9l4; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.05 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spork.org header.s=dkim header.b=U8GSe9l4; dmarc=pass (policy=none) header.from=gnu.org; 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: 255863E572 X-Spam-Score: -3.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8AFZwh9RsmSU From: Brian Cully 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. --- I think my last patch was mangled by GNUS, so I'm resending it. FWIW, I've been using this for months without issue. .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))) -- 2.36.1