GNU bug report logs - #52186
[core-updates-frozen] [PATCH] gnu: libunwind-julia: Fix build on i686-linux.

Previous Next

Package: guix-patches;

Reported by: zimoun <zimon.toutoune <at> gmail.com>

Date: Mon, 29 Nov 2021 18:22:02 UTC

Severity: normal

Tags: patch

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: zimoun <zimon.toutoune <at> gmail.com>
To: 52186 <at> debbugs.gnu.org
Cc: efraim <at> flashner.co.il, maxim.cournoyer <at> gmail.com, zimoun <zimon.toutoune <at> gmail.com>
Subject: [bug#52186] [core-updates-frozen PATCH v2 14/17] gnu: julia-mutablearithmetics: Fix tests on i686-linux.
Date: Wed,  1 Dec 2021 16:54:39 +0100
* gnu/packages/julia-xyz.scm (julia-mutablearithmetics)[arguments]<#:phases>:
Conditionally disable the failing test.
---
 gnu/packages/julia-xyz.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index 14012a3c3b..363e7b5f11 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -3241,6 +3241,23 @@ (define-public julia-mutablearithmetics
         (sha256
          (base32 "1isyj8h4nx96cr6892d154v8pw1nhr7mjyz5bd6ffr2mkzb2bq4f"))))
     (build-system julia-build-system)
+    (arguments
+     `(#:phases
+       ,@(if (string-prefix? "i686" (or (%current-target-system)
+                                        (%current-system)))
+             '((modify-phases %standard-phases
+                 (add-after 'unpack 'remove-failing-test-i686
+                   (lambda _
+                     (substitute* "test/utilities.jl"
+                       ;; Non-deterministic returned value, e.g.,
+                       ;;    Expression: n == @allocated(f())
+                       ;;    Evaluated: 240 == 120
+                       ;; and for some other values:
+                       ;;    Got correct result, please change to @test
+                       ;; so @test_broken is not enough.
+                       (("@test n == @allocated f\\(\\)")
+                        " "))))))
+             '(%standard-phases))))
     (propagated-inputs
      `(("julia-offsetarrays" ,julia-offsetarrays)))
     (home-page "https://github.com/jump-dev/MutableArithmetics.jl")
-- 
2.32.0





This bug report was last modified 3 years and 170 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.