diff options
author | Julien Lepiller <julien@lepiller.eu> | 2019-06-06 20:09:34 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2019-06-06 21:23:38 +0200 |
commit | 850f7873452a8936c5cdb5206aac728e18c44d4c (patch) | |
tree | ee297c35778139209c6bafaea0cdca9cab5b5fb0 /gnu/packages/ocaml.scm | |
parent | 4c7ffc2ab0603336d2a76d3892043dec1edb8317 (diff) | |
download | patches-850f7873452a8936c5cdb5206aac728e18c44d4c.tar patches-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/ocaml.scm')
-rw-r--r-- | gnu/packages/ocaml.scm | 6 |
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 |