gnu: ocaml-ocb-stubblr: Fix build failures using it.

* gnu/packages/ocaml.scm (ocaml-ocb-stubblr)[arguments]: Add a phase to
fix guix-specific issues.
master
Julien Lepiller 2019-05-14 20:37:05 +02:00
parent fbf786bd1d
commit 70a5701141
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 9 additions and 1 deletions

View File

@ -3153,7 +3153,15 @@ without writing or generating any C!")
`(#:build-flags (list "build" "--tests" "true")
#:phases
(modify-phases %standard-phases
(delete 'configure))))
(delete 'configure)
(add-before 'build 'fix-for-guix
(lambda _
(substitute* "src/ocb_stubblr.ml"
;; Do not fail when opam is not present or initialized
(("error_msgf \"error running opam\"") "\"\"")
;; Guix doesn't have cc, but it has gcc
(("\"cc\"") "\"gcc\""))
#t)))))
(inputs
`(("topkg" ,ocaml-topkg)
("opam" ,opam)))