diff options
| author | Nguyễn Gia Phong <cnx@loang.net> | 2026-02-01 22:10:45 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-04-02 14:26:42 +0900 |
| commit | c655fe2dd5e939e888c8d1e42ce0f29b5b8c3ac3 (patch) | |
| tree | 1d853fcab4dd00cbd9f7607a3da88692fa22d510 /gnu/packages | |
| parent | 1601f1cf9586ae4ea2894adee5d506d0bf96b6ba (diff) | |
gnu: neomutt: Update to 20260105.
* gnu/packages/mail.scm (neomutt): Update to 20260105.
[native-inputs]:
Update neomutt-test-files to commit c769cdefd45b.
Add autosetup and remove its transitive dependency tcl.
[source]: Add snippet and its required modules to unbundle autosetup.
[arguments]
<phases>:
{configure}: Invoke autosetup directly.
{prepare-test-files}: Re-enable test_mutt_sig_exit_handler.
<configure-flags>:
Move --prefix to the definition of the configure phase.
Remove --ssl=1 which now conflicts with --gnutls.
Add --enable-autocrypt.
[inputs]: Add sqlite for autocrypt support.
Change-Id: I604876d66623bdc7d799d86962f60e437003f57f
Merges: https://codeberg.org/guix/guix/pulls/4835
Reviewed-by: Simon Tournier <zimon.toutoune@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/mail.scm | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 9ba8bdf5740..2af82c8b9b4 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm | |||
| @@ -67,6 +67,7 @@ | |||
| 67 | ;;; Copyright © 2025 Andreas Enge <andreas@enge.fr> | 67 | ;;; Copyright © 2025 Andreas Enge <andreas@enge.fr> |
| 68 | ;;; Copyright © 2026 Carlos Durán Domínguez <wurt@wurt.eu> | 68 | ;;; Copyright © 2026 Carlos Durán Domínguez <wurt@wurt.eu> |
| 69 | ;;; Copyright © 2026 Sergey Trofimov <sarg@sarg.org.ru> | 69 | ;;; Copyright © 2026 Sergey Trofimov <sarg@sarg.org.ru> |
| 70 | ;;; Copyright © 2026 Nguyễn Gia Phong <cnx@loang.net> | ||
| 70 | ;;; | 71 | ;;; |
| 71 | ;;; This file is part of GNU Guix. | 72 | ;;; This file is part of GNU Guix. |
| 72 | ;;; | 73 | ;;; |
| @@ -93,6 +94,7 @@ | |||
| 93 | #:use-module (gnu packages bash) | 94 | #:use-module (gnu packages bash) |
| 94 | #:use-module (gnu packages bison) | 95 | #:use-module (gnu packages bison) |
| 95 | #:use-module (gnu packages boost) | 96 | #:use-module (gnu packages boost) |
| 97 | #:use-module (gnu packages build-tools) | ||
| 96 | #:use-module (gnu packages c) | 98 | #:use-module (gnu packages c) |
| 97 | #:use-module (gnu packages calendar) | 99 | #:use-module (gnu packages calendar) |
| 98 | #:use-module (gnu packages check) | 100 | #:use-module (gnu packages check) |
| @@ -767,7 +769,7 @@ operating systems.") | |||
| 767 | (define-public neomutt | 769 | (define-public neomutt |
| 768 | (package | 770 | (package |
| 769 | (name "neomutt") | 771 | (name "neomutt") |
| 770 | (version "20250404") | 772 | (version "20260105") |
| 771 | (source | 773 | (source |
| 772 | (origin | 774 | (origin |
| 773 | (method git-fetch) | 775 | (method git-fetch) |
| @@ -776,8 +778,21 @@ operating systems.") | |||
| 776 | (commit version))) | 778 | (commit version))) |
| 777 | (file-name (git-file-name name version)) | 779 | (file-name (git-file-name name version)) |
| 778 | (sha256 | 780 | (sha256 |
| 779 | (base32 | 781 | (base32 "1sg6ifabci7xyp3zds1w906vx6jsmyjlfr6bqld7m7hj07by9ndd")) |
| 780 | "1w53g6l98cd3x2a6m0q245fm5gln95vzpgskvg4dz9yysmbki9az")))) | 782 | (modules '((guix build utils) |
| 783 | (ice-9 ftw) | ||
| 784 | (srfi srfi-26))) | ||
| 785 | (snippet | ||
| 786 | #~(begin | ||
| 787 | (define (delete-all-but directory . preserve) | ||
| 788 | (with-directory-excursion directory | ||
| 789 | (let* ((pred (negate (cut member <> | ||
| 790 | (cons* "." ".." preserve)))) | ||
| 791 | (items (scandir "." pred))) | ||
| 792 | (for-each (cut delete-file-recursively <>) items)))) | ||
| 793 | (delete-all-but "autosetup" | ||
| 794 | "mutt-gettext.tcl" | ||
| 795 | "mutt-iconv.tcl"))))) | ||
| 781 | (build-system gnu-build-system) | 796 | (build-system gnu-build-system) |
| 782 | (inputs | 797 | (inputs |
| 783 | (list cyrus-sasl | 798 | (list cyrus-sasl |
| @@ -793,18 +808,19 @@ operating systems.") | |||
| 793 | libxml2 | 808 | libxml2 |
| 794 | lmdb | 809 | lmdb |
| 795 | notmuch | 810 | notmuch |
| 811 | sqlite | ||
| 796 | `(,zstd "lib"))) | 812 | `(,zstd "lib"))) |
| 797 | (native-inputs | 813 | (native-inputs |
| 798 | `(("automake" ,automake) | 814 | `(("automake" ,automake) |
| 815 | ("autosetup" ,autosetup) | ||
| 799 | ("gettext-minimal" ,gettext-minimal) | 816 | ("gettext-minimal" ,gettext-minimal) |
| 800 | ("pkg-config" ,pkg-config) | 817 | ("pkg-config" ,pkg-config) |
| 801 | ("docbook-xsl" ,docbook-xsl) | 818 | ("docbook-xsl" ,docbook-xsl) |
| 802 | ("docbook-xml" ,docbook-xml-4.2) | 819 | ("docbook-xml" ,docbook-xml-4.2) |
| 803 | ("w3m" ,w3m) | 820 | ("w3m" ,w3m) |
| 804 | ("tcl" ,tcl) | ||
| 805 | ;; Test file data for the unit tests included in the neomutt source. | 821 | ;; Test file data for the unit tests included in the neomutt source. |
| 806 | ("neomutt-test-files" | 822 | ("neomutt-test-files" |
| 807 | ,(let ((commit "8629adab700a75c54e8e28bf05ad092503a98f75")) | 823 | ,(let ((commit "c769cdefd45bcdfc4a72664821bd7f67ad4d5f6c")) |
| 808 | (origin | 824 | (origin |
| 809 | (method git-fetch) | 825 | (method git-fetch) |
| 810 | (uri (git-reference | 826 | (uri (git-reference |
| @@ -813,12 +829,13 @@ operating systems.") | |||
| 813 | (file-name (git-file-name "neomutt-test-files" commit)) | 829 | (file-name (git-file-name "neomutt-test-files" commit)) |
| 814 | (sha256 | 830 | (sha256 |
| 815 | (base32 | 831 | (base32 |
| 816 | "1ci04nqkab9mh60zzm66sd6mhsr6lya8wp92njpbvafc86vvwdlr"))))))) | 832 | "0jvy9z2hmpvcxa10k7f68l2lqdxrppj36c4v8nmjrldkwgpkdaq3"))))))) |
| 817 | (arguments | 833 | (arguments |
| 818 | (list | 834 | (list |
| 819 | #:test-target "test" | 835 | #:test-target "test" |
| 820 | #:configure-flags | 836 | #:configure-flags |
| 821 | #~(list "--gpgme" | 837 | #~(list "--enable-autocrypt" |
| 838 | "--gpgme" | ||
| 822 | ;; Database, implies header caching. | 839 | ;; Database, implies header caching. |
| 823 | "--disable-tokyocabinet" | 840 | "--disable-tokyocabinet" |
| 824 | "--disable-qdbm" | 841 | "--disable-qdbm" |
| @@ -829,7 +846,6 @@ operating systems.") | |||
| 829 | "--gdbm" | 846 | "--gdbm" |
| 830 | 847 | ||
| 831 | "--gnutls" | 848 | "--gnutls" |
| 832 | "--ssl=1" | ||
| 833 | "--sasl" | 849 | "--sasl" |
| 834 | (string-append "--with-sasl=" | 850 | (string-append "--with-sasl=" |
| 835 | #$(this-package-input "cyrus-sasl")) | 851 | #$(this-package-input "cyrus-sasl")) |
| @@ -851,18 +867,11 @@ operating systems.") | |||
| 851 | "--zstd=1") | 867 | "--zstd=1") |
| 852 | #:phases | 868 | #:phases |
| 853 | #~(modify-phases %standard-phases | 869 | #~(modify-phases %standard-phases |
| 854 | ;; TODO: autosetup is meant to be included in the source, | ||
| 855 | ;; but we should package autosetup and use our own version of it. | ||
| 856 | (replace 'configure | 870 | (replace 'configure |
| 857 | (lambda* (#:key outputs inputs configure-flags #:allow-other-keys) | 871 | (lambda* (#:key configure-flags #:allow-other-keys) |
| 858 | (let* ((out (assoc-ref outputs "out")) | 872 | (apply invoke "autosetup" |
| 859 | (flags `(,@configure-flags)) | 873 | (string-append "--prefix=" #$output) |
| 860 | (bash (which "bash"))) | 874 | configure-flags))) |
| 861 | (setenv "SHELL" bash) | ||
| 862 | (setenv "CONFIG_SHELL" bash) | ||
| 863 | (apply invoke bash | ||
| 864 | (string-append (getcwd) "/configure") | ||
| 865 | flags)))) | ||
| 866 | (add-before 'check 'prepare-test-files | 875 | (add-before 'check 'prepare-test-files |
| 867 | (lambda _ | 876 | (lambda _ |
| 868 | (copy-recursively | 877 | (copy-recursively |
| @@ -872,7 +881,6 @@ operating systems.") | |||
| 872 | ;; (a different) one: test_expando_node_padding. | 881 | ;; (a different) one: test_expando_node_padding. |
| 873 | (substitute* "test/main.c" | 882 | (substitute* "test/main.c" |
| 874 | (("NEOMUTT_TEST_ITEM\\(test_expando_filter\\)") "") | 883 | (("NEOMUTT_TEST_ITEM\\(test_expando_filter\\)") "") |
| 875 | (("NEOMUTT_TEST_ITEM\\(test_mutt_sig_exit_handler\\)") "") | ||
| 876 | (("NEOMUTT_TEST_ITEM\\(test_mutt_path_tilde\\)") "")) | 884 | (("NEOMUTT_TEST_ITEM\\(test_mutt_path_tilde\\)") "")) |
| 877 | (with-directory-excursion "tests" | 885 | (with-directory-excursion "tests" |
| 878 | (setenv "NEOMUTT_TEST_DIR" (getcwd)) ; must be absolute | 886 | (setenv "NEOMUTT_TEST_DIR" (getcwd)) ; must be absolute |
