commit: a9dfe8a9fc72a76428cc16daba1ab7a484a60e5c Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Fri Oct 1 18:41:15 2021 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Fri Oct 1 18:41:15 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9dfe8a9
dev-ml/lwt: build with ocaml-4.12 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> 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(+) 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 00000000000..048e28d1d6b --- /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 b635eab67eb..40958766de0 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 18be4f6c21a..52dc9a8f746 100644 --- a/dev-ml/lwt/metadata.xml +++ b/dev-ml/lwt/metadata.xml @@ -1,6 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> + <maintainer type="project"> + <email>[email protected]</email> + <name>ML</name> + </maintainer> <maintainer type="person"> <email>[email protected]</email> <name>Mark Wright</name>
