GNU bug report logs -
#34412
[PATCH] gnu: ocaml-merlin: Added tests
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#34412: [PATCH] gnu: ocaml-merlin: Added tests
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 34412 <at> debbugs.gnu.org.
--
34412: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34412
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hi,
Thanks for your contribution with patch#34412 [1]. The ’ocaml-merlin’
contains this:
--8<---------------cut here---------------start------------->8---
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "dune" "runtest" "-p" "merlin,dot-merlin-reader")))))))
--8<---------------cut here---------------end--------------->8---
added by 980c33bd3f16e44a123ef21408a56e59ebb76373. And the package
’ocaml4.07-merlin’ had been removed by
188e3e2e6878346b0bdc8b46084f458abe86826c.
Therefore, closing.
Cheers,
simon
1: <http://issues.guix.gnu.org/issue/34412>
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
* gnu/packages/ocaml.scm (ocaml-merlin): Added tests
---
gnu/packages/ocaml.scm | 23 +++++++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 07fcf92ae..0b33c257a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -66,6 +66,7 @@
#:use-module (gnu packages version-control)
#:use-module (gnu packages virtualization)
#:use-module (gnu packages web-browsers)
+ #:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
#:use-module (guix build-system dune)
@@ -4785,6 +4786,11 @@ format}. @code{craml} is released as a single binary (called @code{craml}).")
(url "https://github.com/ocaml/merlin.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; fix a dune file calling missing dependencies
+ (substitute* "tests/locate/partial-cmt/dune"
+ (("a.ml a.mli") ""))))
(sha256
(base32
"15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
@@ -4794,9 +4800,22 @@ format}. @code{craml} is released as a single binary (called @code{craml}).")
("ocaml-yojson" ,ocaml-yojson)
("ocaml-easy-format" ,ocaml-easy-format)))
(native-inputs
- `(("ocaml-findlib" ,ocaml-findlib)))
+ `(("ocaml-findlib" ,ocaml-findlib)
+ ("ocaml-craml" ,ocaml-craml)
+ ("jq" ,jq)))
(arguments
- '(#:tests? #f)) ;; Errors in tests in version 3.2.2
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'remove-failing
+ (lambda _
+ (delete-file-recursively "tests/warnings/")
+ (delete-file-recursively ;fail because of shebang patching
+ "tests/locate/context-detection/")
+ #t))
+ (replace 'check
+ (lambda _
+ (invoke "make" "test")
+ #t)))))
(synopsis "Context sensitive completion for OCaml in Vim and Emacs")
(description "Merlin is an editor service that provides modern IDE
features for OCaml. Emacs and Vim support is provided out-of-the-box.
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 3 years and 49 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.