GNU bug report logs - #75719
[PATCH] gnu: emacs-parinfer-rust-mode: Corrected missing path separator in subsitution

Previous Next

Package: guix-patches;

Reported by: Lee Thompson <lee.p.thomp <at> gmail.com>

Date: Tue, 21 Jan 2025 01:07:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Lee Thompson <lee.p.thomp <at> gmail.com>
Subject: bug#75719: closed (Re: [PATCH] gnu: emacs-parinfer-rust-mode:
 Corrected missing path separator in subsitution)
Date: Sat, 25 Jan 2025 17:56:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#75719: [PATCH] gnu: emacs-parinfer-rust-mode: Corrected missing path separator in subsitution

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 75719 <at> debbugs.gnu.org.

-- 
75719: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75719
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: 75719-done <at> debbugs.gnu.org
Cc: Lee Thompson <lee.p.thomp <at> gmail.com>
Subject: Re: [PATCH] gnu: emacs-parinfer-rust-mode: Corrected missing path
 separator in subsitution
Date: Sat, 25 Jan 2025 18:54:46 +0100
Hello,

> * gnu/packages/emacs-xyz.scm (emacs-parinfer-rust-mode): Corrected missing
> path separator in substitution.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou



[Message part 3 (message/rfc822, inline)]
From: Lee Thompson <lee.p.thomp <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Lee Thompson <lee.p.thomp <at> gmail.com>
Subject: [PATCH] gnu: emacs-parinfer-rust-mode: Corrected missing path
 separator in subsitution
Date: Mon, 20 Jan 2025 19:45:28 +0000
* gnu/packages/emacs-xyz.scm (emacs-parinfer-rust-mode): Corrected missing
path separator in substitution.

The absence of this '/' meant that the parinfer Emacs layer ended up with a
Rust library path that looked like
`/gnu/store/hashvalue-parinfer-rust-emacs-0.4.6/liblibparinfer_rust.so', which
of course doesn't exist.  This patch corrects this behaviour and allows the
Emacs layer to properly find the Rust library.

Change-Id: Idfb5d73e62a7233c133ddc0a53afba5e9de06989
---
 gnu/packages/emacs-xyz.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 36cad3a7df..9c1f8a589f 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -27977,8 +27977,10 @@ (define-public emacs-parinfer-rust-mode
           (add-after 'unpack 'configure
             (lambda* (#:key inputs #:allow-other-keys)
               (let ((parinfer-lib
-                     (dirname
-                      (search-input-file inputs "lib/libparinfer_rust.so"))))
+                     (string-append
+                      (dirname
+                       (search-input-file inputs "lib/libparinfer_rust.so"))
+                      "/")))
                 ;; Specify the absolute file names of the parinfer shared
                 ;; library.
                 ;; (make-file-writable "parinfer-rust-mode.el")
-- 
2.47.1




This bug report was last modified 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.