GNU bug report logs - #67244
[PATCH] gnu: mu: Update to 1.10.8 and re-enable Guile bindings

Previous Next

Package: guix-patches;

Reported by: Thiago Jung Bauermann <thiago.bauermann <at> linaro.org>

Date: Fri, 17 Nov 2023 17:57:03 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67244 in the body.
You can then email your comments to 67244 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#67244; Package guix-patches. (Fri, 17 Nov 2023 17:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thiago Jung Bauermann <thiago.bauermann <at> linaro.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 17 Nov 2023 17:57:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thiago Jung Bauermann <thiago.bauermann <at> linaro.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: mu: Update to 1.10.8 and re-enable Guile bindings
Date: Fri, 17 Nov 2023 14:21:44 -0300
Version 1.10.8 fixes the installation of the Guile bindings, so we can
enable it again.

* gnu/packages/mail.scm (mu): Update to 1.10.7.
  [inputs]: Add guile-3.0.
  [arguments]: Add "-Dguile-extension-dir" to #:configure-flags.
  Add fix-ffi phase to allow Guile module to load its native library.

Change-Id: I2a8250d8d6298712ad116b1d88157a4344175722
---

Hello,

I find the Guile bindings useful, so I'd like to reenable them.
I've tested that my script that uses them is working.

Kind regards,
Thiago

 gnu/packages/mail.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 256bd4b03a5a..353c8c7bd722 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1206,14 +1206,14 @@ (define-public emacs-mew
 (define-public mu
   (package
     (name "mu")
-    (version "1.10.7")
+    (version "1.10.8")
     (source
      (origin
        (method url-fetch)
        (uri (string-append "https://github.com/djcb/mu/releases/download/v"
                            version "/mu-" version ".tar.xz"))
        (sha256
-        (base32 "089w1m6sd0nk9l9j40d357fjym8kxmz7kwh3bclk58jxa6xckapa"))))
+        (base32 "129m6rz8vbd7370c3h3ma66bxqdkm6wsdix5qkmv1vm7sanxh4bb"))))
     (build-system meson-build-system)
     (native-inputs
      (list pkg-config
@@ -1221,7 +1221,7 @@ (define-public mu
            gnupg                        ; for tests
            texinfo))
     (inputs
-     (list glib gmime xapian))
+     (list glib gmime guile-3.0 xapian))
     (arguments
      (list
       #:modules '((guix build meson-build-system)
@@ -1229,6 +1229,8 @@ (define-public mu
                   (guix build utils))
       #:imported-modules `(,@%meson-build-system-modules
                            (guix build emacs-utils))
+      #:configure-flags
+      #~(list (format #f "-Dguile-extension-dir=~a/lib" #$output))
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'patch-bin-references
@@ -1241,6 +1243,11 @@ (define-public mu
               (substitute* '("lib/tests/bench-indexer.cc"
                              "lib/utils/mu-test-utils.cc")
                 (("/bin/rm") (which "rm")))))
+          (add-after 'install 'fix-ffi
+            (lambda _
+              (substitute* (find-files #$output "mu.scm")
+                (("\"libguile-mu\"")
+                 (format #f "\"~a/lib/libguile-mu\"" #$output)))))
           (add-after 'install 'install-emacs-autoloads
             (lambda* (#:key outputs #:allow-other-keys)
               (emacs-generate-autoloads

base-commit: fc6bdaad57bf91609849623c5f485403c030cb49




Information forwarded to guix-patches <at> gnu.org:
bug#67244; Package guix-patches. (Thu, 23 Nov 2023 16:22:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: Thiago Jung Bauermann <thiago.bauermann <at> linaro.org>
Cc: 67244-done <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#67244] [PATCH] gnu: mu: Update to 1.10.8 and re-enable
 Guile bindings
Date: Thu, 23 Nov 2023 16:20:18 +0000
[Message part 1 (text/plain, inline)]
Thiago Jung Bauermann <thiago.bauermann <at> linaro.org> writes:

> Version 1.10.8 fixes the installation of the Guile bindings, so we can
> enable it again.
>
> * gnu/packages/mail.scm (mu): Update to 1.10.7.
>   [inputs]: Add guile-3.0.
>   [arguments]: Add "-Dguile-extension-dir" to #:configure-flags.
>   Add fix-ffi phase to allow Guile module to load its native library.
>
> Change-Id: I2a8250d8d6298712ad116b1d88157a4344175722
> ---
>
> Hello,
>
> I find the Guile bindings useful, so I'd like to reenable them.
> I've tested that my script that uses them is working.
>
> Kind regards,
> Thiago
>
>  gnu/packages/mail.scm | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)

Thanks for the patch, I've pushed this to master as
c26ed5d6b971af11894015979f1e260df571a2be.

Chris
[signature.asc (application/pgp-signature, inline)]

Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Thu, 23 Nov 2023 16:22:02 GMT) Full text and rfc822 format available.

Notification sent to Thiago Jung Bauermann <thiago.bauermann <at> linaro.org>:
bug acknowledged by developer. (Thu, 23 Nov 2023 16:22:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#67244; Package guix-patches. (Thu, 23 Nov 2023 22:00:02 GMT) Full text and rfc822 format available.

Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thiago Jung Bauermann <thiago.bauermann <at> linaro.org>
To: Christopher Baines <mail <at> cbaines.net>
Cc: 67244-done <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: bug#67244: [PATCH] gnu: mu: Update to 1.10.8 and re-enable
 Guile bindings
Date: Thu, 23 Nov 2023 13:48:55 -0300
Christopher Baines <mail <at> cbaines.net> writes:

> Thanks for the patch, I've pushed this to master as
> c26ed5d6b971af11894015979f1e260df571a2be.

Thank you!

-- 
Thiago




Information forwarded to guix-patches <at> gnu.org:
bug#67244; Package guix-patches. (Thu, 23 Nov 2023 22:00:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 22 Dec 2023 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 139 days ago.

Previous Next


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