[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch core-updates-frozen updated: gnu: glib: Avoid timer.c test failur
From: |
guix-commits |
Subject: |
branch core-updates-frozen updated: gnu: glib: Avoid timer.c test failure on i686-linux. |
Date: |
Wed, 15 Sep 2021 16:30:10 -0400 |
This is an automated email from the git hooks/post-receive script.
civodul pushed a commit to branch core-updates-frozen
in repository guix.
The following commit(s) were added to refs/heads/core-updates-frozen by this
push:
new 35848d2 gnu: glib: Avoid timer.c test failure on i686-linux.
35848d2 is described below
commit 35848d2c2ed9263a4c15f5358fcb4ec26db8d18a
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Sep 15 22:10:06 2021 +0200
gnu: glib: Avoid timer.c test failure on i686-linux.
* gnu/packages/glib.scm (glib)[arguments]: In 'disable-failing-tests'
phase, modify "glib/tests/timer.c" on i[56]86 to address test failure.
---
gnu/packages/glib.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index d1d0f5b..c05a57d 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -231,6 +231,18 @@ shared NFS home directories.")
(substitute* '("contenttype.c" "gdbus-address-get-session.c"
"gdbus-peer.c" "appinfo.c" "desktop-app-info.c")
(("[ \t]*g_test_add_func.*;") "")))
+
+ ,@(if (let ((system (or (%current-target-system)
+ (%current-system))))
+ (or (string-prefix? "i686-" system)
+ (string-prefix? "i586-" system)))
+ ;; Add the 'volatile' qualifier for doubles to avoid excess
+ ;; precision, which leads to test failures:
+ ;; <https://gitlab.gnome.org/GNOME/glib/-/issues/820>.
+ '((substitute* "glib/tests/timer.c"
+ (("gdouble elapsed")
+ "volatile gdouble elapsed")))
+ '())
#t))
;; Python references are not being patched in patch-phase of build,
;; despite using python-wrapper as input. So we patch them manually.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch core-updates-frozen updated: gnu: glib: Avoid timer.c test failure on i686-linux.,
guix-commits <=