guix_mirror_bot pushed a commit to branch next-master
in repository guix.

commit a58de0b454de00f0259d50e25160a33539995660
Author: Carlos Durán Domínguez <[email protected]>
AuthorDate: Fri Jan 16 01:18:40 2026 +0100

    gnu: mailcap: Update to 2.1.54.
    
    * gnu/packages/mail.scm (mailcap): Update to 2.1.54.  Fix references to
    /usr/bin/xdg-open.
    
    Change-Id: I25c0e3da789b98a2bd909a5551b4bdb93735cde9
    Signed-off-by: Gabriel Wicki <[email protected]>
---
 gnu/packages/mail.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index d1d472e251..bc0a8ce3d7 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -65,6 +65,7 @@
 ;;; Copyright © 2024 Janneke Nieuwenhuizen <[email protected]>
 ;;; Copyright © 2025 Zacchaeus <[email protected]>
 ;;; Copyright © 2025 Andreas Enge <[email protected]>
+;;; Copyright © 2026 Carlos Durán Domínguez <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1139,7 +1140,7 @@ MIME-encoded email package.")
       (license license:bsd-3))))
 
 (define-public mailcap
-  (let* ((version "2.1.53")
+  (let* ((version "2.1.54")
          (tag ;; mailcap tags their releases like this: rMajor-minor-patch
           (string-append "r" (string-join (string-split version #\.) "-"))))
     (package
@@ -1153,12 +1154,17 @@ MIME-encoded email package.")
                (commit tag)))
          (file-name (git-file-name name version))
          (sha256
-          (base32 "14939pq7h25rh9100z72vzzx810yqg98im9gz2fbhh47iaj1wrbb"))))
+          (base32 "163kf88spdvywhym08487ia7y88dq7mn93hz8q4qa1wjha4rhb5n"))))
       (build-system gnu-build-system)
       (arguments
        '(#:phases
          (modify-phases %standard-phases
            (delete 'configure)
+           (add-before 'install 'patch-xdg-open-references
+             (lambda _
+               (substitute* "mailcap"
+                 ;; If /usr/bin/xdg-open does not exists.
+                 (("/usr/bin/xdg-open") "/usr/bin/env xdg-open"))))
            (add-before 'install 'set-dest-dir
              (lambda* (#:key outputs #:allow-other-keys)
                (let ((out (assoc-ref outputs "out")))

Reply via email to