all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
To: 67244@debbugs.gnu.org
Subject: [bug#67244] [PATCH] gnu: mu: Update to 1.10.8 and re-enable Guile bindings
Date: Fri, 17 Nov 2023 14:21:44 -0300	[thread overview]
Message-ID: <37a3ddf9eece11be6ecc747e9647a7d392128ec6.1700240346.git.thiago.bauermann@linaro.org> (raw)

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




             reply	other threads:[~2023-11-17 21:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-17 17:21 Thiago Jung Bauermann [this message]
2023-11-23 16:20 ` bug#67244: [PATCH] gnu: mu: Update to 1.10.8 and re-enable Guile bindings Christopher Baines
2023-11-23 16:48   ` [bug#67244] " Thiago Jung Bauermann

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=37a3ddf9eece11be6ecc747e9647a7d392128ec6.1700240346.git.thiago.bauermann@linaro.org \
    --to=thiago.bauermann@linaro.org \
    --cc=67244@debbugs.gnu.org \
    /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.