GNU bug report logs - #49150
[PATCH 0/9] Add ocamlformat and dependencies

Previous Next

Package: guix-patches;

Reported by: Xinglu Chen <public <at> yoctocell.xyz>

Date: Mon, 21 Jun 2021 09:58:01 UTC

Severity: normal

Tags: patch

Done: Julien Lepiller <julien <at> lepiller.eu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49150 in the body.
You can then email your comments to 49150 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 09:58:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xinglu Chen <public <at> yoctocell.xyz>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 21 Jun 2021 09:58:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/9] Add ocamlformat and dependencies
Date: Mon, 21 Jun 2021 11:56:59 +0200
[Message part 1 (text/plain, inline)]
This series add ‘ocamlformat’, a code formatter for OCaml, and some
missing dependencies.  It also updates the ‘ocaml-bisect-ppx’ package,
otherwise ‘ocamlformat’ would not build.

Some tests for ‘ocamlformat’ are failing, not sure why, so I have
disabled them for now.

Xinglu Chen (9):
  gnu: ocaml-bisect-ppx: Update to 2.6.1.
  gnu: Add ocaml-menhir-lib.
  gnu: Add ocaml-menhir-sdk.
  gnu: Add ocaml-uucd.
  gnu: Add ocaml-uucp.
  gnu: Add ocaml-uuseg.
  gnu: Add ocaml-fix.
  gnu: Add ocaml-dune-build-info.
  gnu: Add ocamlformat.

 gnu/packages/ocaml.scm | 240 ++++++++++++++++++++++++++++++++++++++---
 1 file changed, 224 insertions(+), 16 deletions(-)


base-commit: 71c3f954194770956b39d311fab44ee6ddb4f666
-- 
2.32.0


[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 10:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 49150 <at> debbugs.gnu.org
Subject: [PATCH 1/9] gnu: ocaml-bisect-ppx: Update to 2.6.1.
Date: Mon, 21 Jun 2021 12:01:49 +0200
* gnu/packages/ocaml.scm (ocaml-bisect-ppx): Update to 2.6.1.
[propagated-inputs]: Adjust accordingly.
[arguments]: Remove unnecessary phase; disable tests.
---
 gnu/packages/ocaml.scm | 22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 21d16a46a1..cccbd45dc4 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6513,7 +6513,7 @@ combinators.")
 (define-public ocaml-bisect-ppx
   (package
     (name "ocaml-bisect-ppx")
-    (version "1.4.2")
+    (version "2.6.1")
     (source
      (origin
        (method git-fetch)
@@ -6523,24 +6523,14 @@ combinators.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "0900vli5kw7s5kdam0n4cqsfsfqb7mdb3azn3i55595gilg1vyn8"))))
+         "1knglw1b2kjr9jnd8cpfzmm581abxxdcx9l3cd2balg6gnac7qk1"))))
     (build-system dune-build-system)
     (propagated-inputs
-     `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree-1)
-       ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
-       ("ocaml-ounit" ,ocaml-ounit)))
+     `(("ocaml-ppxlib" ,ocaml-ppxlib)
+       ("ocaml-cmdliner" ,ocaml-cmdliner)))
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-before 'build 'fix-deprecated
-           (lambda _
-             ;; Fixed upstream in 22dd1ad9a0c9629f60599c22d82c6488394d6d32, but
-             ;; not in a release yet.
-             (substitute* "src/ppx/instrument.ml"
-               (("module Ast = Ast_405")
-                "module Ast = Migrate_parsetree.Ast_405
-module Ast_405 = Ast"))
-             #t)))))
+     ;; Tests require ocamlformat which would lead to circular dependencies
+     '(#:tests? #f))
     (home-page "https://github.com/aantron/bisect_ppx")
     (synopsis "Code coverage for OCaml")
     (description "Bisect_ppx helps you test thoroughly.  It is a small
-- 
2.32.0






Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 10:02:02 GMT) Full text and rfc822 format available.

Message #11 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 49150 <at> debbugs.gnu.org
Subject: [PATCH 2/9] gnu: Add ocaml-menhir-lib.
Date: Mon, 21 Jun 2021 12:01:51 +0200
* gnu/packages/ocaml.scm (ocaml-menhir-lib): New variable.
---
 gnu/packages/ocaml.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index cccbd45dc4..08406a206d 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1056,6 +1056,19 @@ Knuth’s LR(1) parser construction technique.")
     ;; are QPL licensed.
     (license (list license:gpl2+ license:qpl))))
 
+(define-public ocaml-menhir-lib
+  (package
+    (inherit ocaml-menhir)
+    (name "ocaml-menhir-lib")
+    (arguments
+     '(#:package "menhirLib"
+       #:tests? #f))
+    (properties
+     `((upstream-name . "menhirLib")))
+    (synopsis "Runtime support library for parsers generated by Menhir")
+    (description "This package provides a runtime support library for parsers
+generated by Menhir.")))
+
 (define-public ocaml-bigarray-compat
   (package
     (name "ocaml-bigarray-compat")
-- 
2.32.0






Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 10:02:02 GMT) Full text and rfc822 format available.

Message #14 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 49150 <at> debbugs.gnu.org
Subject: [PATCH 3/9] gnu: Add ocaml-menhir-sdk.
Date: Mon, 21 Jun 2021 12:01:53 +0200
* gnu/packages/ocaml.scm (ocaml-menhir-sdk): New variable.
---
 gnu/packages/ocaml.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 08406a206d..d7d3afd36c 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1069,6 +1069,19 @@ Knuth’s LR(1) parser construction technique.")
     (description "This package provides a runtime support library for parsers
 generated by Menhir.")))
 
+(define-public ocaml-menhir-sdk
+  (package
+    (inherit ocaml-menhir)
+    (name "ocaml-menhir-sdk")
+    (arguments
+     '(#:package "menhirSdk"
+       #:test-target "sdk"))
+    (properties
+     `((upstream-name . "menhirSdk")))
+    (synopsis "Compile-time library for auxiliary tools related to Menhir")
+    (description "This package provides a compile-time library for auxiliary
+tools related to Menhir.")))
+
 (define-public ocaml-bigarray-compat
   (package
     (name "ocaml-bigarray-compat")
-- 
2.32.0






Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 10:03:02 GMT) Full text and rfc822 format available.

Message #17 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 49150 <at> debbugs.gnu.org
Subject: [PATCH 4/9] gnu: Add ocaml-uucd.
Date: Mon, 21 Jun 2021 12:01:56 +0200
* gnu/packages/ocaml.scm (ocaml-uucd): New variable.
---
 gnu/packages/ocaml.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index d7d3afd36c..34b909bcb1 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6957,6 +6957,39 @@ provides support to program with time varying values: declarative events and
 client chooses the concrete timeline.")
     (license license:lgpl2.1+)))
 
+(define-public ocaml-uucd
+  (package
+    (name "ocaml-uucd")
+    (version "13.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://erratique.ch/software/uucd/releases/"
+                           "uucd-" version ".tbz"))
+       (sha256
+        (base32
+         "1fg77hg4ibidkv1x8hhzl8z3rzmyymn8m4i35jrdibb8adigi8v2"))))
+    (build-system ocaml-build-system)
+    (arguments
+     '(#:build-flags '("build" "--tests" "true")
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (propagated-inputs
+     `(("ocaml-xmlm" ,ocaml-xmlm)))
+    (native-inputs
+     `(("opam" ,opam)
+       ("ocaml-findlib" ,ocaml-findlib)
+       ("ocamlbuild" ,ocamlbuild)
+       ("ocaml-topkg" ,ocaml-topkg)))
+    (home-page "https://erratique.ch/software/uucd")
+    (synopsis "Unicode character database decoder for OCaml")
+    (description "Uucd is an OCaml module to decode the data of the Unicode
+character database from its XML representation.  It provides high-level (but
+not necessarily efficient) access to the data so that efficient
+representations can be extracted.")
+    (license license:isc)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 10:03:02 GMT) Full text and rfc822 format available.

Message #20 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 49150 <at> debbugs.gnu.org
Subject: [PATCH 5/9] gnu: Add ocaml-uucp.
Date: Mon, 21 Jun 2021 12:01:58 +0200
* gnu/packages/ocaml.scm (ocaml-uucp): New variable.
---
 gnu/packages/ocaml.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 34b909bcb1..8df397fd2e 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6990,6 +6990,38 @@ not necessarily efficient) access to the data so that efficient
 representations can be extracted.")
     (license license:isc)))
 
+(define-public ocaml-uucp
+  (package
+    (name "ocaml-uucp")
+    (version "13.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://erratique.ch/software/uucp/releases/"
+                           "uucp-" version ".tbz"))
+       (sha256
+        (base32
+         "19kf8ypxaakacgg1dwwfzkc2zicaj88cmw11fw2z7zl24dn4gyiq"))))
+    (build-system ocaml-build-system)
+    (arguments
+     '(#:build-flags '("build" "--tests" "true")
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (native-inputs
+     `(("opam" ,opam)
+       ("ocaml-findlib" ,ocaml-findlib)
+       ("ocamlbuild" ,ocamlbuild)
+       ("ocaml-topkg" ,ocaml-topkg)
+       ("ocaml-uucd" ,ocaml-uucd)
+       ("ocaml-uunf" ,ocaml-uunf)
+       ("ocaml-uutf" ,ocaml-uutf)))
+    (home-page "https://erratique.ch/software/uucp")
+    (synopsis "Unicode character properties for OCaml")
+    (description "Uucp is an OCaml library providing efficient access to a
+selection of character properties of the Unicode character database.")
+    (license license:isc)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 10:03:03 GMT) Full text and rfc822 format available.

Message #23 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 49150 <at> debbugs.gnu.org
Subject: [PATCH 9/9] gnu: Add ocamlformat.
Date: Mon, 21 Jun 2021 12:02:04 +0200
* gnu/packages/ocaml.scm (ocamlformat): New variable.
---
 gnu/packages/ocaml.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index b78e3ab2fa..ca15b86c8a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7103,6 +7103,52 @@ or the list of statically linked libraries with their versions.  It supports
 reporting the version from the version control system during development to
 get an precise reference of when the executable was built.")))
 
+(define-public ocamlformat
+  (package
+    (name "ocamlformat")
+    (version "0.18.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/ocaml-ppx/ocamlformat")
+              (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+            "0n6363km8xr81pvyk453n6h2mb0256c5yxw3p1li4dn83f3lwxr1"))))
+    (build-system dune-build-system)
+    (arguments
+     '(#:package "ocamlformat"
+       ;; FIXME: The expected format is slightly different than what the
+       ;; produced format is for test/cli/stdin.t
+       #:tests? #f))
+    (propagated-inputs
+      `(("ocaml-version" ,ocaml-version)
+        ("ocaml-base" ,ocaml-base)
+        ("ocaml-cmdliner" ,ocaml-cmdliner)
+        ("ocaml-dune-build-info" ,ocaml-dune-build-info)
+        ("ocaml-fix" ,ocaml-fix)
+        ("ocaml-fpath" ,ocaml-fpath)
+        ("ocaml-menhir" ,ocaml-menhir)
+        ("ocaml-menhir-lib" ,ocaml-menhir-lib)
+        ("ocaml-menhir-sdk" ,ocaml-menhir-sdk)
+        ("ocaml-odoc" ,ocaml-odoc)
+        ("ocaml-ppxlib" ,ocaml-ppxlib)
+        ("ocaml-re" ,ocaml-re)
+        ("ocaml-stdio" ,ocaml-stdio)
+        ("ocaml-uuseg" ,ocaml-uuseg)
+        ("ocaml-uutf" ,ocaml-uutf)))
+    (native-inputs
+      `(("ocaml-alcotest" ,ocaml-alcotest)
+        ("ocaml-ocp-indent" ,ocaml-ocp-indent)
+        ("ocaml-bisect-ppx" ,ocaml-bisect-ppx)))
+    (home-page "https://github.com/ocaml-ppx/ocamlformat")
+    (synopsis "Auto-formatter for OCaml code")
+    (description "OCamlFormat is a tool to automatically format OCaml code in
+a uniform style.")
+    (license license:expat)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 10:03:03 GMT) Full text and rfc822 format available.

Message #26 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 49150 <at> debbugs.gnu.org
Subject: [PATCH 6/9] gnu: Add ocaml-uuseg.
Date: Mon, 21 Jun 2021 12:01:59 +0200
* gnu/packages/ocaml.scm (ocaml-uuseg): New variable.
---
 gnu/packages/ocaml.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 8df397fd2e..c2e1039146 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7022,6 +7022,45 @@ representations can be extracted.")
 selection of character properties of the Unicode character database.")
     (license license:isc)))
 
+(define-public ocaml-uuseg
+  (package
+    (name "ocaml-uuseg")
+    (version "13.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://erratique.ch/software/uuseg/releases/"
+                           "uuseg-" version ".tbz"))
+       (sha256
+        (base32
+         "1a635j8ra6p27g1ivfln3387lhwqmf6vq4r6bn7b6n1qsqyi1rls"))))
+    (build-system ocaml-build-system)
+    (arguments
+     '(#:build-flags '("build" "--tests" "true")
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (propagated-inputs
+     `(("ocaml-uucp" ,ocaml-uucp)
+       ("ocaml-uutf" ,ocaml-uutf)
+       ("ocaml-cmdliner" ,ocaml-cmdliner)))
+    (native-inputs
+     `(("opam" ,opam)
+       ("ocaml-findlib" ,ocaml-findlib)
+       ("ocamlbuild" ,ocamlbuild)
+       ("ocaml-topkg" ,ocaml-topkg)))
+    (home-page "https://erratique.ch/software/uuseg")
+    (synopsis "Unicode text segmentation for OCaml")
+    (description "Uuseg is an OCaml library for segmenting Unicode text. It
+implements the locale independent Unicode text segmentation algorithms to
+detect grapheme cluster, word and sentence boundaries and the Unicode line
+breaking algorithm to detect line break opportunities.
+
+The library is independent from any IO mechanism or Unicode text data
+structure and it can process text without a complete in-memory
+representation.")
+    (license license:isc)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 10:03:03 GMT) Full text and rfc822 format available.

Message #29 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 49150 <at> debbugs.gnu.org
Subject: [PATCH 7/9] gnu: Add ocaml-fix.
Date: Mon, 21 Jun 2021 12:02:01 +0200
* gnu/packages/ocaml.scm (ocaml-fix): New variable.
---
 gnu/packages/ocaml.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index c2e1039146..94e5f23ec0 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7061,6 +7061,30 @@ structure and it can process text without a complete in-memory
 representation.")
     (license license:isc)))
 
+(define-public ocaml-fix
+  (package
+    (name "ocaml-fix")
+    (version "20201120")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://gitlab.inria.fr/fpottier/fix")
+              (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+            "1j40mg1gy03c0djzx3nzmpvnl984s14n04zwcmp2xnlidq48kvs4"))))
+    (build-system dune-build-system)
+    (arguments
+     ;; No tests.
+     '(#:tests? #f))
+    (home-page "https://gitlab.inria.fr/fpottier/fix")
+    (synopsis "Facilities for memoization and fixed points")
+    (description "This package provides helpers with various constructions
+that involve memoization and recursion.")
+    (license license:lgpl2.0)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 21 Jun 2021 10:03:04 GMT) Full text and rfc822 format available.

Message #32 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 49150 <at> debbugs.gnu.org
Subject: [PATCH 8/9] gnu: Add ocaml-dune-build-info.
Date: Mon, 21 Jun 2021 12:02:03 +0200
* gnu/packages/ocaml.scm (ocaml-dune-build-info): New variable.
---
 gnu/packages/ocaml.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 94e5f23ec0..b78e3ab2fa 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7085,6 +7085,24 @@ representation.")
 that involve memoization and recursion.")
     (license license:lgpl2.0)))
 
+(define-public ocaml-dune-build-info
+  (package
+    (inherit dune)
+    (name "ocaml-dune-build-info")
+    (build-system dune-build-system)
+    (arguments
+     '(#:package "dune-build-info"
+       ;; No separate test suite from dune.
+       #:tests? #f))
+    (propagated-inputs
+     `(("ocaml-odoc" ,ocaml-odoc)))
+    (synopsis "Embed build informations inside executable")
+    (description "This package allows one to access information about how the
+executable was built, such as the version of the project at which it was built
+or the list of statically linked libraries with their versions.  It supports
+reporting the version from the version control system during development to
+get an precise reference of when the executable was built.")))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Sun, 27 Jun 2021 13:21:02 GMT) Full text and rfc822 format available.

Message #35 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: 49150 <at> debbugs.gnu.org
Subject: Re: [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk.
Date: Sun, 27 Jun 2021 15:20:04 +0200
Le Mon, 21 Jun 2021 12:01:53 +0200,
Xinglu Chen <public <at> yoctocell.xyz> a écrit :

> * gnu/packages/ocaml.scm (ocaml-menhir-sdk): New variable.
> ---
>  gnu/packages/ocaml.scm | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
> index 08406a206d..d7d3afd36c 100644
> --- a/gnu/packages/ocaml.scm
> +++ b/gnu/packages/ocaml.scm
> @@ -1069,6 +1069,19 @@ Knuth’s LR(1) parser construction technique.")
>      (description "This package provides a runtime support library
> for parsers generated by Menhir.")))
>  
> +(define-public ocaml-menhir-sdk
> +  (package
> +    (inherit ocaml-menhir)
> +    (name "ocaml-menhir-sdk")
> +    (arguments
> +     '(#:package "menhirSdk"
> +       #:test-target "sdk"))
> +    (properties
> +     `((upstream-name . "menhirSdk")))
> +    (synopsis "Compile-time library for auxiliary tools related to
> Menhir")
> +    (description "This package provides a compile-time library for
> auxiliary +tools related to Menhir.")))
> +
>  (define-public ocaml-bigarray-compat
>    (package
>      (name "ocaml-bigarray-compat")

MenhirLib and MenhirSdk are both already part of the ocaml-menhir
package, so I don't think it is useful to add separate packages for
them. WDYT?




Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Sun, 27 Jun 2021 13:38:02 GMT) Full text and rfc822 format available.

Message #38 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: 49150 <at> debbugs.gnu.org
Subject: Re: [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk.
Date: Sun, 27 Jun 2021 15:37:02 +0200
[Message part 1 (text/plain, inline)]
On Sun, Jun 27 2021, Julien Lepiller wrote:

> Le Mon, 21 Jun 2021 12:01:53 +0200,
> Xinglu Chen <public <at> yoctocell.xyz> a écrit :
>
>> * gnu/packages/ocaml.scm (ocaml-menhir-sdk): New variable.
>> ---
>>  gnu/packages/ocaml.scm | 13 +++++++++++++
>>  1 file changed, 13 insertions(+)
>> 
>> diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
>> index 08406a206d..d7d3afd36c 100644
>> --- a/gnu/packages/ocaml.scm
>> +++ b/gnu/packages/ocaml.scm
>> @@ -1069,6 +1069,19 @@ Knuth’s LR(1) parser construction technique.")
>>      (description "This package provides a runtime support library
>> for parsers generated by Menhir.")))
>>  
>> +(define-public ocaml-menhir-sdk
>> +  (package
>> +    (inherit ocaml-menhir)
>> +    (name "ocaml-menhir-sdk")
>> +    (arguments
>> +     '(#:package "menhirSdk"
>> +       #:test-target "sdk"))
>> +    (properties
>> +     `((upstream-name . "menhirSdk")))
>> +    (synopsis "Compile-time library for auxiliary tools related to
>> Menhir")
>> +    (description "This package provides a compile-time library for
>> auxiliary +tools related to Menhir.")))
>> +
>>  (define-public ocaml-bigarray-compat
>>    (package
>>      (name "ocaml-bigarray-compat")
>
> MenhirLib and MenhirSdk are both already part of the ocaml-menhir
> package, so I don't think it is useful to add separate packages for
> them. WDYT?

Ah, then we can probably drop them, but they (Menhir, MenhirLib, and
MenhirSdk) are three separate packages on Opam, so i could also make
sense to restrict ‘ocaml-menhir’ to only the Menhir package.

WDYT?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Wed, 04 Aug 2021 08:25:01 GMT) Full text and rfc822 format available.

Message #41 received at 49150 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: 49150 <at> debbugs.gnu.org
Subject: Re: [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk.
Date: Wed, 04 Aug 2021 10:23:59 +0200
[Message part 1 (text/plain, inline)]
On Sun, Jun 27 2021, Xinglu Chen wrote:

> On Sun, Jun 27 2021, Julien Lepiller wrote:
>
>> Le Mon, 21 Jun 2021 12:01:53 +0200,
>> Xinglu Chen <public <at> yoctocell.xyz> a écrit :
>>
>>> * gnu/packages/ocaml.scm (ocaml-menhir-sdk): New variable.
>>> ---
>>>  gnu/packages/ocaml.scm | 13 +++++++++++++
>>>  1 file changed, 13 insertions(+)
>>> 
>>> diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
>>> index 08406a206d..d7d3afd36c 100644
>>> --- a/gnu/packages/ocaml.scm
>>> +++ b/gnu/packages/ocaml.scm
>>> @@ -1069,6 +1069,19 @@ Knuth’s LR(1) parser construction technique.")
>>>      (description "This package provides a runtime support library
>>> for parsers generated by Menhir.")))
>>>  
>>> +(define-public ocaml-menhir-sdk
>>> +  (package
>>> +    (inherit ocaml-menhir)
>>> +    (name "ocaml-menhir-sdk")
>>> +    (arguments
>>> +     '(#:package "menhirSdk"
>>> +       #:test-target "sdk"))
>>> +    (properties
>>> +     `((upstream-name . "menhirSdk")))
>>> +    (synopsis "Compile-time library for auxiliary tools related to
>>> Menhir")
>>> +    (description "This package provides a compile-time library for
>>> auxiliary +tools related to Menhir.")))
>>> +
>>>  (define-public ocaml-bigarray-compat
>>>    (package
>>>      (name "ocaml-bigarray-compat")
>>
>> MenhirLib and MenhirSdk are both already part of the ocaml-menhir
>> package, so I don't think it is useful to add separate packages for
>> them. WDYT?
>
> Ah, then we can probably drop them, but they (Menhir, MenhirLib, and
> MenhirSdk) are three separate packages on Opam, so i could also make
> sense to restrict ‘ocaml-menhir’ to only the Menhir package.
>
> WDYT?

Ping!  :)
[signature.asc (application/pgp-signature, inline)]

Reply sent to Julien Lepiller <julien <at> lepiller.eu>:
You have taken responsibility. (Sun, 08 Aug 2021 20:46:02 GMT) Full text and rfc822 format available.

Notification sent to Xinglu Chen <public <at> yoctocell.xyz>:
bug acknowledged by developer. (Sun, 08 Aug 2021 20:46:02 GMT) Full text and rfc822 format available.

Message #46 received at 49150-done <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: 49150-done <at> debbugs.gnu.org
Subject: Re: [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies
Date: Sun, 8 Aug 2021 22:45:41 +0200
Le Mon, 21 Jun 2021 11:56:59 +0200,
Xinglu Chen <public <at> yoctocell.xyz> a écrit :

> This series add ‘ocamlformat’, a code formatter for OCaml, and some
> missing dependencies.  It also updates the ‘ocaml-bisect-ppx’ package,
> otherwise ‘ocamlformat’ would not build.
> 
> Some tests for ‘ocamlformat’ are failing, not sure why, so I have
> disabled them for now.
> 
> Xinglu Chen (9):
>   gnu: ocaml-bisect-ppx: Update to 2.6.1.
>   gnu: Add ocaml-menhir-lib.
>   gnu: Add ocaml-menhir-sdk.
>   gnu: Add ocaml-uucd.
>   gnu: Add ocaml-uucp.
>   gnu: Add ocaml-uuseg.
>   gnu: Add ocaml-fix.
>   gnu: Add ocaml-dune-build-info.
>   gnu: Add ocamlformat.
> 
>  gnu/packages/ocaml.scm | 240
> ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 224
> insertions(+), 16 deletions(-)
> 
> 
> base-commit: 71c3f954194770956b39d311fab44ee6ddb4f666

Sorry for the delay! Pushed as
e473fe1056a8b8089715dff46050355f777ef5ed to
e83fe81be4677aca1f42f0df9c8d2606400a4619, after fixing the
description ocaml-uuseg. I omited patches 2 and 3 and fixed ocamlformat
accordingly.

Thanks!




Information forwarded to guix-patches <at> gnu.org:
bug#49150; Package guix-patches. (Mon, 09 Aug 2021 09:37:02 GMT) Full text and rfc822 format available.

Message #49 received at 49150-done <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: 49150-done <at> debbugs.gnu.org
Subject: Re: bug#49150: [PATCH 0/9] Add ocamlformat and dependencies
Date: Mon, 09 Aug 2021 11:36:08 +0200
[Message part 1 (text/plain, inline)]
On Sun, Aug 08 2021, Julien Lepiller wrote:

> Le Mon, 21 Jun 2021 11:56:59 +0200,
> Xinglu Chen <public <at> yoctocell.xyz> a écrit :
>
>> This series add ‘ocamlformat’, a code formatter for OCaml, and some
>> missing dependencies.  It also updates the ‘ocaml-bisect-ppx’ package,
>> otherwise ‘ocamlformat’ would not build.
>> 
>> Some tests for ‘ocamlformat’ are failing, not sure why, so I have
>> disabled them for now.
>> 
>> Xinglu Chen (9):
>>   gnu: ocaml-bisect-ppx: Update to 2.6.1.
>>   gnu: Add ocaml-menhir-lib.
>>   gnu: Add ocaml-menhir-sdk.
>>   gnu: Add ocaml-uucd.
>>   gnu: Add ocaml-uucp.
>>   gnu: Add ocaml-uuseg.
>>   gnu: Add ocaml-fix.
>>   gnu: Add ocaml-dune-build-info.
>>   gnu: Add ocamlformat.
>> 
>>  gnu/packages/ocaml.scm | 240
>> ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 224
>> insertions(+), 16 deletions(-)
>> 
>> 
>> base-commit: 71c3f954194770956b39d311fab44ee6ddb4f666
>
> Sorry for the delay! Pushed as
> e473fe1056a8b8089715dff46050355f777ef5ed to
> e83fe81be4677aca1f42f0df9c8d2606400a4619, after fixing the
> description ocaml-uuseg. I omited patches 2 and 3 and fixed ocamlformat
> accordingly.

Great, thank you!
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 06 Sep 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 229 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.