guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: ocaml-cmdliner: Fix non determinism.


From: guix-commits
Subject: 02/02: gnu: ocaml-cmdliner: Fix non determinism.
Date: Thu, 6 Jun 2019 09:12:55 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit 6c79cee2e30ccfae6aee40c84e8c160f4b4fe76f
Author: Julien Lepiller <address@hidden>
Date:   Thu Jun 6 15:08:42 2019 +0200

    gnu: ocaml-cmdliner: Fix non determinism.
    
    * gnu/packages/ocaml.scm (ocaml-cmdliner)[arguments]: Patch build.ml to
    fix a file ordering issue.
---
 gnu/packages/ocaml.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 08b4fcf..492149a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1627,7 +1627,13 @@ spans without being subject to operating system calendar 
time adjustments.")
                                          "/lib/ocaml/site-lib/cmdliner"))
        #:phases
        (modify-phases %standard-phases
-         (delete 'configure))))
+         (delete 'configure)
+         (add-before 'build 'fix-source-file-order
+           (lambda _
+             (substitute* "build.ml"
+               (("Sys.readdir dir")
+                "let a = Sys.readdir dir in Array.sort String.compare a; a"))
+             #t)))))
     (home-page "http://erratique.ch/software/cmdliner";)
     (synopsis "Declarative definition of command line interfaces for OCaml")
     (description "Cmdliner is a module for the declarative definition of 
command



reply via email to

[Prev in Thread] Current Thread [Next in Thread]