guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch core-updates updated: gnu: check: Fix failing tests on powerpc64l


From: guix-commits
Subject: branch core-updates updated: gnu: check: Fix failing tests on powerpc64le-linux.
Date: Fri, 18 Jun 2021 14:07:37 -0400

This is an automated email from the git hooks/post-receive script.

marusich pushed a commit to branch core-updates
in repository guix.

The following commit(s) were added to refs/heads/core-updates by this push:
     new bcdc134  gnu: check: Fix failing tests on powerpc64le-linux.
bcdc134 is described below

commit bcdc13454c4afab37b650d4bbfa95e539060619f
Author: Chris Marusich <cmmarusich@gmail.com>
AuthorDate: Thu Jun 3 23:12:24 2021 -0700

    gnu: check: Fix failing tests on powerpc64le-linux.
    
    Fixes <https://bugs.gnu.org/47698>.
    
    * gnu/packages/check.scm (check)[source]: Apply unreleased upstream commit
    4fbe702 as a patch.
---
 gnu/packages/check.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 739870d..73874c2 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -147,7 +147,27 @@ like Jasmine or Mocha.")
                           version "/check-" version ".tar.gz"))
       (sha256
        (base32
-        "02m25y9m46pb6n46s51av62kpd936lkfv3b13kfpckgvmh5lxpm8"))))
+        "02m25y9m46pb6n46s51av62kpd936lkfv3b13kfpckgvmh5lxpm8"))
+      (patches
+       (list
+        ;; This patch fixes some tests that would otherwise fail on
+        ;; powerpc64le-linux.  Without this patch, the tests make certain
+        ;; assumptions about floating point number precision that are not true
+        ;; on that platform.
+        ;;
+        ;; TODO: Remove this patch when updating to the next check release,
+        ;; since it will be included there.  See:
+        ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47698
+        (origin
+          (method url-fetch)
+          (uri
+           (string-append "https://github.com/libcheck/check/commit/";
+                          "4fbe702fa4f35bee8a90512f9f59d1441c4ae82e.patch"))
+          (file-name (string-append name
+                                    "-fix-test-precision-for-ppc.patch"))
+          (sha256
+           (base32
+            "04qg1p9afdd6453k18qskazrvscysdcjz9j6w4i6p5x4xyma19v6")))))))
     (build-system gnu-build-system)
     (home-page "https://libcheck.github.io/check/";)
     (synopsis "Unit test framework for C")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]