From a9dfe8a9fc72a76428cc16daba1ab7a484a60e5c Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Fri, 1 Oct 2021 20:41:15 +0200 Subject: dev-ml/lwt: build with ocaml-4.12 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alfredo Tupone --- dev-ml/lwt/files/lwt-5.3.0-ocaml-4.12.patch | 24 ++++++++++++++++++++++++ dev-ml/lwt/lwt-5.3.0-r1.ebuild | 5 +++++ dev-ml/lwt/metadata.xml | 4 ++++ 3 files changed, 33 insertions(+) create mode 100644 dev-ml/lwt/files/lwt-5.3.0-ocaml-4.12.patch (limited to 'dev-ml') diff --git a/dev-ml/lwt/files/lwt-5.3.0-ocaml-4.12.patch b/dev-ml/lwt/files/lwt-5.3.0-ocaml-4.12.patch new file mode 100644 index 000000000000..048e28d1d6bc --- /dev/null +++ b/dev-ml/lwt/files/lwt-5.3.0-ocaml-4.12.patch @@ -0,0 +1,24 @@ +--- a/src/unix/lwt_unix.cppo.ml 2021-10-01 20:35:45.285987395 +0200 ++++ b/src/unix/lwt_unix.cppo.ml 2021-10-01 20:36:19.570493202 +0200 +@@ -1819,6 +1819,9 @@ + | SO_ACCEPTCONN + | TCP_NODELAY + | IPV6_ONLY ++#if OCAML_VERSION >= (4, 12, 0) ++ | SO_REUSEPORT ++#endif + + type socket_int_option = + Unix.socket_int_option = +--- a/src/unix/lwt_unix.cppo.mli 2021-10-01 20:33:57.558539065 +0200 ++++ b/src/unix/lwt_unix.cppo.mli 2021-10-01 20:35:30.393202008 +0200 +@@ -1008,6 +1008,9 @@ + | SO_ACCEPTCONN + | TCP_NODELAY + | IPV6_ONLY ++#if OCAML_VERSION >= (4, 12, 0) ++ | SO_REUSEPORT ++#endif + + type socket_int_option = + Unix.socket_int_option = diff --git a/dev-ml/lwt/lwt-5.3.0-r1.ebuild b/dev-ml/lwt/lwt-5.3.0-r1.ebuild index b635eab67eb5..40958766de01 100644 --- a/dev-ml/lwt/lwt-5.3.0-r1.ebuild +++ b/dev-ml/lwt/lwt-5.3.0-r1.ebuild @@ -32,4 +32,9 @@ BDEPEND=" # backported from https://github.com/ocsigen/lwt/pull/807 PATCHES=( "${FILESDIR}"/${PN}-5.3.0-ppxlib-0.18.0.patch + "${FILESDIR}"/${P}-ocaml-4.12.patch ) + +src_compile() { + dune build @install --profile release || die +} diff --git a/dev-ml/lwt/metadata.xml b/dev-ml/lwt/metadata.xml index 18be4f6c21a9..52dc9a8f7464 100644 --- a/dev-ml/lwt/metadata.xml +++ b/dev-ml/lwt/metadata.xml @@ -1,6 +1,10 @@ + + ml@gentoo.org + ML + gienah@gentoo.org Mark Wright -- cgit v1.2.3-65-gdbad