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 4.0.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3751f88aba2
branches:  trunk
changeset: 378678:e3751f88aba2
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Fri Apr 13 12:52:00 2018 +0000

description:
Updated devel/ocaml-lwt to version 4.0.1.

4.0.0 is a major release that breaks quite a few interfaces, such as:

* Delete package lwt.ppx. The PPX syntax is in package lwt_ppx since
  Lwt 3.2.0.
* Remove >> syntax from the PPX.
* Delete modules Lwt_log, Lwt_daemon, Lwt_log_core, and package lwt.log.
  These are in package lwt_log since Lwt 3.2.0, but it is recommended to
  use Logs_lwt from the logs library instead (initiated Hannes Mehnert).
* Delete package lwt.preemptive. It is an alias for lwt.unix since
  Lwt 3.2.0.
* Delete package lwt.syntax. The Camlp4 syntax is in package lwt_camlp4
  since Lwt 3.2.0.
* Delete module Lwt_chan, a predecessor of Lwt_io.
* Delete package lwt.simple-top, a predecessor of utop.
* Make resolvers (Lwt.u) contravariant.

(for an upgrade path see the upstream Github site)

4.0.1 is a bugfix release.

diffstat:

 devel/ocaml-lwt/Makefile                                |   5 +-
 devel/ocaml-lwt/Makefile.common                         |   4 +-
 devel/ocaml-lwt/PLIST                                   |  46 +----------------
 devel/ocaml-lwt/buildlink3.mk                           |   6 +-
 devel/ocaml-lwt/distinfo                                |  17 ++----
 devel/ocaml-lwt/patches/patch-META.lwt                  |  23 --------
 devel/ocaml-lwt/patches/patch-src_camlp4_jbuild         |  21 -------
 devel/ocaml-lwt/patches/patch-src_camlp4_log_jbuild     |  22 --------
 devel/ocaml-lwt/patches/patch-src_camlp4_options_jbuild |  20 -------
 devel/ocaml-lwt/patches/patch-src_ppx_jbuild            |  25 ---------
 10 files changed, 16 insertions(+), 173 deletions(-)

diffs (290 lines):

diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/Makefile
--- a/devel/ocaml-lwt/Makefile  Fri Apr 13 12:45:02 2018 +0000
+++ b/devel/ocaml-lwt/Makefile  Fri Apr 13 12:52:00 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2018/04/05 11:52:28 jaapb Exp $
+# $NetBSD: Makefile,v 1.36 2018/04/13 12:52:00 jaapb Exp $
 #
 
 .include "Makefile.common"
@@ -13,8 +13,11 @@
 #MAKE_JOBS_SAFE=       no
 JBUILDER_BUILD_PACKAGES=       lwt
 
+HAS_CONFIGURE= yes
 CONFIGURE_ARGS=        -use-libev false
 
+OCAML_USE_JBUILDER=    yes
+
 do-configure:
        cd ${WRKSRC} && ocaml src/util/configure.ml ${CONFIGURE_ARGS}
 
diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/Makefile.common
--- a/devel/ocaml-lwt/Makefile.common   Fri Apr 13 12:45:02 2018 +0000
+++ b/devel/ocaml-lwt/Makefile.common   Fri Apr 13 12:52:00 2018 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile.common,v 1.3 2018/04/05 11:04:39 jaapb Exp $
+# $NetBSD: Makefile.common,v 1.4 2018/04/13 12:52:00 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=   3.3.0
+LWT_VERSION=   4.0.1
 DISTNAME=      lwt-${LWT_VERSION}
 
 LICENSE=       gnu-lgpl-v2.1
diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/PLIST
--- a/devel/ocaml-lwt/PLIST     Fri Apr 13 12:45:02 2018 +0000
+++ b/devel/ocaml-lwt/PLIST     Fri Apr 13 12:52:00 2018 +0000
@@ -1,22 +1,5 @@
-@comment $NetBSD: PLIST,v 1.14 2018/04/05 11:52:28 jaapb Exp $
+@comment $NetBSD: PLIST,v 1.15 2018/04/13 12:52:00 jaapb Exp $
 ${OCAML_SITELIB}/lwt/META
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/log/lwt_log.a
-${OCAML_SITELIB}/lwt/log/lwt_log.cma
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/log/lwt_log.cmxa
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/log/lwt_log.cmxs
-${OCAML_SITELIB}/lwt/log/lwt_log_core.cmi
-${OCAML_SITELIB}/lwt/log/lwt_log_core.cmt
-${OCAML_SITELIB}/lwt/log/lwt_log_core.cmti
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/log/lwt_log_core.cmx
-${OCAML_SITELIB}/lwt/log/lwt_log_core.ml
-${OCAML_SITELIB}/lwt/log/lwt_log_core.mli
-${OCAML_SITELIB}/lwt/log/lwt_log_rules.cmi
-${OCAML_SITELIB}/lwt/log/lwt_log_rules.cmt
-${OCAML_SITELIB}/lwt/log/lwt_log_rules.cmti
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/log/lwt_log_rules.cmx
-${OCAML_SITELIB}/lwt/log/lwt_log_rules.ml
-${OCAML_SITELIB}/lwt/log/lwt_log_rules.mli
-${OCAML_SITELIB}/lwt/log/lwt.log.dune
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/lwt.a
 ${OCAML_SITELIB}/lwt/lwt.cma
 ${OCAML_SITELIB}/lwt/lwt.cmi
@@ -89,15 +72,6 @@
 ${OCAML_SITELIB}/lwt/lwt_switch.ml
 ${OCAML_SITELIB}/lwt/lwt_switch.mli
 ${OCAML_SITELIB}/lwt/opam
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/simple-top/lwt_simple_top.a
-${OCAML_SITELIB}/lwt/simple-top/lwt_simple_top.cma
-${OCAML_SITELIB}/lwt/simple-top/lwt_simple_top.cmi
-${OCAML_SITELIB}/lwt/simple-top/lwt_simple_top.cmt
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/simple-top/lwt_simple_top.cmx
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/simple-top/lwt_simple_top.cmxa
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/simple-top/lwt_simple_top.cmxs
-${OCAML_SITELIB}/lwt/simple-top/lwt_simple_top.ml
-${OCAML_SITELIB}/lwt/simple-top/lwt.simple-top.dune
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/liblwt_unix_stubs.a
 ${OCAML_SITELIB}/lwt/unix/lwt_bytes.cmi
 ${OCAML_SITELIB}/lwt/unix/lwt_bytes.cmt
@@ -105,23 +79,11 @@
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/lwt_bytes.cmx
 ${OCAML_SITELIB}/lwt/unix/lwt_bytes.ml
 ${OCAML_SITELIB}/lwt/unix/lwt_bytes.mli
-${OCAML_SITELIB}/lwt/unix/lwt_chan.cmi
-${OCAML_SITELIB}/lwt/unix/lwt_chan.cmt
-${OCAML_SITELIB}/lwt/unix/lwt_chan.cmti
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/lwt_chan.cmx
-${OCAML_SITELIB}/lwt/unix/lwt_chan.ml
-${OCAML_SITELIB}/lwt/unix/lwt_chan.mli
 ${OCAML_SITELIB}/lwt/unix/lwt_config.cmi
 ${OCAML_SITELIB}/lwt/unix/lwt_config.cmt
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/lwt_config.cmx
 ${OCAML_SITELIB}/lwt/unix/lwt_config.h
 ${OCAML_SITELIB}/lwt/unix/lwt_config.ml
-${OCAML_SITELIB}/lwt/unix/lwt_daemon.cmi
-${OCAML_SITELIB}/lwt/unix/lwt_daemon.cmt
-${OCAML_SITELIB}/lwt/unix/lwt_daemon.cmti
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/lwt_daemon.cmx
-${OCAML_SITELIB}/lwt/unix/lwt_daemon.ml
-${OCAML_SITELIB}/lwt/unix/lwt_daemon.mli
 ${OCAML_SITELIB}/lwt/unix/lwt_engine.cmi
 ${OCAML_SITELIB}/lwt/unix/lwt_engine.cmt
 ${OCAML_SITELIB}/lwt/unix/lwt_engine.cmti
@@ -140,12 +102,6 @@
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/lwt_io.cmx
 ${OCAML_SITELIB}/lwt/unix/lwt_io.ml
 ${OCAML_SITELIB}/lwt/unix/lwt_io.mli
-${OCAML_SITELIB}/lwt/unix/lwt_log.cmi
-${OCAML_SITELIB}/lwt/unix/lwt_log.cmt
-${OCAML_SITELIB}/lwt/unix/lwt_log.cmti
-${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/unix/lwt_log.cmx
-${OCAML_SITELIB}/lwt/unix/lwt_log.ml
-${OCAML_SITELIB}/lwt/unix/lwt_log.mli
 ${OCAML_SITELIB}/lwt/unix/lwt_main.cmi
 ${OCAML_SITELIB}/lwt/unix/lwt_main.cmt
 ${OCAML_SITELIB}/lwt/unix/lwt_main.cmti
diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/buildlink3.mk
--- a/devel/ocaml-lwt/buildlink3.mk     Fri Apr 13 12:45:02 2018 +0000
+++ b/devel/ocaml-lwt/buildlink3.mk     Fri Apr 13 12:52:00 2018 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.9 2018/04/05 11:04:39 jaapb Exp $
+# $NetBSD: buildlink3.mk,v 1.10 2018/04/13 12:52:00 jaapb Exp $
 
 BUILDLINK_TREE+=       ocaml-lwt
 
 .if !defined(OCAML_LWT_BUILDLINK3_MK)
 OCAML_LWT_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.ocaml-lwt+=      ocaml-lwt>=3.0.0
-BUILDLINK_ABI_DEPENDS.ocaml-lwt+=      ocaml-lwt>=3.3.0
+BUILDLINK_API_DEPENDS.ocaml-lwt+=      ocaml-lwt>=4.0.0
+BUILDLINK_ABI_DEPENDS.ocaml-lwt+=      ocaml-lwt>=4.0.1
 BUILDLINK_PKGSRCDIR.ocaml-lwt?=                ../../devel/ocaml-lwt
 
 #.include "../../devel/libev/buildlink3.mk"
diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/distinfo
--- a/devel/ocaml-lwt/distinfo  Fri Apr 13 12:45:02 2018 +0000
+++ b/devel/ocaml-lwt/distinfo  Fri Apr 13 12:52:00 2018 +0000
@@ -1,13 +1,8 @@
-$NetBSD: distinfo,v 1.17 2018/04/05 11:52:28 jaapb Exp $
+$NetBSD: distinfo,v 1.18 2018/04/13 12:52:00 jaapb Exp $
 
-SHA1 (lwt-3.3.0.tar.gz) = 1a8aec06b4080577a989cbaeec0614359465ea73
-RMD160 (lwt-3.3.0.tar.gz) = 2f374a7e315daa03f7f3b3039abbf757dc5b7892
-SHA512 (lwt-3.3.0.tar.gz) = 452425c8c0cddd53463da658b1bb8edb0c5ead2e0de0f733dbf624d373fec94c3121e77cc285427770388e16106fae84c32805b6642d1797200660fed91d0f29
-Size (lwt-3.3.0.tar.gz) = 312052 bytes
-SHA1 (patch-META.lwt) = 0581a5dcea185694703955f6c55837465b62888e
-SHA1 (patch-src_camlp4_jbuild) = f1d1100dcd9b66875ed69dc25bc5546b52c2532e
-SHA1 (patch-src_camlp4_log_jbuild) = 7e6e7dddf0ff1c5983aea6515a43761edab874df
-SHA1 (patch-src_camlp4_options_jbuild) = 3c0232d5424b0ad85cf3a99803ebcf54b51c7ac1
-SHA1 (patch-src_ppx_jbuild) = e57f511041d811232af8a4b52c5c39153cca7dc9
+SHA1 (lwt-4.0.1.tar.gz) = c334e473b5adc6e9c523b99efd79ff6d097151b8
+RMD160 (lwt-4.0.1.tar.gz) = 220787f2dea34019e08f1efc9aa3470136fadbf3
+SHA512 (lwt-4.0.1.tar.gz) = 4c1e63fb052ba001f18ce0ef289eee1548df3fe6381a718493e0adc4744ed40a1acb561fbf279f15c4684e19ed052edd2cab1c7e57da671d9e1e75f3bf1f8644
+Size (lwt-4.0.1.tar.gz) = 291046 bytes
 SHA1 (patch-src_unix_config_discover.ml) = ef8ea37d85f20d56654514617050ee46d6080ef1
-SHA1 (patch-src_unix_unix__c_unix__stat__job__utils.c) = dbecbc5507e901a1187dc69d0fa0c1dfa2097b22
+SHA1 (patch-src_unix_unix__c_unix__stat__job__utils.c) = 5ec0ae3afe3d65e673681fcf8faeebf811e64518
diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/patches/patch-META.lwt
--- a/devel/ocaml-lwt/patches/patch-META.lwt    Fri Apr 13 12:45:02 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-$NetBSD: patch-META.lwt,v 1.3 2018/04/05 11:04:39 jaapb Exp $
-
-Directories need to be recognised
---- META.lwt.orig      2018-03-07 19:44:32.000000000 +0000
-+++ META.lwt
-@@ -14,7 +14,7 @@ plugin(byte) = "lwt.cma"
- plugin(native) = "lwt.cmxs"
- 
- package "log" (
--  #directory = "log"
-+  directory = "log"
-   version = "3.3.0"
-   description = "Logger for Lwt (deprecated; use lwt_log)"
-   requires = "bytes lwt result"
-@@ -113,7 +113,7 @@ package "syntax" (
- )
- 
- package "unix" (
--  #directory = "unix"
-+  directory = "unix"
-   version = "3.3.0"
-   description = "Unix support for Lwt"
-   requires = "bigarray bytes lwt lwt.log result threads unix"
diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/patches/patch-src_camlp4_jbuild
--- a/devel/ocaml-lwt/patches/patch-src_camlp4_jbuild   Fri Apr 13 12:45:02 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-$NetBSD: patch-src_camlp4_jbuild,v 1.1 2018/04/05 11:04:40 jaapb Exp $
-
-Remove double library (already in CVS upstream)
---- src/camlp4/jbuild.orig     2018-03-07 19:44:32.000000000 +0000
-+++ src/camlp4/jbuild
-@@ -1,15 +1,6 @@
- (jbuild_version 1)
- 
- (library
-- ((name lwt_syntax)
--  (public_name lwt.syntax)
--  (synopsis "Camlp4 syntax for Lwt (deprecated; use lwt.ppx)")
--  (optional)
--  (wrapped false)
--  (libraries (camlp4 lwt.syntax.options))
--  (preprocess (action (run camlp4oof ${<})))))
--
--(library
-  ((name lwt_camlp4)
-   (public_name lwt_camlp4)
-   (synopsis "Camlp4 syntax for Lwt (deprecated; use lwt_ppx)")
diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/patches/patch-src_camlp4_log_jbuild
--- a/devel/ocaml-lwt/patches/patch-src_camlp4_log_jbuild       Fri Apr 13 12:45:02 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-src_camlp4_log_jbuild,v 1.1 2018/04/05 11:04:40 jaapb Exp $
-
-Remove double library (already in CVS upstream)
---- src/camlp4/log/jbuild.orig 2018-03-07 19:44:32.000000000 +0000
-+++ src/camlp4/log/jbuild
-@@ -1,16 +1,6 @@
- (jbuild_version 1)
- 
- (library
-- ((name lwt_syntax_log)
--  (public_name lwt.syntax.log)
--  (synopsis "Camlp4 syntax for Lwt logging (deprecated; use lwt.ppx)")
--  (optional)
--  (wrapped false)
--  (libraries (camlp4 lwt.syntax.options))
--  (flags (:standard -w +A-3-4-58))
--  (preprocess (action (run camlp4oof ${<})))))
--
--(library
-  ((name lwt_camlp4_log)
-   (public_name lwt_camlp4.log)
-   (synopsis "Camlp4 syntax for Lwt logging (deprecated; use lwt_ppx)")
diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/patches/patch-src_camlp4_options_jbuild
--- a/devel/ocaml-lwt/patches/patch-src_camlp4_options_jbuild   Fri Apr 13 12:45:02 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-src_camlp4_options_jbuild,v 1.1 2018/04/05 11:04:40 jaapb Exp $
-
-Remove double library (already in CVS upstream)
---- src/camlp4/options/jbuild.orig     2018-03-07 19:44:32.000000000 +0000
-+++ src/camlp4/options/jbuild
-@@ -1,14 +1,6 @@
- (jbuild_version 1)
- 
- (library
-- ((name lwt_syntax_options)
--  (public_name lwt.syntax.options)
--  (synopsis "Options for Lwt Camlp4 syntax extension (deprecated; use lwt.ppx)")
--  (optional)
--  (wrapped false)
--  (libraries (camlp4))))
--
--(library
-  ((name lwt_camlp4_options)
-   (public_name lwt_camlp4.options)
-   (synopsis "Options for Lwt Camlp4 syntax extension (deprecated; use lwt_ppx)")
diff -r e3f13a4d5236 -r e3751f88aba2 devel/ocaml-lwt/patches/patch-src_ppx_jbuild
--- a/devel/ocaml-lwt/patches/patch-src_ppx_jbuild      Fri Apr 13 12:45:02 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-src_ppx_jbuild,v 1.1 2018/04/05 11:04:40 jaapb Exp $
-
-Remove double library (already in CVS upstream)
---- src/ppx/jbuild.orig        2018-03-07 19:44:32.000000000 +0000
-+++ src/ppx/jbuild
-@@ -2,19 +2,6 @@
- 
- (library
-  ((name ppx_lwt)
--  (public_name lwt.ppx)
--  (synopsis "Lwt PPX syntax extension")
--  (modules (ppx_lwt))
--  (libraries (compiler-libs.common
--              ocaml-migrate-parsetree
--              ppx_tools_versioned))
--  (ppx_runtime_libraries (lwt))
--  (kind ppx_rewriter)
--  (preprocess (pps (ppx_tools_versioned.metaquot_404)))
--  (flags (:standard -w +A-4))))
--
--(library
-- ((name ppx_lwt)
-   (public_name lwt_ppx)
-   (synopsis "Lwt PPX syntax extension")
-   (modules (ppx_lwt))



Home | Main Index | Thread Index | Old Index