gnu: guile@3.0.8: Disable parallel builds when cross-compiling.
authorLudovic Courtès <ludo@gnu.org>
Tue, 1 Mar 2022 09:59:02 +0000 (10:59 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 1 Mar 2022 11:33:06 +0000 (12:33 +0100)
Cross builds, as in "guix build guile@3.0.8 --target=i586-pc-gnu", are
not bit-reproducible unless built sequentially.

* gnu/packages/guile.scm (guile-3.0-latest)[arguments]: Set #:parallel-build?
to #f when cross-compiling.

gnu/packages/guile.scm

index fc969f3..6f4afe9 100644 (file)
@@ -403,8 +403,10 @@ without requiring the source code to be rewritten.")
     (arguments
      (substitute-keyword-arguments (package-arguments guile-3.0)
        ;; Guile 3.0.8 is bit-reproducible when built in parallel, thanks to
-       ;; its multi-stage build process for cross-module inlining.
-       ((#:parallel-build? _ #f) #t)))))
+       ;; its multi-stage build process for cross-module inlining, except when
+       ;; cross-compiling.
+       ((#:parallel-build? _ #f)
+        (not (%current-target-system)))))))
 
 (define-public guile-3.0/fixed
   ;; A package of Guile that's rarely changed.  It is the one used in the