Subject: [core-updates-frozen PATCH v2 15/17] gnu: julia-structarrays: Fix tests on i686-linux.

From: zimoun <[email-masked]>
Date: Wed, 1 Dec 2021 16:54:40 +0100

* gnu/packages/julia-xyz.scm (julia-structarrays)[arguments]<#:phases>:
Conditionally replace the incorrect type in the test suite.
---
 gnu/packages/julia-xyz.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index 363e7b5f11..02c652ce28 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -4616,6 +4616,17 @@ (define-public julia-structarrays
         (sha256
          (base32 "0rjcpyjwzg70n87q5r9c5i1qzigavncslxssm3rk5a3y549py56v"))))
     (build-system julia-build-system)
+    (arguments
+     `(#:phases
+       ,@(if (string-prefix? "i686" (or (%current-target-system)
+                                        (%current-system)))
+             '((modify-phases %standard-phases
+                 (add-after 'unpack 'fix-tests-int32-i686
+                   (lambda _
+                     (substitute* '("src/utils.jl"
+                                    "test/runtests.jl")
+                       (("Int64") "Int32"))))))
+             '(%standard-phases))))
     (propagated-inputs
      `(("julia-dataapi" ,julia-dataapi)
        ("julia-staticarrays" ,julia-staticarrays)
-- 
2.32.0