summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2019-06-06 20:09:34 +0200
committerJulien Lepiller <julien@lepiller.eu>2019-06-06 21:23:38 +0200
commit850f7873452a8936c5cdb5206aac728e18c44d4c (patch)
treeee297c35778139209c6bafaea0cdca9cab5b5fb0 /gnu/packages
parent4c7ffc2ab0603336d2a76d3892043dec1edb8317 (diff)
downloadguix-850f7873452a8936c5cdb5206aac728e18c44d4c.tar.gz
gnu: ocaml-batteries: Fix non determinism.
* gnu/packages/ocaml.scm (ocaml-batteries)[arguments]: Fix non
deterministic file ordering.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/ocaml.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 492149af9a..bd66ab04aa 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2297,6 +2297,12 @@ many additional enhancements, including:
      `(#:phases
        (modify-phases %standard-phases
          (delete 'check) ; tests are run by the build phase
+         (add-before 'build 'fix-nondeterminism
+           (lambda _
+             (substitute* "setup.ml"
+               (("Sys.readdir dirname")
+                "let a = Sys.readdir dirname in Array.sort String.compare a; a"))
+             #t))
          (replace 'build
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let ((files