diff options
author | jaapb <jaapb@pkgsrc.org> | 2017-07-11 11:06:54 +0000 |
---|---|---|
committer | jaapb <jaapb@pkgsrc.org> | 2017-07-11 11:06:54 +0000 |
commit | a7a23d5a6219be4eb50b433bcce5ebd7e82ecfb7 (patch) | |
tree | 52fbec81cf303520aeb62e4ae18217409e2f8058 /devel/ocaml-lwt | |
parent | 14bf97a507dcad45ea38b6da373ec078f25cda51 (diff) | |
download | pkgsrc-a7a23d5a6219be4eb50b433bcce5ebd7e82ecfb7.tar.gz |
Update package to version 2.7.1. Changes include:
===== 2.7.1 (2017-04-08) =====
====== Fixes ======
* OCaml 4.05 compatibility (Mauricio Fernandez, #322).
* Give Lwt_unix.file_exists the same semantics as Sys.file_exists, with
respect to not raising Unix.Unix_error (Mauricio Fernandez, #316).
* Improve diagnostics from build scripts (Tim Cuthbertson, #313, #314).
====== Additions ======
* Announce Lwt_result, which was originally released as an experimental module
in release 2.6.0 (Simon Cruanes, #320, #247).
===== 2.7.0 (2017-01-03) =====
====== General ======
* Values of types a Lwt.t are now referred to as promises rather than threads
(#300). The manual has not yet been updated.
====== Breaking ======
* After this release, Lwt will switch to semantic versioning. Future breaking
changes will first require deprecation, then a major version number increase
(#293).
* Lwt no longer supports OCaml 4.01 (#272).
* Lwt_unix.fdatasync is no longer available on macOS. It was calling an
undocumented system call on that system (#285, Jeremy Yallop).
====== Planned to break in 3.0.0 ======
* APIs in this category have deprecation messages attached. The messages will
be displayed if you recompile your code, and can also be seen in #308.
* Lwt_engine.libev will have an argument for selecting the libev back end
(#269, #294, Jeremy Yallop).
* Lwt_io.establish_server will be replaced by a version that makes it
difficult to leak file descriptors (#258, #260).
* Lwt_io.shutdown_server will evaluate to a promise, which indicates when the
close operation completes (#259).
* Lwt_unix.bind will evaluate to a promise, since bind can block for Unix
domain sockets (#296, requested David Sheets).
* ocamlfind packages lwt.react, lwt.ssl, and lwt.glib will be replaced by the
new lwt_react, lwt_ssl, and lwt_glib. These are now distributed in new OPAM
packages with the same names, separately from OPAM package lwt (#301).
====== Additions ======
* Lwt_unix.readv and Lwt_unix.writev - zero-copy scatter/gather I/O
(#291, #299).
* ?fail_on_error argument for Lwt_log.load_rules (#306, Daniil Baturin).
* Lwt_log.level_of_string (#306, Daniil Baturin).
====== Changes ======
* Lwt_stream.of_list, Lwt_stream.of_array, Lwt_stream.of_string now
immediately push all elements into the created streams
(#239, Spiros Eliopoulos).
====== Deprecations ======
* Lwt_stream.map_exn in favor of Lwt_stream.wrap_exn, which uses OCaml's
standard result type (#295).
====== Bugs fixed ======
* Ungraceful failure if directory handle used after Lwt_unix.closedir (#292).
* Buffer overflow in Lwt_unix.readdir and Lwt_unix.readdir_n (#292).
* Unnecessary allocations in Lwt_unix.readdir_n (#292, found Jeremly Yallop).
====== Miscellaneous ======
* Annotate existing deprecations with [@@ocaml.deprecated ...] (5737f5b).
* Improvements to the examples (#288, Rich Neswold).
* Documentation fixes, including by Rich Neswold.
* New tests and various minor internal improvements.
* Run tests in CI with all OCaml warnings enabled (dadb926).
* Much cleaner build output.
* Add scratch/ directory for local use by developers.
===== 2.6.0 (2016-10-27) =====
====== Additions ======
* Lwt_stream.closed and Lwt_stream.is_closed (#223, Spiros Eliopoulos).
* Lwt_switch.with_switch (#256, Thomas Leonard).
* Define 'a Lwt.result as ('a, exn) result (#247, Simon Cruanes).
* Lwt_condition.broadcast_exn (#241, Nicolas Ojeda Bar).
* Lwt_unix.utimes (#193).
====== Bugfixes ======
* Memory leak in Lwt_unix.readdir_n (#229, diagnosed Thomas Leonard).
* Memory leak in Lwt.protected (#56, #181, reported @ygrek, Mauricio
Fernandez).
* Lwt_switch.turn_off hook exception handling (995b704).
* Handling of ENOTCONN when channels passed to handler of
Lwt_io.establish_server are closed (95fb431).
* Duplicate exceptions on implicit close in Lwt_io.with_connection (b1afe45).
* Deadlock in Lwt_main.at_exit (#48, #114, reported Jérôme Vouillon, Vincent
Bernardoff).
* Performance of Lwt_preemptive.detach (#218, #219, Mauricio Fernandez).
* Bad hash functions for libev loops (#146, reported Mark Christiaens).
* Hash of uninitialized data in Lwt_io (#217, reported Jeremy Yallop).
* Update log sections after Lwt_log.load_rules (#188, reported @rand00).
* Print three digits for milliseconds in Lwt_log (#264, Fabian Hemmer).
* Do not truncate Unix job notification ids in C (#277, diagnosed
@stijn-devriendt).
====== Deprecations ======
* Lwt_stream.on_termination: bind on Lwt_stream.closed instead.
* Lwt.make_value, Lwt.make_error: use result's Ok and Error constructors.
* Lwt_pqueue, Lwt_sequence: use min-heaps and linked lists from another
library (#135).
* Pa_lwt, Pa_lwt_log: use Ppx_lwt.
====== Miscellaneous ======
* Update examples to use PPX syntax instead of Camlp4 (#108, Peter Zotov).
* Set up Travis, AppVeyor for testing on Linux, OS X, Cygwin, and MinGW. MSVC
also planned.
* Large amount of local documentation fixes (Hezekiah Carty, Etienne Millon,
Leo Wzukw, Sebastien Mondet, reports by others).
* A bunch of new tests.
Diffstat (limited to 'devel/ocaml-lwt')
-rw-r--r-- | devel/ocaml-lwt/Makefile | 20 | ||||
-rw-r--r-- | devel/ocaml-lwt/PLIST | 9 | ||||
-rw-r--r-- | devel/ocaml-lwt/buildlink3.mk | 3 | ||||
-rw-r--r-- | devel/ocaml-lwt/distinfo | 10 | ||||
-rw-r--r-- | devel/ocaml-lwt/options.mk | 3 |
5 files changed, 24 insertions, 21 deletions
diff --git a/devel/ocaml-lwt/Makefile b/devel/ocaml-lwt/Makefile index 525af6c6b8d..34582d038a3 100644 --- a/devel/ocaml-lwt/Makefile +++ b/devel/ocaml-lwt/Makefile @@ -1,9 +1,8 @@ -# $NetBSD: Makefile,v 1.28 2016/12/30 11:16:59 jaapb Exp $ +# $NetBSD: Makefile,v 1.29 2017/07/11 11:06:54 jaapb Exp $ # -DISTNAME= lwt-2.5.2 +DISTNAME= lwt-2.7.1 PKGNAME= ocaml-${DISTNAME} -PKGREVISION= 3 CATEGORIES= devel #MASTER_SITES= http://github.com/ocsigen/lwt/archive/ MASTER_SITES= ${MASTER_SITE_GITHUB:=ocsigen/} @@ -16,24 +15,21 @@ LICENSE= gnu-lgpl-v2.1 DEPENDS+= ocaml-ppx_tools-[0-9]*:../../devel/ocaml-ppx_tools DEPENDS+= ocaml-react-[0-9]*:../../devel/ocaml-react -BUILDLINK_API_DEPENDS.ocaml-ssl+= ocaml-ssl>=0.5.0 -OCAML_USE_OASIS= yes -CONFIGURE_ARGS+= --destdir "${DESTDIR}" --prefix "${PREFIX}" --enable-react \ - --disable-glib +OCAML_USE_OASIS_DYNRUN= yes +CONFIGURE_ARGS+= --destdir "${DESTDIR}" --prefix "${PREFIX}" \ + --bindir "${DESTDIR}${PREFIX}/bin" \ + --enable-react --disable-glib SUBST_CLASSES+= libev destdir SUBST_STAGE.libev= post-configure SUBST_MESSAGE.libev= Correcting compiler flags for libev SUBST_FILES.libev= setup.data SUBST_SED.libev= -e 's%"-lev"%"-lev -L${PREFIX}/lib/ev ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ev"%' -#SUBST_STAGE.destdir= post-configure -#SUBST_MESSAGE.destdir= Changing install location to DESTDIR -#SUBST_FILES.destdir= setup.ml -#SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' .include "options.mk" .include "../../mk/ocaml.mk" -.include "../../devel/ocaml-findlib/buildlink3.mk" .include "../../devel/libev/buildlink3.mk" +.include "../../devel/ocaml-cppo/buildlink3.mk" +.include "../../devel/ocaml-findlib/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/ocaml-lwt/PLIST b/devel/ocaml-lwt/PLIST index 9746f409fb1..5e4accf4ed2 100644 --- a/devel/ocaml-lwt/PLIST +++ b/devel/ocaml-lwt/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.8 2016/06/25 14:18:35 jaapb Exp $ +@comment $NetBSD: PLIST,v 1.9 2017/07/11 11:06:54 jaapb Exp $ ${PLIST.ppx}bin/ppx_lwt ${OCAML_SITELIB}/lwt/META ${OCAML_SITELIB}/lwt/dlllwt-unix_stubs.so @@ -165,6 +165,12 @@ ${OCAML_SITELIB}/lwt/lwt_react.cmt ${OCAML_SITELIB}/lwt/lwt_react.cmti ${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/lwt_react.cmx ${OCAML_SITELIB}/lwt/lwt_react.mli +${OCAML_SITELIB}/lwt/lwt_result.annot +${OCAML_SITELIB}/lwt/lwt_result.cmi +${OCAML_SITELIB}/lwt/lwt_result.cmt +${OCAML_SITELIB}/lwt/lwt_result.cmti +${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/lwt_result.cmx +${OCAML_SITELIB}/lwt/lwt_result.mli ${OCAML_SITELIB}/lwt/lwt_sequence.annot ${OCAML_SITELIB}/lwt/lwt_sequence.cmi ${OCAML_SITELIB}/lwt/lwt_sequence.cmt @@ -214,7 +220,6 @@ ${OCAML_SITELIB}/lwt/lwt_unix.cmt ${OCAML_SITELIB}/lwt/lwt_unix.cmti ${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/lwt_unix.cmx ${OCAML_SITELIB}/lwt/lwt_unix.h -${OCAML_SITELIB}/lwt/lwt_unix.mli ${PLIST.ocaml-opt}${OCAML_SITELIB}/lwt/lwt_unix_jobs_generated.cmx ${PLIST.camlp4}${OCAML_SITELIB}/lwt/pa_lwt.annot ${PLIST.camlp4}${OCAML_SITELIB}/lwt/pa_lwt.cmi diff --git a/devel/ocaml-lwt/buildlink3.mk b/devel/ocaml-lwt/buildlink3.mk index f193c15dd66..232deac3967 100644 --- a/devel/ocaml-lwt/buildlink3.mk +++ b/devel/ocaml-lwt/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.3 2016/02/17 17:00:38 jaapb Exp $ +# $NetBSD: buildlink3.mk,v 1.4 2017/07/11 11:06:54 jaapb Exp $ BUILDLINK_TREE+= ocaml-lwt @@ -6,6 +6,7 @@ BUILDLINK_TREE+= ocaml-lwt OCAML_LWT_BUILDLINK3_MK:= BUILDLINK_API_DEPENDS.ocaml-lwt+= ocaml-lwt>=2.4.2 +BUILDLINK_ABI_DEPENDS.ocaml-lwt+= ocaml-lwt>=2.7.1 BUILDLINK_PKGSRCDIR.ocaml-lwt?= ../../devel/ocaml-lwt .include "../../devel/libev/buildlink3.mk" diff --git a/devel/ocaml-lwt/distinfo b/devel/ocaml-lwt/distinfo index a4d8d2c4e1e..d3e4540d765 100644 --- a/devel/ocaml-lwt/distinfo +++ b/devel/ocaml-lwt/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.11 2016/05/06 15:39:36 jaapb Exp $ +$NetBSD: distinfo,v 1.12 2017/07/11 11:06:54 jaapb Exp $ -SHA1 (lwt-2.5.2.tar.gz) = 99c0653e5422a5b80dc470f8abb83956b5628e5f -RMD160 (lwt-2.5.2.tar.gz) = d394b854d69f39f5b1977e6b864ce317a9b29193 -SHA512 (lwt-2.5.2.tar.gz) = 83c7a9d9798fe12e0bdd618e7f69ac357065a9b26e2abb644240c420cb1d507a3b558549b2f82ecc9c3fbc9ca5952e8d7cb32b6832713bfb6fffcb58975d5449 -Size (lwt-2.5.2.tar.gz) = 268168 bytes +SHA1 (lwt-2.7.1.tar.gz) = 525d5840a0bb6d892ad0f3b54c2b1bb34471c986 +RMD160 (lwt-2.7.1.tar.gz) = e2067b48d3f0844aa4e352c73e5a1a422cb38e6f +SHA512 (lwt-2.7.1.tar.gz) = e353cfabb6845f3c410e1a3e658787f3a9cb981e73701d84555e639af052bb05eb734d7f7027eb3c0079c9edfef21bb0ca4b9a7683b02056d724142a2980c348 +Size (lwt-2.7.1.tar.gz) = 296224 bytes diff --git a/devel/ocaml-lwt/options.mk b/devel/ocaml-lwt/options.mk index 4703f69e942..be99dd6b26d 100644 --- a/devel/ocaml-lwt/options.mk +++ b/devel/ocaml-lwt/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.2 2016/02/17 17:00:38 jaapb Exp $ +# $NetBSD: options.mk,v 1.3 2017/07/11 11:06:54 jaapb Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.ocaml-lwt PKG_SUPPORTED_OPTIONS= ssl ppx camlp4 @@ -14,6 +14,7 @@ PLIST_VARS+= ppx camlp4 ### .if !empty(PKG_OPTIONS:Mssl) .include "../../security/ocaml-ssl/buildlink3.mk" +BUILDLINK_API_DEPENDS.ocaml-ssl+= ocaml-ssl>=0.5.0 CONFIGURE_ARGS+= --enable-ssl .else CONFIGURE_ARGS+= --disable-ssl |