gnu: ocaml-batteries: Fix non determinism.
* gnu/packages/ocaml.scm (ocaml-batteries)[arguments]: Fix non deterministic file ordering.
This commit is contained in:
parent
4c7ffc2ab0
commit
850f787345
@ -2297,6 +2297,12 @@ many additional enhancements, including:
|
|||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'check) ; tests are run by the build phase
|
(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
|
(replace 'build
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((files
|
(let ((files
|
||||||
|
Loading…
Reference in New Issue
Block a user