pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ocaml-lwt Updated devel/ocaml-lwt to version 5.2.0.
details: https://anonhg.NetBSD.org/pkgsrc/rev/3e636454b261
branches: trunk
changeset: 427830:3e636454b261
user: jaapb <jaapb%pkgsrc.org@localhost>
date: Tue Apr 21 11:29:59 2020 +0000
description:
Updated devel/ocaml-lwt to version 5.2.0.
This adds several updates and bugfixes, some of them breaking. For more
details see the CHANGES file in the distribution.
diffstat:
devel/ocaml-lwt/Makefile | 7 +-
devel/ocaml-lwt/Makefile.common | 5 +-
devel/ocaml-lwt/PLIST | 12 +-
devel/ocaml-lwt/buildlink3.mk | 6 +-
devel/ocaml-lwt/distinfo | 14 +-
devel/ocaml-lwt/patches/patch-src_react_dune | 12 +++
devel/ocaml-lwt/patches/patch-src_unix_config_discover.ml | 38 ----------
devel/ocaml-lwt/patches/patch-src_unix_unix__c_unix__stat__job__utils.c | 22 +-----
8 files changed, 40 insertions(+), 76 deletions(-)
diffs (209 lines):
diff -r 8cf3b571370e -r 3e636454b261 devel/ocaml-lwt/Makefile
--- a/devel/ocaml-lwt/Makefile Tue Apr 21 11:25:38 2020 +0000
+++ b/devel/ocaml-lwt/Makefile Tue Apr 21 11:29:59 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2019/05/13 11:38:45 jaapb Exp $
+# $NetBSD: Makefile,v 1.42 2020/04/21 11:29:59 jaapb Exp $
#
.include "Makefile.common"
@@ -15,11 +15,16 @@
CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
+MAKE_ENV+= LWT_DISCOVER_ARGUMENTS="--use-pthread true --use-libev true --verbose"
+
.include "../../mk/ocaml.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../devel/libev/buildlink3.mk"
.include "../../devel/ocaml-cppo/buildlink3.mk"
.include "../../devel/ocaml-findlib/buildlink3.mk"
.include "../../devel/ocaml-migrate-parsetree/buildlink3.mk"
.include "../../devel/ocaml-mmap/buildlink3.mk"
+.include "../../devel/ocaml-ocplib-endian/buildlink3.mk"
.include "../../devel/ocaml-ppx_tools_versioned/buildlink3.mk"
.include "../../devel/ocaml-result/buildlink3.mk"
.include "../../devel/ocaml-seq/buildlink3.mk"
diff -r 8cf3b571370e -r 3e636454b261 devel/ocaml-lwt/Makefile.common
--- a/devel/ocaml-lwt/Makefile.common Tue Apr 21 11:25:38 2020 +0000
+++ b/devel/ocaml-lwt/Makefile.common Tue Apr 21 11:29:59 2020 +0000
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile.common,v 1.7 2019/05/13 11:38:45 jaapb Exp $
+# $NetBSD: Makefile.common,v 1.8 2020/04/21 11:29:59 jaapb Exp $
-# used by devel/ocaml-lwt_glib/Makefile
# used by devel/ocaml-lwt_ppx/Makefile
# used by devel/ocaml-lwt_react/Makefile
-LWT_VERSION= 4.2.1
+LWT_VERSION= 5.2.0
DISTNAME= lwt-${LWT_VERSION}
LICENSE= mit
diff -r 8cf3b571370e -r 3e636454b261 devel/ocaml-lwt/PLIST
--- a/devel/ocaml-lwt/PLIST Tue Apr 21 11:25:38 2020 +0000
+++ b/devel/ocaml-lwt/PLIST Tue Apr 21 11:29:59 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2019/03/05 16:56:16 jaapb Exp $
+@comment $NetBSD: PLIST,v 1.18 2020/04/21 11:29:59 jaapb Exp $
${OCAML_SITELIB}/lwt/META
${OCAML_SITELIB}/lwt/dune-package
${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/lwt.a
@@ -90,6 +90,11 @@
${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/lwt_engine.cmx
${OCAML_SITELIB}/lwt/unix/lwt_engine.ml
${OCAML_SITELIB}/lwt/unix/lwt_engine.mli
+${OCAML_SITELIB}/lwt/unix/lwt_features.cmi
+${OCAML_SITELIB}/lwt/unix/lwt_features.cmt
+${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/lwt_features.cmx
+${OCAML_SITELIB}/lwt/unix/lwt_features.h
+${OCAML_SITELIB}/lwt/unix/lwt_features.ml
${OCAML_SITELIB}/lwt/unix/lwt_fmt.cmi
${OCAML_SITELIB}/lwt/unix/lwt_fmt.cmt
${OCAML_SITELIB}/lwt/unix/lwt_fmt.cmti
@@ -155,11 +160,8 @@
${OCAML_SITELIB}/lwt/unix/lwt_unix.h
${OCAML_SITELIB}/lwt/unix/lwt_unix.ml
${OCAML_SITELIB}/lwt/unix/lwt_unix.mli
-${OCAML_SITELIB}/lwt/unix/lwt_unix_jobs.cmi
-${OCAML_SITELIB}/lwt/unix/lwt_unix_jobs.cmt
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/lwt_unix_jobs.cmx
-${OCAML_SITELIB}/lwt/unix/lwt_unix_jobs.ml
${OCAML_SITELIB}/stublibs/dlllwt_unix_stubs.so
share/doc/lwt/CHANGES
share/doc/lwt/LICENSE.md
share/doc/lwt/README.md
+share/doc/lwt/odoc-pages/index.mld
diff -r 8cf3b571370e -r 3e636454b261 devel/ocaml-lwt/buildlink3.mk
--- a/devel/ocaml-lwt/buildlink3.mk Tue Apr 21 11:25:38 2020 +0000
+++ b/devel/ocaml-lwt/buildlink3.mk Tue Apr 21 11:29:59 2020 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.14 2019/05/13 11:38:45 jaapb Exp $
+# $NetBSD: buildlink3.mk,v 1.15 2020/04/21 11:29:59 jaapb Exp $
BUILDLINK_TREE+= ocaml-lwt
.if !defined(OCAML_LWT_BUILDLINK3_MK)
OCAML_LWT_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.ocaml-lwt+= ocaml-lwt>=4.0.0
-BUILDLINK_ABI_DEPENDS.ocaml-lwt+= ocaml-lwt>=4.2.1
+BUILDLINK_API_DEPENDS.ocaml-lwt+= ocaml-lwt>=5.0.0
+BUILDLINK_ABI_DEPENDS.ocaml-lwt+= ocaml-lwt>=5.2.0
BUILDLINK_PKGSRCDIR.ocaml-lwt?= ../../devel/ocaml-lwt
#.include "../../devel/libev/buildlink3.mk"
diff -r 8cf3b571370e -r 3e636454b261 devel/ocaml-lwt/distinfo
--- a/devel/ocaml-lwt/distinfo Tue Apr 21 11:25:38 2020 +0000
+++ b/devel/ocaml-lwt/distinfo Tue Apr 21 11:29:59 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.22 2019/05/13 11:38:45 jaapb Exp $
+$NetBSD: distinfo,v 1.23 2020/04/21 11:29:59 jaapb Exp $
-SHA1 (lwt-4.2.1.tar.gz) = bba54c66d8c7dd7b09bc091ed33656276ce73b30
-RMD160 (lwt-4.2.1.tar.gz) = ed70a120a8c2cf87985ef3153512b63959b60bec
-SHA512 (lwt-4.2.1.tar.gz) = 4289568e9ca0ffc8625caddc0b5c7d79737800106289931927133eeeb79e3c638aad4399b075bf46b339e91a739589983ce546f4dad07f492fd31ce5be5c216d
-Size (lwt-4.2.1.tar.gz) = 286694 bytes
-SHA1 (patch-src_unix_config_discover.ml) = ef8ea37d85f20d56654514617050ee46d6080ef1
-SHA1 (patch-src_unix_unix__c_unix__stat__job__utils.c) = 5ec0ae3afe3d65e673681fcf8faeebf811e64518
+SHA1 (lwt-5.2.0.tar.gz) = ccfc215289f33222ad08f3a83b3b5026b3510feb
+RMD160 (lwt-5.2.0.tar.gz) = b7f3b5372bea3aacb3d7fd85481dd86e517dc733
+SHA512 (lwt-5.2.0.tar.gz) = 361019d128bd2924cfa3251a5d8929b0ba85fc519c4c987ab0e3e2023dfc06cf376146941546abd2c03b6999bce0abf0de342507c1ac9674c2915b3b6f280707
+Size (lwt-5.2.0.tar.gz) = 296289 bytes
+SHA1 (patch-src_react_dune) = 49e256b74876a11b75478a1ffc434ff2a6ec61ee
+SHA1 (patch-src_unix_unix__c_unix__stat__job__utils.c) = ca86829f5330a26b5bc8514bf4081fa71b8b32d4
diff -r 8cf3b571370e -r 3e636454b261 devel/ocaml-lwt/patches/patch-src_react_dune
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-lwt/patches/patch-src_react_dune Tue Apr 21 11:29:59 2020 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_react_dune,v 1.1 2020/04/21 11:29:59 jaapb Exp $
+
+bisect_ppx library not needed for release
+
+--- src/react/dune.orig 2020-03-09 04:17:06.000000000 +0000
++++ src/react/dune
+@@ -10,5 +10,4 @@
+ (synopsis "Reactive programming helpers for Lwt")
+ (wrapped false)
+ (libraries lwt react)
+- (preprocess (pps bisect_ppx --conditional))
+ (flags (:standard -w +A)))
diff -r 8cf3b571370e -r 3e636454b261 devel/ocaml-lwt/patches/patch-src_unix_config_discover.ml
--- a/devel/ocaml-lwt/patches/patch-src_unix_config_discover.ml Tue Apr 21 11:25:38 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-$NetBSD: patch-src_unix_config_discover.ml,v 1.1 2018/02/01 09:40:13 jperkin Exp $
-
-Avoid system NANOSEC definition.
-
---- src/unix/config/discover.ml.orig 2017-12-19 21:28:38.000000000 +0000
-+++ src/unix/config/discover.ml
-@@ -279,14 +279,14 @@ let struct_ns_code conversion = "
- #include <unistd.h>
- #include <caml/mlvalues.h>
-
--#define NANOSEC" ^ conversion ^ "
-+#define OCNANOSEC" ^ conversion ^ "
-
- CAMLprim value lwt_test() {
- struct stat *buf;
- double a, m, c;
-- a = (double)NANOSEC(buf, a);
-- m = (double)NANOSEC(buf, m);
-- c = (double)NANOSEC(buf, c);
-+ a = (double)OCNANOSEC(buf, a);
-+ m = (double)OCNANOSEC(buf, m);
-+ c = (double)OCNANOSEC(buf, c);
- return Val_unit;
- }
- "
-@@ -687,10 +687,10 @@ Run with DEBUG=y for more details.
- conversion
- with Not_found -> begin
- printf " %s unavailable\n%!" (String.make 11 '.');
-- fprintf config "#define NANOSEC%s\n" fallback;
-+ fprintf config "#define OCNANOSEC%s\n" fallback;
- fallback
- end in
-- fprintf config "#define NANOSEC%s\n" conversion
-+ fprintf config "#define OCNANOSEC%s\n" conversion
- in
-
- if not (test_basic_compilation ()) then begin
diff -r 8cf3b571370e -r 3e636454b261 devel/ocaml-lwt/patches/patch-src_unix_unix__c_unix__stat__job__utils.c
--- a/devel/ocaml-lwt/patches/patch-src_unix_unix__c_unix__stat__job__utils.c Tue Apr 21 11:25:38 2020 +0000
+++ b/devel/ocaml-lwt/patches/patch-src_unix_unix__c_unix__stat__job__utils.c Tue Apr 21 11:29:59 2020 +0000
@@ -1,11 +1,10 @@
-$NetBSD: patch-src_unix_unix__c_unix__stat__job__utils.c,v 1.1 2018/04/05 11:04:40 jaapb Exp $
+$NetBSD: patch-src_unix_unix__c_unix__stat__job__utils.c,v 1.2 2020/04/21 11:29:59 jaapb Exp $
Need limits.h for IOV_MAX.
-Avoid system NANOSEC definition.
---- src/unix/unix_c/unix_stat_job_utils.c.orig 2018-01-11 16:40:12.000000000 +0000
+--- src/unix/unix_c/unix_stat_job_utils.c.orig 2020-03-09 04:17:06.000000000 +0000
+++ src/unix/unix_c/unix_stat_job_utils.c
-@@ -28,6 +28,7 @@
+@@ -10,6 +10,7 @@
#include <caml/alloc.h>
#include <caml/memory.h>
#include <errno.h>
@@ -13,18 +12,3 @@
#include "unix_stat_job_utils.h"
-@@ -37,11 +38,11 @@ value copy_stat(int use_64, struct stat
- CAMLlocal5(atime, mtime, ctime, offset, v);
-
- atime = caml_copy_double((double)buf->st_atime +
-- (NANOSEC(buf, a) / 1000000000.0));
-+ (OCNANOSEC(buf, a) / 1000000000.0));
- mtime = caml_copy_double((double)buf->st_mtime +
-- (NANOSEC(buf, m) / 1000000000.0));
-+ (OCNANOSEC(buf, m) / 1000000000.0));
- ctime = caml_copy_double((double)buf->st_ctime +
-- (NANOSEC(buf, c) / 1000000000.0));
-+ (OCNANOSEC(buf, c) / 1000000000.0));
- offset = use_64 ? caml_copy_int64(buf->st_size) : Val_int(buf->st_size);
- v = caml_alloc_small(12, 0);
- Field(v, 0) = Val_int(buf->st_dev);
Home |
Main Index |
Thread Index |
Old Index