GNU bug report logs -
#43818
search-patches fails when there is a trailing slash on the Guix load path
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#43818: Use of local-file in icecat-source definition breaks REPL
which was filed against the guix package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 43818 <at> debbugs.gnu.org.
--
43818: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43818
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hello,
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
> CC: Mark H Weaver, one of the Icecat maintainer.
>
> Hello,
>
> The problem is that local-file doesn't work in Geiser. This breaks
> working at the REPL:
>
> Enter `,help' for help.
> scheme@(guile-user)> ,m (gnu packages linux)
> While executing meta-command:
> ERROR:
> 1. &formatted-message:
> format: "~a: patch not found\n"
> arguments: ("icecat-use-older-reveal-hidden-html.patch")
Thanks for Christopher Baines on #guix who pointed that local-file
seemed to behave correctly at the REPL and Geiser (indeed!). It made me
try to reproduce it in a --pure environment and I couldn't.
After a couple hours digging, I found that this snippet in my modified
.dir-locals file:
--8<---------------cut here---------------start------------->8---
(with-eval-after-load 'geiser-guile
(let ((root-dir (locate-dominating-file
default-directory ".dir-locals.el")))
(setq geiser-guile-load-path
(cons root-dir
(delete root-dir geiser-guile-load-path)))))
--8<---------------cut here---------------end--------------->8---
Was the culprit, especially the use of with-eval-after-load (which
turned out to be unnecessary).
This snippet allows to switch between git worktrees and always have the
geiser-guile-load-path (which configures both the Guile %load-path and
the %load-compiled-path) set correctly.
Here's the diff of my (fixed) .dir-locals in my Guix git checkout:
--8<---------------cut here---------------start------------->8---
~/src/guix$ git diff .dir-locals.el
diff --git a/.dir-locals.el b/.dir-locals.el
index 19f15b3e1a..0869fbaa20 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -8,7 +8,17 @@
;; For use with 'bug-reference-prog-mode'.
(bug-reference-url-format . "http://bugs.gnu.org/%s")
(bug-reference-bug-regexp
- . "<https?://\\(debbugs\\|bugs\\)\\.gnu\\.org/\\([0-9]+\\)>")))
+ . "<https?://\\(debbugs\\|bugs\\)\\.gnu\\.org/\\([0-9]+\\)>")
+
+ ;; Emacs-Guix
+ (eval . (setq guix-directory
+ (locate-dominating-file default-directory ".dir-locals.el")))
+ ;; Geiser
+ (eval . (let ((root-dir (locate-dominating-file
+ default-directory ".dir-locals.el")))
+ (setq geiser-guile-load-path
+ (cons root-dir
+ (delete root-dir geiser-guile-load-path)))))))
(c-mode . ((c-file-style . "gnu")))
(scheme-mode
.
--8<---------------cut here---------------end--------------->8---
I am closing this issue, sorry for the noise!
Maxim
[Message part 3 (message/rfc822, inline)]
CC: Mark H Weaver, one of the Icecat maintainer.
Hello,
The problem is that local-file doesn't work in Geiser. This breaks
working at the REPL:
Enter `,help' for help.
scheme@(guile-user)> ,m (gnu packages linux)
While executing meta-command:
ERROR:
1. &formatted-message:
format: "~a: patch not found\n"
arguments: ("icecat-use-older-reveal-hidden-html.patch")
Any ideas of what could be done about it?
Maxim
This bug report was last modified 4 years and 231 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.