all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’
@ 2021-09-01 12:58 Xinglu Chen
  2021-09-01 13:13 ` [bug#50317] [PATCH 1/2] gnu: ocaml-ppxlib: Update to 0.23.0 Xinglu Chen
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Xinglu Chen @ 2021-09-01 12:58 UTC (permalink / raw)
  To: 50317

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

‘ocaml-ppx-optcomp’ fails to build with the new ‘ocaml-ppxlib’, updating
it makes it build again.

Xinglu Chen (2):
  gnu: ocaml-ppxlib: Update to 0.23.0.
  gnu: ocaml-ppx-optcomp: Update to 0.14.3.

 gnu/packages/ocaml.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


base-commit: 96e487b310d6f70fb6fb4c88cdd936225450706f
-- 
2.33.0




[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH 1/2] gnu: ocaml-ppxlib: Update to 0.23.0.
  2021-09-01 12:58 [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’ Xinglu Chen
@ 2021-09-01 13:13 ` Xinglu Chen
  2021-09-01 13:13 ` [bug#50317] [PATCH 2/2] gnu: ocaml-ppx-optcomp: Update to 0.14.3 Xinglu Chen
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: Xinglu Chen @ 2021-09-01 13:13 UTC (permalink / raw)
  To: 50317

* gnu/packages/ocaml.scm (ocaml-ppxlib): Update to 0.23.0.
---
 gnu/packages/ocaml.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index ecaf024b40..cf96b1f0cf 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5049,7 +5049,7 @@ as part of the same ocaml-migrate-parsetree driver.")
 (define-public ocaml-ppxlib
   (package
     (name "ocaml-ppxlib")
-    (version "0.22.1")
+    (version "0.23.0")
     (home-page "https://github.com/ocaml-ppx/ppxlib")
     (source
      (origin
@@ -5060,7 +5060,7 @@ as part of the same ocaml-migrate-parsetree driver.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "0cpfg634if1py1b2rljk3cagq9gj68dl2gk1kdg76f9rapvl2i4g"))))
+         "0jg5v4pssbl66hn5davpin1i57a0r3r54l96vpz5y99xk5w70xi1"))))
     (build-system dune-build-system)
     (propagated-inputs
      `(("ocaml-base" ,ocaml-base)
-- 
2.33.0







^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH 2/2] gnu: ocaml-ppx-optcomp: Update to 0.14.3.
  2021-09-01 12:58 [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’ Xinglu Chen
  2021-09-01 13:13 ` [bug#50317] [PATCH 1/2] gnu: ocaml-ppxlib: Update to 0.23.0 Xinglu Chen
@ 2021-09-01 13:13 ` Xinglu Chen
  2021-09-03 20:37 ` [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’ Ludovic Courtès
  2021-09-06 14:06 ` [bug#50317] [PATCH v2 0/4] " Xinglu Chen
  3 siblings, 0 replies; 13+ messages in thread
From: Xinglu Chen @ 2021-09-01 13:13 UTC (permalink / raw)
  To: 50317

* gnu/packages/ocaml.scm (ocaml-ppx-optcomp): Update to 0.14.3.
---
 gnu/packages/ocaml.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index cf96b1f0cf..9241afdd62 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5786,7 +5786,7 @@ else expression.")
 (define-public ocaml-ppx-optcomp
   (package
     (name "ocaml-ppx-optcomp")
-    (version "0.14.1")
+    (version "0.14.3")
     (home-page "https://github.com/janestreet/ppx_optcomp")
     (source
      (origin
@@ -5797,7 +5797,7 @@ else expression.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "0j5smqa0hig1yn8wfrb4mv0y59kkwsalmqkm5asbd7kcc6589ap4"))))
+         "1iflgfzs23asw3k6098v84al5zqx59rx2qjw0mhvk56avlx71pkw"))))
     (build-system dune-build-system)
     (propagated-inputs
      `(("ocaml-base" ,ocaml-base)
-- 
2.33.0







^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’
  2021-09-01 12:58 [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’ Xinglu Chen
  2021-09-01 13:13 ` [bug#50317] [PATCH 1/2] gnu: ocaml-ppxlib: Update to 0.23.0 Xinglu Chen
  2021-09-01 13:13 ` [bug#50317] [PATCH 2/2] gnu: ocaml-ppx-optcomp: Update to 0.14.3 Xinglu Chen
@ 2021-09-03 20:37 ` Ludovic Courtès
  2021-09-04 10:56   ` Xinglu Chen
  2021-09-06 14:06 ` [bug#50317] [PATCH v2 0/4] " Xinglu Chen
  3 siblings, 1 reply; 13+ messages in thread
From: Ludovic Courtès @ 2021-09-03 20:37 UTC (permalink / raw)
  To: Xinglu Chen; +Cc: 50317

Hi,

Xinglu Chen <public@yoctocell.xyz> skribis:

> ‘ocaml-ppx-optcomp’ fails to build with the new ‘ocaml-ppxlib’, updating
> it makes it build again.

In that case, I’d suggest updating both in the same commit, so that each
commit contains a working package set.

>   gnu: ocaml-ppxlib: Update to 0.23.0.
>   gnu: ocaml-ppx-optcomp: Update to 0.14.3.

Unfortunately, at least one dependent fails to build:

--8<---------------cut here---------------start------------->8---
starting phase `build'
File "src/ppx_variants_conv.ml", line 69, characters 22-41:
69 |   if Caml.Hashtbl.mem Lexer.keyword_table s
                           ^^^^^^^^^^^^^^^^^^^
Error: Unbound value Lexer.keyword_table
command "dune" "build" "@install" "--profile" "release" failed with status 1
builder for `/gnu/store/g73id3dchmqc0dirv9ahzmgbwsyba78b-ocaml-ppx-variants-conv-0.14.1.drv' failed with exit code 1
--8<---------------cut here---------------end--------------->8---

Could you check this one and other packages returned by ‘guix refresh -l
ocaml-ppxlib’?

Thanks in advance,
Ludo’.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’
  2021-09-03 20:37 ` [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’ Ludovic Courtès
@ 2021-09-04 10:56   ` Xinglu Chen
  2021-09-06  8:07     ` Ludovic Courtès
  0 siblings, 1 reply; 13+ messages in thread
From: Xinglu Chen @ 2021-09-04 10:56 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 50317

[-- Attachment #1: Type: text/plain, Size: 1884 bytes --]

On Fri, Sep 03 2021, Ludovic Courtès wrote:

> Hi,
>
> Xinglu Chen <public@yoctocell.xyz> skribis:
>
>> ‘ocaml-ppx-optcomp’ fails to build with the new ‘ocaml-ppxlib’, updating
>> it makes it build again.
>
> In that case, I’d suggest updating both in the same commit, so that each
> commit contains a working package set.

Or maybe I could reorder the commits so that the ‘ocaml-ppxlib’ update
comes last?

>>   gnu: ocaml-ppxlib: Update to 0.23.0.
>>   gnu: ocaml-ppx-optcomp: Update to 0.14.3.
>
> Unfortunately, at least one dependent fails to build:
>
> --8<---------------cut here---------------start------------->8---
> starting phase `build'
> File "src/ppx_variants_conv.ml", line 69, characters 22-41:
> 69 |   if Caml.Hashtbl.mem Lexer.keyword_table s
>                            ^^^^^^^^^^^^^^^^^^^
> Error: Unbound value Lexer.keyword_table
> command "dune" "build" "@install" "--profile" "release" failed with status 1
> builder for `/gnu/store/g73id3dchmqc0dirv9ahzmgbwsyba78b-ocaml-ppx-variants-conv-0.14.1.drv' failed with exit code 1
> --8<---------------cut here---------------end--------------->8---
>
> Could you check this one and other packages returned by ‘guix refresh -l
> ocaml-ppxlib’?
>

Good catch!  There is a patch that should fix this issue[1]; should I
apply the patch to fix the build?

I didn’t build the ‘ocaml-llwm’ packages since I would have to first
build ‘llvm’ from source...[*].  The ‘ocaml-markup0.8.0’ fails too, but
it was already failing before applying this patch, so I will send a
separate series to try to fix it.  I also had to update ‘ocamlformat’ to
make it build.

Thanks for the taking a look!

[*]: I have noticed that substitute availability has been pretty poor
lately.  :-(

[1]: <https://github.com/janestreet/ppx_variants_conv/pull/9>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’
  2021-09-04 10:56   ` Xinglu Chen
@ 2021-09-06  8:07     ` Ludovic Courtès
  2021-09-06 13:49       ` Xinglu Chen
  0 siblings, 1 reply; 13+ messages in thread
From: Ludovic Courtès @ 2021-09-06  8:07 UTC (permalink / raw)
  To: Xinglu Chen; +Cc: 50317

Hi,

Xinglu Chen <public@yoctocell.xyz> skribis:

> On Fri, Sep 03 2021, Ludovic Courtès wrote:
>
>> Hi,
>>
>> Xinglu Chen <public@yoctocell.xyz> skribis:
>>
>>> ‘ocaml-ppx-optcomp’ fails to build with the new ‘ocaml-ppxlib’, updating
>>> it makes it build again.
>>
>> In that case, I’d suggest updating both in the same commit, so that each
>> commit contains a working package set.
>
> Or maybe I could reorder the commits so that the ‘ocaml-ppxlib’ update
> comes last?

Yes, we can do that.

>> Unfortunately, at least one dependent fails to build:
>>
>> --8<---------------cut here---------------start------------->8---
>> starting phase `build'
>> File "src/ppx_variants_conv.ml", line 69, characters 22-41:
>> 69 |   if Caml.Hashtbl.mem Lexer.keyword_table s
>>                            ^^^^^^^^^^^^^^^^^^^
>> Error: Unbound value Lexer.keyword_table
>> command "dune" "build" "@install" "--profile" "release" failed with status 1
>> builder for `/gnu/store/g73id3dchmqc0dirv9ahzmgbwsyba78b-ocaml-ppx-variants-conv-0.14.1.drv' failed with exit code 1
>> --8<---------------cut here---------------end--------------->8---
>>
>> Could you check this one and other packages returned by ‘guix refresh -l
>> ocaml-ppxlib’?
>>
>
> Good catch!  There is a patch that should fix this issue[1]; should I
> apply the patch to fix the build?

Yes please!  Let me know when there’s something I should apply.  :-)

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’
  2021-09-06  8:07     ` Ludovic Courtès
@ 2021-09-06 13:49       ` Xinglu Chen
  0 siblings, 0 replies; 13+ messages in thread
From: Xinglu Chen @ 2021-09-06 13:49 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 50317

[-- Attachment #1: Type: text/plain, Size: 1609 bytes --]

On Mon, Sep 06 2021, Ludovic Courtès wrote:

> Hi,
>
> Xinglu Chen <public@yoctocell.xyz> skribis:
>
>> On Fri, Sep 03 2021, Ludovic Courtès wrote:
>>
>>> Hi,
>>>
>>> Xinglu Chen <public@yoctocell.xyz> skribis:
>>>
>>>> ‘ocaml-ppx-optcomp’ fails to build with the new ‘ocaml-ppxlib’, updating
>>>> it makes it build again.
>>>
>>> In that case, I’d suggest updating both in the same commit, so that each
>>> commit contains a working package set.
>>
>> Or maybe I could reorder the commits so that the ‘ocaml-ppxlib’ update
>> comes last?
>
> Yes, we can do that.
>
>>> Unfortunately, at least one dependent fails to build:
>>>
>>> --8<---------------cut here---------------start------------->8---
>>> starting phase `build'
>>> File "src/ppx_variants_conv.ml", line 69, characters 22-41:
>>> 69 |   if Caml.Hashtbl.mem Lexer.keyword_table s
>>>                            ^^^^^^^^^^^^^^^^^^^
>>> Error: Unbound value Lexer.keyword_table
>>> command "dune" "build" "@install" "--profile" "release" failed with status 1
>>> builder for `/gnu/store/g73id3dchmqc0dirv9ahzmgbwsyba78b-ocaml-ppx-variants-conv-0.14.1.drv' failed with exit code 1
>>> --8<---------------cut here---------------end--------------->8---
>>>
>>> Could you check this one and other packages returned by ‘guix refresh -l
>>> ocaml-ppxlib’?
>>>
>>
>> Good catch!  There is a patch that should fix this issue[1]; should I
>> apply the patch to fix the build?
>
> Yes please!  Let me know when there’s something I should apply.  :-)

Cool, I will send a revised series soon!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH v2 0/4] Update ‘ocaml-ppxlib’
  2021-09-01 12:58 [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’ Xinglu Chen
                   ` (2 preceding siblings ...)
  2021-09-03 20:37 ` [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’ Ludovic Courtès
@ 2021-09-06 14:06 ` Xinglu Chen
  2021-09-06 14:06   ` [bug#50317] [PATCH v2 1/4] gnu: ocaml-ppx-optcomp: Update to 0.14.3 Xinglu Chen
                     ` (4 more replies)
  3 siblings, 5 replies; 13+ messages in thread
From: Xinglu Chen @ 2021-09-06 14:06 UTC (permalink / raw)
  To: 50317; +Cc: Ludovic Courtès

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]

Changes since v1:

* Update ‘ocamlformat’ to fix the build with ‘ocaml-ppxlib’.

* Patch ‘ocaml-ppx-variants-conv’ to make it build with
  ocaml-ppxlib@0.23.0.

* Reorder the patches so that the ‘ocaml-ppxlib’ update comes last.

Xinglu Chen (4):
  gnu: ocaml-ppx-optcomp: Update to 0.14.3.
  gnu: ocamlformat: Update to 0.19.0.
  gnu: ocaml-ppx-variants-conv: Patch for building with ocaml-ppxlib.
  gnu: ocaml-ppxlib: Update to 0.23.0.

 gnu/local.mk                                  |  1 +
 gnu/packages/ocaml.scm                        | 17 +++++---
 ...ocaml-ppx-variants-ppxlib-api-change.patch | 42 +++++++++++++++++++
 3 files changed, 54 insertions(+), 6 deletions(-)
 create mode 100644 gnu/packages/patches/ocaml-ppx-variants-ppxlib-api-change.patch


base-commit: 9540323458de87b0b8aa421e449a4fe27af7c393
-- 
2.33.0




[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH v2 1/4] gnu: ocaml-ppx-optcomp: Update to 0.14.3.
  2021-09-06 14:06 ` [bug#50317] [PATCH v2 0/4] " Xinglu Chen
@ 2021-09-06 14:06   ` Xinglu Chen
  2021-09-06 14:06   ` [bug#50317] [PATCH v2 2/4] gnu: ocamlformat: Update to 0.19.0 Xinglu Chen
                     ` (3 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: Xinglu Chen @ 2021-09-06 14:06 UTC (permalink / raw)
  To: 50317; +Cc: Ludovic Courtès

* gnu/packages/ocaml.scm (ocaml-ppx-optcomp): Update to 0.14.3.
---
 gnu/packages/ocaml.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index ecaf024b40..891b1e0d6c 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5786,7 +5786,7 @@ else expression.")
 (define-public ocaml-ppx-optcomp
   (package
     (name "ocaml-ppx-optcomp")
-    (version "0.14.1")
+    (version "0.14.3")
     (home-page "https://github.com/janestreet/ppx_optcomp")
     (source
      (origin
@@ -5797,7 +5797,7 @@ else expression.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "0j5smqa0hig1yn8wfrb4mv0y59kkwsalmqkm5asbd7kcc6589ap4"))))
+         "1iflgfzs23asw3k6098v84al5zqx59rx2qjw0mhvk56avlx71pkw"))))
     (build-system dune-build-system)
     (propagated-inputs
      `(("ocaml-base" ,ocaml-base)
-- 
2.33.0







^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH v2 2/4] gnu: ocamlformat: Update to 0.19.0.
  2021-09-06 14:06 ` [bug#50317] [PATCH v2 0/4] " Xinglu Chen
  2021-09-06 14:06   ` [bug#50317] [PATCH v2 1/4] gnu: ocaml-ppx-optcomp: Update to 0.14.3 Xinglu Chen
@ 2021-09-06 14:06   ` Xinglu Chen
  2021-09-06 14:06   ` [bug#50317] [PATCH v2 3/4] gnu: ocaml-ppx-variants-conv: Patch for building with ocaml-ppxlib Xinglu Chen
                     ` (2 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: Xinglu Chen @ 2021-09-06 14:06 UTC (permalink / raw)
  To: 50317; +Cc: Ludovic Courtès

* gnu/packages/ocaml.scm (ocamlformat): Update to 0.19.0.
[propagated-inputs]: Add ocaml-odoc-parser.
---
 gnu/packages/ocaml.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 891b1e0d6c..53305ce60f 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7142,7 +7142,7 @@ get an precise reference of when the executable was built.")))
 (define-public ocamlformat
   (package
     (name "ocamlformat")
-    (version "0.18.0")
+    (version "0.19.0")
     (source
       (origin
         (method git-fetch)
@@ -7152,7 +7152,7 @@ get an precise reference of when the executable was built.")))
         (file-name (git-file-name name version))
         (sha256
           (base32
-            "0n6363km8xr81pvyk453n6h2mb0256c5yxw3p1li4dn83f3lwxr1"))))
+            "0dp4pkznz9yvqx9gxwbid1z2b8ajkr8i27zay9ghx69624hz3i4z"))))
     (build-system dune-build-system)
     (arguments
      '(#:package "ocamlformat"
@@ -7170,6 +7170,7 @@ get an precise reference of when the executable was built.")))
         ("ocaml-odoc" ,ocaml-odoc)
         ("ocaml-ppxlib" ,ocaml-ppxlib)
         ("ocaml-re" ,ocaml-re)
+        ("ocaml-odoc-parser" ,ocaml-odoc-parser)
         ("ocaml-stdio" ,ocaml-stdio)
         ("ocaml-uuseg" ,ocaml-uuseg)
         ("ocaml-uutf" ,ocaml-uutf)))
-- 
2.33.0







^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH v2 3/4] gnu: ocaml-ppx-variants-conv: Patch for building with ocaml-ppxlib.
  2021-09-06 14:06 ` [bug#50317] [PATCH v2 0/4] " Xinglu Chen
  2021-09-06 14:06   ` [bug#50317] [PATCH v2 1/4] gnu: ocaml-ppx-optcomp: Update to 0.14.3 Xinglu Chen
  2021-09-06 14:06   ` [bug#50317] [PATCH v2 2/4] gnu: ocamlformat: Update to 0.19.0 Xinglu Chen
@ 2021-09-06 14:06   ` Xinglu Chen
  2021-09-06 14:06   ` [bug#50317] [PATCH v2 4/4] gnu: ocaml-ppxlib: Update to 0.23.0 Xinglu Chen
  2021-09-06 21:36   ` bug#50317: [PATCH 0/2] Update ‘ocaml-ppxlib’ Ludovic Courtès
  4 siblings, 0 replies; 13+ messages in thread
From: Xinglu Chen @ 2021-09-06 14:06 UTC (permalink / raw)
  To: 50317; +Cc: Ludovic Courtès

The patch will make it build when building it with ocaml-ppxlib@0.23.0.

* gnu/packages/patches/ocaml-ppx-variants-ppxlib-api-change.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/ocaml.scm (ocaml-ppx-variants-conv): Apply the patch.
---
 gnu/local.mk                                  |  1 +
 gnu/packages/ocaml.scm                        |  4 ++
 ...ocaml-ppx-variants-ppxlib-api-change.patch | 42 +++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 gnu/packages/patches/ocaml-ppx-variants-ppxlib-api-change.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index dc2e41d384..9fb068917a 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1523,6 +1523,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/ocaml-dose3-Fix-for-ocaml-4.06.patch	\
   %D%/packages/patches/ocaml-dose3-dont-make-printconf.patch	\
   %D%/packages/patches/ocaml-dose3-Install-mli-cmx-etc.patch	\
+  %D%/packages/patches/ocaml-ppx-variants-ppxlib-api-change.patch	\
   %D%/packages/patches/omake-fix-non-determinism.patch	\
   %D%/packages/patches/oneko-remove-nonfree-characters.patch	\
   %D%/packages/patches/onnx-optimizer-system-library.patch	\
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 53305ce60f..e319fb891d 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5340,6 +5340,10 @@ definitions.")
        (uri (git-reference
              (url "https://github.com/janestreet/ppx_variants_conv")
              (commit (string-append "v" version))))
+       (patches
+        (search-patches
+         ;; Fix build when building with ocaml-ppxlib@0.23.0.
+         "ocaml-ppx-variants-ppxlib-api-change.patch"))
        (file-name (git-file-name name version))
        (sha256
         (base32
diff --git a/gnu/packages/patches/ocaml-ppx-variants-ppxlib-api-change.patch b/gnu/packages/patches/ocaml-ppx-variants-ppxlib-api-change.patch
new file mode 100644
index 0000000000..b437bfb061
--- /dev/null
+++ b/gnu/packages/patches/ocaml-ppx-variants-ppxlib-api-change.patch
@@ -0,0 +1,42 @@
+From 6103f6fc56f978c847ba7c1f2d9f38ee93a5e337 Mon Sep 17 00:00:00 2001
+From: Sonja Heinze <sonjaleaheinze@gmail.com>
+Date: Tue, 9 Mar 2021 12:57:47 +0100
+Subject: [PATCH] Adapt to Ppxlib's API change
+
+Ppxlib is removing Lexer.keyword_table from the API in exchange for
+the more lightweight Keyword.is_keyword.
+
+Signed-off-by: Sonja Heinze <sonjaleaheinze@gmail.com>
+---
+Patch from <https://github.com/janestreet/ppx_variants_conv/pull/9>.
+
+ ppx_variants_conv.opam   | 2 +-
+ src/ppx_variants_conv.ml | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ppx_variants_conv.opam b/ppx_variants_conv.opam
+index 7e7148d..b56040f 100644
+--- a/ppx_variants_conv.opam
++++ b/ppx_variants_conv.opam
+@@ -15,7 +15,7 @@ depends: [
+   "base"        {>= "v0.14" & < "v0.15"}
+   "variantslib" {>= "v0.14" & < "v0.15"}
+   "dune"        {>= "2.0.0"}
+-  "ppxlib"      {>= "0.14.0"}
++  "ppxlib"      {>= "0.23.0"}
+ ]
+ synopsis: "Generation of accessor and iteration functions for ocaml variant types"
+ description: "
+diff --git a/src/ppx_variants_conv.ml b/src/ppx_variants_conv.ml
+index 8d60086..112fc78 100644
+--- a/src/ppx_variants_conv.ml
++++ b/src/ppx_variants_conv.ml
+@@ -66,7 +66,7 @@ end
+ 
+ let variant_name_to_string v =
+   let s = String.lowercase v in
+-  if Caml.Hashtbl.mem Lexer.keyword_table s
++  if Keyword.is_keyword s
+   then s ^ "_"
+   else s
+ 
-- 
2.33.0







^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [bug#50317] [PATCH v2 4/4] gnu: ocaml-ppxlib: Update to 0.23.0.
  2021-09-06 14:06 ` [bug#50317] [PATCH v2 0/4] " Xinglu Chen
                     ` (2 preceding siblings ...)
  2021-09-06 14:06   ` [bug#50317] [PATCH v2 3/4] gnu: ocaml-ppx-variants-conv: Patch for building with ocaml-ppxlib Xinglu Chen
@ 2021-09-06 14:06   ` Xinglu Chen
  2021-09-06 21:36   ` bug#50317: [PATCH 0/2] Update ‘ocaml-ppxlib’ Ludovic Courtès
  4 siblings, 0 replies; 13+ messages in thread
From: Xinglu Chen @ 2021-09-06 14:06 UTC (permalink / raw)
  To: 50317; +Cc: Ludovic Courtès

* gnu/packages/ocaml.scm (ocaml-ppxlib): Update to 0.23.0.
---
 gnu/packages/ocaml.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index e319fb891d..1c48a0d353 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5049,7 +5049,7 @@ as part of the same ocaml-migrate-parsetree driver.")
 (define-public ocaml-ppxlib
   (package
     (name "ocaml-ppxlib")
-    (version "0.22.1")
+    (version "0.23.0")
     (home-page "https://github.com/ocaml-ppx/ppxlib")
     (source
      (origin
@@ -5060,7 +5060,7 @@ as part of the same ocaml-migrate-parsetree driver.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "0cpfg634if1py1b2rljk3cagq9gj68dl2gk1kdg76f9rapvl2i4g"))))
+         "0jg5v4pssbl66hn5davpin1i57a0r3r54l96vpz5y99xk5w70xi1"))))
     (build-system dune-build-system)
     (propagated-inputs
      `(("ocaml-base" ,ocaml-base)
-- 
2.33.0







^ permalink raw reply related	[flat|nested] 13+ messages in thread

* bug#50317: [PATCH 0/2] Update ‘ocaml-ppxlib’
  2021-09-06 14:06 ` [bug#50317] [PATCH v2 0/4] " Xinglu Chen
                     ` (3 preceding siblings ...)
  2021-09-06 14:06   ` [bug#50317] [PATCH v2 4/4] gnu: ocaml-ppxlib: Update to 0.23.0 Xinglu Chen
@ 2021-09-06 21:36   ` Ludovic Courtès
  4 siblings, 0 replies; 13+ messages in thread
From: Ludovic Courtès @ 2021-09-06 21:36 UTC (permalink / raw)
  To: Xinglu Chen; +Cc: 50317-done

Hi,

Xinglu Chen <public@yoctocell.xyz> skribis:

> Changes since v1:
>
> * Update ‘ocamlformat’ to fix the build with ‘ocaml-ppxlib’.
>
> * Patch ‘ocaml-ppx-variants-conv’ to make it build with
>   ocaml-ppxlib@0.23.0.
>
> * Reorder the patches so that the ‘ocaml-ppxlib’ update comes last.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-09-06 21:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-01 12:58 [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’ Xinglu Chen
2021-09-01 13:13 ` [bug#50317] [PATCH 1/2] gnu: ocaml-ppxlib: Update to 0.23.0 Xinglu Chen
2021-09-01 13:13 ` [bug#50317] [PATCH 2/2] gnu: ocaml-ppx-optcomp: Update to 0.14.3 Xinglu Chen
2021-09-03 20:37 ` [bug#50317] [PATCH 0/2] Update ‘ocaml-ppxlib’ Ludovic Courtès
2021-09-04 10:56   ` Xinglu Chen
2021-09-06  8:07     ` Ludovic Courtès
2021-09-06 13:49       ` Xinglu Chen
2021-09-06 14:06 ` [bug#50317] [PATCH v2 0/4] " Xinglu Chen
2021-09-06 14:06   ` [bug#50317] [PATCH v2 1/4] gnu: ocaml-ppx-optcomp: Update to 0.14.3 Xinglu Chen
2021-09-06 14:06   ` [bug#50317] [PATCH v2 2/4] gnu: ocamlformat: Update to 0.19.0 Xinglu Chen
2021-09-06 14:06   ` [bug#50317] [PATCH v2 3/4] gnu: ocaml-ppx-variants-conv: Patch for building with ocaml-ppxlib Xinglu Chen
2021-09-06 14:06   ` [bug#50317] [PATCH v2 4/4] gnu: ocaml-ppxlib: Update to 0.23.0 Xinglu Chen
2021-09-06 21:36   ` bug#50317: [PATCH 0/2] Update ‘ocaml-ppxlib’ Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.