From: Simon Streit <simon@netpanic.org>
To: Tomas Volf <~@wolfsden.cz>
Cc: 68850@debbugs.gnu.org
Subject: bug#68850: emacs: rgrep does not work over tramp
Date: Tue, 10 Dec 2024 16:05:31 +0100 [thread overview]
Message-ID: <ygu4j3b60jo.fsf@netpanic.org> (raw)
In-Reply-To: <ZbpGQXNSpoOHCl5C@ws> (Tomas Volf's message of "Wed, 31 Jan 2024 14:08:17 +0100")
Hello Tomas,
Tomas Volf <~@wolfsden.cz> writes:
> when I try to execute rgrep over a tramp connection, I get the following error:
>
> /bin/sh: /gnu/store/sk8rxsrj3drr4arypicnhy899vgn3prr-findutils-4.9.0/bin/find: not found
>
> That is somewhat expected, since the remote machine is not a Guix one,
> but even if it were, it would require to have the find in exact same
> store path.
I am running into the same issue as well. This is on a foreign system
using Emacs and Tramp trying to call find on remote hosts that are not
Guix.
> I understand the advantages of baking in the path to find into the
> configuration, but I wonder whether the trade-off is worth if for this
> particular case. Setting it to just `find' seems to work fine, both
> locally and remotely (at the cost of a minuscule hit to
> reproducibility).
Is there maybe an easy way around this? I tried:
--8<---------------cut here---------------start------------->8---
(connection-local-set-profile-variables
'remote-system
'((tramp-remote-path . ("/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/local/bin" "/usr/local/sbin" "/local/bin"))))
(connection-local-set-profiles
'(:application tramp :machine "host.example.com")
'remote-system)
--8<---------------cut here---------------end--------------->8---
The connection will set the remote-path. But rgrep will still invoke
find from a path in /gnu/store.
Cheers
--
Simon
next prev parent reply other threads:[~2024-12-10 15:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 13:08 bug#68850: emacs: rgrep does not work over tramp Tomas Volf
2024-12-10 15:05 ` Simon Streit [this message]
2024-12-10 16:12 ` Tomas Volf
2024-12-10 20:02 ` Simon Streit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ygu4j3b60jo.fsf@netpanic.org \
--to=simon@netpanic.org \
--cc=68850@debbugs.gnu.org \
--cc=~@wolfsden.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.