Subject: [bug#52186] [core-updates-frozen PATCH v2 07/17] gnu: julia-blockarrays: Fix tests on i686-linux.

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

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

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index e6efbfdf45..d7add65fc6 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -340,6 +340,16 @@ (define-public julia-blockarrays
         (sha256
          (base32 "1by26036fk9mawmcgqxpwizgbs398v9p6vrbsgg7h6llqn3q9iw1"))))
     (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* "test/test_blockarrays.jl"
+                       (("Int64") "Int32"))))))
+             '(%standard-phases))))
     (propagated-inputs
      `(("julia-arraylayouts" ,julia-arraylayouts)
        ("julia-fillarrays" ,julia-fillarrays)))
-- 
2.32.0