cbaines pushed a commit to branch master
in repository guix.
commit dd5b74ba8b53cebcab7d0b5d17a32dc39baf78e0
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Thu Apr 3 23:23:14 2025 +0900
gnu: gmime: Skip non-deterministic tests.
* gnu/packages/patches/gmime-disable-tests.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/mail.scm (gmime) [source]: Apply it.
Change-Id: Ic7bee405c79bf9ab149559563f515cc8dea4216f
---
gnu/local.mk | 1 +
gnu/packages/mail.scm | 3 ++-
gnu/packages/patches/gmime-disable-tests.patch | 20 ++++++++++++++++++++
3 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index ce45787ef4..8ff2af1474 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1491,6 +1491,7 @@ dist_patch_DATA =
\
%D%/packages/patches/glibc-2.29-git-updates.patch \
%D%/packages/patches/glibc-2.29-supported-locales.patch \
%D%/packages/patches/glibc-supported-locales.patch \
+ %D%/packages/patches/gmime-disable-tests.patch \
%D%/packages/patches/gmp-arm-asm-nothumb.patch \
%D%/packages/patches/gmp-faulty-test.patch \
%D%/packages/patches/gnome-2048-fix-positional-argument.patch \
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 485046fe3d..9df9c63aa0 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -850,7 +850,8 @@ It adds a large amount of new and improved features to
mutt.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0493dngbasd2nngzsp4b8v4cnl4vb88hc1qga5y9w7l6c89hxn1w"))))
+ (base32 "0493dngbasd2nngzsp4b8v4cnl4vb88hc1qga5y9w7l6c89hxn1w"))
+ (patches (search-patches "gmime-disable-tests.patch"))))
(build-system gnu-build-system)
(arguments
(list #:configure-flags
diff --git a/gnu/packages/patches/gmime-disable-tests.patch
b/gnu/packages/patches/gmime-disable-tests.patch
new file mode 100644
index 0000000000..3d156a68c2
--- /dev/null
+++ b/gnu/packages/patches/gmime-disable-tests.patch
@@ -0,0 +1,20 @@
+The test-pgp and test-pgpmime fail sporadically.
+See: https://github.com/jstedfast/gmime/issues/177
+
+*** source/tests/Makefile.am 1970-01-01 09:00:01.000000000 +0900
+--- tests/Makefile.am.new 2025-04-03 23:11:19.220597686 +0900
+***************
+*** 22,33 ****
+ test-autocrypt \
+ test-mime
+
+- if ENABLE_CRYPTO
+- AUTOMATED_TESTS += \
+- test-pgp \
+- test-pgpmime
+- endif
+-
+ MANUAL_TESTS = \
+ test-best \
+ test-parser \
+--- 22,27 ----