From 516e0f9aea58a94661f68b5f4a4897cd8f5bd30a Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 30 Nov 2024 14:44:03 +0000 Subject: [PATCH] OCaml 5.2 is the minimum version 5.1 fails with: File "capnp-rpc/leak_handler.ml", line 1: Error: The implementation capnp-rpc/leak_handler.ml does not match the interface capnp-rpc/.capnp_rpc.objs/byte/capnp_rpc__Leak_handler.cmi: Values do not match: val run : unit -> unit is not included in val run : unit -> 'a Also, we need ipaddr 5.3.0 for `with_port_of_string`. --- capnp-rpc-lwt.opam | 2 +- capnp-rpc-net.opam | 2 +- capnp-rpc-unix.opam | 3 ++- capnp-rpc.opam | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/capnp-rpc-lwt.opam b/capnp-rpc-lwt.opam index 390ef62a..a4eda6c0 100644 --- a/capnp-rpc-lwt.opam +++ b/capnp-rpc-lwt.opam @@ -10,7 +10,7 @@ homepage: "https://github.com/mirage/capnp-rpc" bug-reports: "https://github.com/mirage/capnp-rpc/issues" doc: "https://mirage.github.io/capnp-rpc/" depends: [ - "ocaml" {>= "5.1"} + "ocaml" {>= "5.2"} "capnp-rpc" {>= version} "lwt_eio" {>= "0.5.1"} "dune" {>= "3.16"} diff --git a/capnp-rpc-net.opam b/capnp-rpc-net.opam index 209e88d2..4c5e47b6 100644 --- a/capnp-rpc-net.opam +++ b/capnp-rpc-net.opam @@ -11,7 +11,7 @@ homepage: "https://github.com/mirage/capnp-rpc" bug-reports: "https://github.com/mirage/capnp-rpc/issues" doc: "https://mirage.github.io/capnp-rpc/" depends: [ - "ocaml" {>= "4.08.0"} + "ocaml" {>= "5.2"} "conf-capnproto" {build} "capnp" {>= "3.6.0"} "capnp-rpc" {= version} diff --git a/capnp-rpc-unix.opam b/capnp-rpc-unix.opam index 46fcc03c..862fd9dc 100644 --- a/capnp-rpc-unix.opam +++ b/capnp-rpc-unix.opam @@ -10,7 +10,7 @@ homepage: "https://github.com/mirage/capnp-rpc" doc: "https://mirage.github.io/capnp-rpc/" bug-reports: "https://github.com/mirage/capnp-rpc/issues" depends: [ - "ocaml" {>= "4.08.0"} + "ocaml" {>= "5.2"} "capnp-rpc-net" {= version} "cmdliner" {>= "1.1.0"} "cstruct" {>= "6.2.0"} @@ -20,6 +20,7 @@ depends: [ "extunix" "base64" {>= "3.0.0"} "dune" {>= "3.16"} + "ipaddr" {>= "5.3.0" } "alcotest" {>= "1.6.0" & with-test} "mirage-crypto-rng-eio" {>= "1.1.0" & with-test} "mdx" {>= "2.4.1" & with-test} diff --git a/capnp-rpc.opam b/capnp-rpc.opam index 36e3d3d2..9979b4b5 100644 --- a/capnp-rpc.opam +++ b/capnp-rpc.opam @@ -11,7 +11,7 @@ homepage: "https://github.com/mirage/capnp-rpc" bug-reports: "https://github.com/mirage/capnp-rpc/issues" doc: "https://mirage.github.io/capnp-rpc/" depends: [ - "ocaml" {>= "4.08.0"} + "ocaml" {>= "5.2"} "conf-capnproto" {build} "capnp" {>= "3.6.0"} "stdint" {>= "0.6.0"}