guix-commits
[Top][All Lists]
Advanced

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

03/05: gnu: ocaml-num: Fix race condition.


From: guix-commits
Subject: 03/05: gnu: ocaml-num: Fix race condition.
Date: Sat, 30 Apr 2022 12:02:29 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit d0da63c576e3e3149d88120edc260c9be79dabdf
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Sat Apr 30 16:54:43 2022 +0200

    gnu: ocaml-num: Fix race condition.
    
    * gnu/packages/ocaml.scm (ocaml-num)[arguments]: Fix race condition.
---
 gnu/packages/ocaml.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index fa98f6525d..85bf4d064b 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1045,6 +1045,19 @@ written in Objective Caml.")
        (sha256
         (base32 "1vzdnvpj5dbj3ifx03v25pj2jj1ccav072v4d29pk1czdba2lzfc"))))
     (build-system dune-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-race
+           (lambda _
+             ;; There's a race between bng.o and bng_generic.c.  Both depend on
+             ;; the architecture specific bng.c, but only the latter declares
+             ;; the dependency.
+             (mkdir-p "_build/default/src")
+             (for-each
+               (lambda (f)
+                 (copy-file f (string-append "_build/default/" f)))
+               (find-files "src" "bng_.*\\.c")))))))
     (home-page "https://github.com/ocaml/num";)
     (synopsis "Arbitrary-precision integer and rational arithmetic")
     (description "OCaml-Num contains the legacy Num library for



reply via email to

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