pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/zeromq Update net/zeromq to 4.2.1.
details: https://anonhg.NetBSD.org/pkgsrc/rev/cad7d59e5670
branches: trunk
changeset: 357963:cad7d59e5670
user: fhajny <fhajny%pkgsrc.org@localhost>
date: Thu Feb 02 10:09:53 2017 +0000
description:
Update net/zeromq to 4.2.1.
0MQ version 4.2.1 stable, released on 2016/12/31
=============================================
* New DRAFT (see NEWS for 4.2.0) Socket Monitor events:
- ZMQ_EVENT_HANDSHAKE_SUCCEED
- ZMQ_EVENT_HANDSHAKE_FAILED
These events trigger when the ZMTP security mechanism handshake is
completed. See doc/zmq_socket_monitor.txt for more information.
* New DRAFT (see NEWS for 4.2.0) Context options:
- ZMQ_MSG_T_SIZE
See doc/zmq_ctx_get.txt for more information.
* Fixed #2268 - improved compatibility with mingw32
* Fixed #2254 - ZMQ_PUB compatibility with libzmq 2.x broken
* Fixed #2245 - added support for VS2017, Windows SDK 10.0.14393.0, toolset v141
* Fixed #2242 - file descriptors leaks on fork+exec
* Fixed #2239 - retired poller item crash from reaper thread
* Fixed #2234 - improved compatibility with AIX 7.1
* Fixed #2225 - cannot pick select for poller
* Fixed #2217 - CMake build uses library version as the ABI version
* Fixed #2208 - added support for ZMQ_TOS on IPv6
* Fixed #2200 - no documentation for ZMQ_SOCKS_PROXY
* Fixed #2199 - no documentation for zmq_curve_public
* Fixed #2196 - fixed build and runtime errors on kFreeBSD
0MQ version 4.2.0 stable, released on 2016/11/04
=============================================
* For Pieter. Thanks for making all of this possible.
"Tell them I was a writer.
A maker of software.
A humanist. A father.
And many things.
But above all, a writer.
Thank You. :)"
- Pieter Hintjens
* This release introduces new APIs, but it is ABI compatible with
libzmq 4.1.2 and up.
* Note for ARM and SPARC users: an alignment problem in zmq_msg_t that could in
some cases and on some CPUs cause a SIGBUS error was solved, but it requires
a rebuild of your application against the 4.2.0 version of include/zmq.h.
To clarify, this change does not affect the internals of the library but only
the public definition of zmq_msg_t, so there is no ABI incompatibility.
* Security with Curve is now available by default thanks to Tweetnacl sources:
https://tweetnacl.cr.yp.to/index.html
Libsodium is still fully supported but has to be enabled with the build flag
--with-libsodium. Distribution and package maintainers are encouraged to use
libsodium so that the security implementation can be audited and maintained
separately.
* New Context options:
- ZMQ_MAX_MSGSZ
- ZMQ_BLOCKY
See doc/zmq_ctx_set.txt and doc/zmq_ctx_get.txt for details.
* New Socket options:
- ZMQ_HANDSHAKE_IVL
- ZMQ_SOCKS_PROXY
- ZMQ_XPUB_NODROP
- ZMQ_XPUB_MANUAL
- ZMQ_XPUB_WELCOME_MSG
- ZMQ_STREAM_NOTIFY
- ZMQ_INVERT_MATCHING
- ZMQ_HEARTBEAT_IVL
- ZMQ_HEARTBEAT_TTL
- ZMQ_HEARTBEAT_TIMEOUT
- ZMQ_XPUB_VERBOSER
- ZMQ_CONNECT_TIMEOUT
- ZMQ_TCP_MAXRT
- ZMQ_THREAD_SAFE
- ZMQ_MULTICAST_MAXTPDU
- ZMQ_VMCI_BUFFER_SIZE
- ZMQ_VMCI_BUFFER_MIN_SIZE
- ZMQ_VMCI_BUFFER_MAX_SIZE
- ZMQ_VMCI_CONNECT_TIMEOUT
- ZMQ_USE_FD
See doc/zmq_setsockopt.txt and doc/zmq_getsockopt.txt for details.
* New CURVE helper function to derive z85 public key from secret key:
zmq_curve_public
* New cross-platform atomic counter helper functions:
zmq_atomic_counter_new, zmq_atomic_counter_set, zmq_atomic_counter_inc,
zmq_atomic_counter_dec, zmq_atomic_counter_value, zmq_atomic_counter_destroy
See doc/zmq_atomic_*.txt for details.
* New DRAFT APIs early-release mechanism. New APIs will be introduced early
in public releases, and until they are stabilized and guaranteed not to
change anymore they will be unavailable unless the new build flag
--enable-drafts is used. This will allow developers and early adopters to
test new APIs before they are finalized.
NOTE: as the name implies, NO GUARANTEE is made on the stability of these APIs.
They might change or disappear entirely. Distributions are recommended NOT to
build with them.
New socket types have been introduced in DRAFT state:
ZMQ_SERVER, ZMQ_CLIENT, ZMQ_RADIO, ZMQ_DISH, ZMQ_GATHER, ZMQ_SCATTER,
ZMQ_DGRAM
All these sockets are THREAD SAFE, unlike the existing socket types. They do
NOT support multipart messages (ZMQ_SNDMORE/ZMQ_RCVMORE).
ZMQ_RADIO, ZMQ_DISH and ZMQ_DGRAM also support UDP as transport,
both unicast and multicast. See doc/zmq_udp.txt for more details.
New methods to support the new socket types functionality:
zmq_join, zmq_leave, zmq_msg_set_routing_id, zmq_msg_routing_id,
zmq_msg_set_group, zmq_msg_group
See doc/zmq_socket.txt for more details.
New poller mechanism and APIs have been introduced in DRAFT state:
zmq_poller_new, zmq_poller_destroy, zmq_poller_add, zmq_poller_modify,
zmq_poller_remove, zmq_poller_wait, zmq_poller_wait_all, zmq_poller_add_fd
zmq_poller_modify_fd, zmq_poller_remove_fd
and a new supporting struct typedef: zmq_poller_event_t
They support existing socket type, new thread-safe socket types and file
descriptors (cross-platform).
Documentation will be made available in the future before these APIs are declared
stable.
New cross-platform timers helper functions have been introduced in DRAFT state:
zmq_timers_new, zmq_timers_destroy, zmq_timers_add, zmq_timers_cancel,
zmq_timers_set_interval, zmq_timers_reset, zmq_timers_timeout,
zmq_timers_execute
and a new supporting callback typedef: zmq_timer_fn
* Many, many bug fixes. The most important fixes are backported and captured in the
4.1.x and 4.0.x changelogs.
0MQ version 4.2.0 rc1, released on 2016/11/01
=============================================
* Many changes, see ChangeLog.
0MQ version 4.1.6 stable, released on 2016/11/01
================================================
* Fixed #2051 - getifaddrs can fail with ECONNREFUSED
* Fixed #2091 - testutil.hpp fails to build on Windows XP
* Fixed #2096 - add tests/CMakeLists.in and version.rc.in to dist tar
* Fixed #2107 - zmq_connect with IPv6 "source:port;dest:port" broken
* Fixed #2117 - ctx_term assert with inproc zmq_router connect-before-bind
* Fixed #2158 - Socket monitor uses internal Pair from multiple threads
* Fixed #2161 - messages dropped due to HWM race
* Fixed #1325 - alignment issue with zmq_msg_t causes SIGBUS on SPARC and ARM
0MQ version 4.1.5 stable, released on 2016/06/17
================================================
* Fixed #1673 - CMake on Windows put PDB in wrong directory.
* Fixed #1723 - Family is not set when resolving NIC on Android.
* Fixed #1608 - Windows 7 TCP slow start issue.
* Fixed #1806 - uninitialised read in curve getsockopt.
* Fixed #1807 - build broken with GCC 6.
* Fixed #1831 - potential assertion failure with latest libsodium.
* Fixed #1850 - detection issues with tweetnacl/libsodium.
* Fixed #1877 - Avoid terminating connections prematurely
* Fixed #1887 - zmq_bind IPv4 fallback still tries IPv6
* Fixed #1866 - fails to build on SunOS 5.10 / Solaris 10
* Fixed #919 - ZMQ_LINGER (related to #1877)
* Fixed #114 - cannot unbind with same endpoint with IPv6 enabled.
* Fixed #1952 - CMake scripts not part of release tarballs
* Fixed #1542 - Fix a crash on Windows when port 5905 is in use.
* Fixed #2021 - Fix building on sparc32.
diffstat:
net/zeromq/Makefile | 13 ++++++---
net/zeromq/PLIST | 13 +++++++++-
net/zeromq/distinfo | 15 ++++------
net/zeromq/patches/patch-configure | 36 +++++++++++++-------------
net/zeromq/patches/patch-src_platform.hpp.in | 20 ---------------
net/zeromq/patches/patch-src_tcp__address.cpp | 16 ------------
net/zeromq/patches/patch-src_thread.cpp | 15 -----------
7 files changed, 44 insertions(+), 84 deletions(-)
diffs (201 lines):
diff -r dd953927cef0 -r cad7d59e5670 net/zeromq/Makefile
--- a/net/zeromq/Makefile Thu Feb 02 08:41:23 2017 +0000
+++ b/net/zeromq/Makefile Thu Feb 02 10:09:53 2017 +0000
@@ -1,18 +1,21 @@
-# $NetBSD: Makefile,v 1.23 2016/04/05 14:09:26 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2017/02/02 10:09:53 fhajny Exp $
-DISTNAME= zeromq-4.1.4
-PKGREVISION= 1
+DISTNAME= zeromq-4.2.1
CATEGORIES= net devel
-MASTER_SITES= http://download.zeromq.org/
+MASTER_SITES= ${MASTER_SITE_GITHUB:=zeromq/}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://www.zeromq.org/
COMMENT= The ZeroMQ messaging library
LICENSE= gnu-lgpl-v3
+GITHUB_PROJECT= libzmq
+GITHUB_RELEASE= v${PKGVERSION_NOREV}
+
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
-USE_TOOLS+= pkg-config
+USE_TOOLS+= gmake pkg-config
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-libsodium=${BUILDLINK_PREFIX.libsodium}
diff -r dd953927cef0 -r cad7d59e5670 net/zeromq/PLIST
--- a/net/zeromq/PLIST Thu Feb 02 08:41:23 2017 +0000
+++ b/net/zeromq/PLIST Thu Feb 02 10:09:53 2017 +0000
@@ -1,9 +1,15 @@
-@comment $NetBSD: PLIST,v 1.6 2015/08/28 12:52:01 he Exp $
+@comment $NetBSD: PLIST,v 1.7 2017/02/02 10:09:53 fhajny Exp $
bin/curve_keygen
include/zmq.h
include/zmq_utils.h
lib/libzmq.la
lib/pkgconfig/libzmq.pc
+man/man3/zmq_atomic_counter_dec.3
+man/man3/zmq_atomic_counter_destroy.3
+man/man3/zmq_atomic_counter_inc.3
+man/man3/zmq_atomic_counter_new.3
+man/man3/zmq_atomic_counter_set.3
+man/man3/zmq_atomic_counter_value.3
man/man3/zmq_bind.3
man/man3/zmq_close.3
man/man3/zmq_connect.3
@@ -13,6 +19,7 @@
man/man3/zmq_ctx_shutdown.3
man/man3/zmq_ctx_term.3
man/man3/zmq_curve_keypair.3
+man/man3/zmq_curve_public.3
man/man3/zmq_disconnect.3
man/man3/zmq_errno.3
man/man3/zmq_getsockopt.3
@@ -28,8 +35,10 @@
man/man3/zmq_msg_more.3
man/man3/zmq_msg_move.3
man/man3/zmq_msg_recv.3
+man/man3/zmq_msg_routing_id.3
man/man3/zmq_msg_send.3
man/man3/zmq_msg_set.3
+man/man3/zmq_msg_set_routing_id.3
man/man3/zmq_msg_size.3
man/man3/zmq_poll.3
man/man3/zmq_proxy.3
@@ -56,3 +65,5 @@
man/man7/zmq_plain.7
man/man7/zmq_tcp.7
man/man7/zmq_tipc.7
+man/man7/zmq_udp.7
+man/man7/zmq_vmci.7
diff -r dd953927cef0 -r cad7d59e5670 net/zeromq/distinfo
--- a/net/zeromq/distinfo Thu Feb 02 08:41:23 2017 +0000
+++ b/net/zeromq/distinfo Thu Feb 02 10:09:53 2017 +0000
@@ -1,10 +1,7 @@
-$NetBSD: distinfo,v 1.21 2016/04/03 00:01:30 kamil Exp $
+$NetBSD: distinfo,v 1.22 2017/02/02 10:09:53 fhajny Exp $
-SHA1 (zeromq-4.1.4.tar.gz) = b632a4b6f8a14390dc17824e37ff7b10831ce2b4
-RMD160 (zeromq-4.1.4.tar.gz) = 6ee27e7b1c3a978cdff670774a8363d8592c3031
-SHA512 (zeromq-4.1.4.tar.gz) = 8a8cf4f52ad78dddfff104bfba0f80bbc12566920906a0fafb9fc340aa92f5577c2923cb2e5346c69835cd2ea1609647a8893c2883cd22c1f0340a720511460c
-Size (zeromq-4.1.4.tar.gz) = 1400012 bytes
-SHA1 (patch-configure) = 1dc8623eb06a167b3559ae950a9dbf1e19a29b6d
-SHA1 (patch-src_platform.hpp.in) = 767370bd997310cddeb7ee1f759bec1a638974e0
-SHA1 (patch-src_tcp__address.cpp) = ad1c1ec9b724c3bd7f0fae15c296e0ec33b4267a
-SHA1 (patch-src_thread.cpp) = 84e13f025dcb9a1f700bcd13acb01bb512e500b0
+SHA1 (zeromq-4.2.1.tar.gz) = 2145aef176dbc944822a9b4585273d17e9b9fb7b
+RMD160 (zeromq-4.2.1.tar.gz) = 888085cca7f16ecd5487f9e518fdc59e5c8672ad
+SHA512 (zeromq-4.2.1.tar.gz) = 6ef52edff930be34451e81bd21a7e23f08e135c8e10e006d0a6146e7fa4171e9dcf9065f77c33cb0c0db4c16cff4a50cab2a9d612e306490a02bc6a4a913ba6a
+Size (zeromq-4.2.1.tar.gz) = 1243428 bytes
+SHA1 (patch-configure) = 5501450e277660d649d53f8a9d753037b4a22f15
diff -r dd953927cef0 -r cad7d59e5670 net/zeromq/patches/patch-configure
--- a/net/zeromq/patches/patch-configure Thu Feb 02 08:41:23 2017 +0000
+++ b/net/zeromq/patches/patch-configure Thu Feb 02 10:09:53 2017 +0000
@@ -1,21 +1,21 @@
-$NetBSD: patch-configure,v 1.4 2014/03/01 08:38:12 obache Exp $
+$NetBSD: patch-configure,v 1.5 2017/02/02 10:09:53 fhajny Exp $
-* DragonFly support
+Portability.
---- configure.orig 2013-11-24 18:02:49.000000000 +0000
+--- configure.orig 2016-11-04 10:30:55.000000000 +0000
+++ configure
-@@ -17123,6 +17123,14 @@ $as_echo "#define ZMQ_FORCE_MUTEXES 1" >
- LDFLAGS="-lssp $LDFLAGS"
- CPPFLAGS="$CPPFLAGS -Wno-long-long"
- ;;
-+ *dragonfly*)
-+ # Define on DragonFly to enable all library features
-+ CPPFLAGS="-D__BSD_VISIBLE $CPPFLAGS"
-+
-+$as_echo "#define ZMQ_HAVE_FREEBSD 1" >>confdefs.h
-+$as_echo "#define ZMQ_DRAGONFLY 1" >>confdefs.h
-+
-+ ;;
- *freebsd*)
- # Define on FreeBSD to enable all library features
- CPPFLAGS="-D__BSD_VISIBLE $CPPFLAGS"
+@@ -20286,12 +20286,12 @@ if test "${with_poller+set}" = set; then
+ fi
+
+
+- if test "x$with_poller" == "x"; then
++ if test "x$with_poller" = "x"; then
+ pollers=auto
+ else
+ pollers=$with_poller
+ fi
+- if test "$pollers" == "auto"; then
++ if test "$pollers" = "auto"; then
+ # We search for pollers in this order
+ pollers="kqueue epoll devpoll pollset poll select"
+ fi
diff -r dd953927cef0 -r cad7d59e5670 net/zeromq/patches/patch-src_platform.hpp.in
--- a/net/zeromq/patches/patch-src_platform.hpp.in Thu Feb 02 08:41:23 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-src_platform.hpp.in,v 1.4 2014/03/01 08:38:12 obache Exp $
-
-* DragonFly support
-
---- src/platform.hpp.in.orig 2013-11-24 18:02:50.000000000 +0000
-+++ src/platform.hpp.in
-@@ -184,9 +184,12 @@
- /* Have eventfd extension. */
- #undef ZMQ_HAVE_EVENTFD
-
--/* Have FreeBSD OS */
-+/* Have FreeBSD OS -or- DragonFly OS */
- #undef ZMQ_HAVE_FREEBSD
-
-+/* Have DragonFly OS */
-+#undef ZMQ_DRAGONFLY
-+
- /* Have HPUX OS */
- #undef ZMQ_HAVE_HPUX
-
diff -r dd953927cef0 -r cad7d59e5670 net/zeromq/patches/patch-src_tcp__address.cpp
--- a/net/zeromq/patches/patch-src_tcp__address.cpp Thu Feb 02 08:41:23 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-src_tcp__address.cpp,v 1.1 2015/09/30 10:45:10 fhajny Exp $
-
-Back port build fix for SunOS.
-From https://github.com/zeromq/libzmq/pull/1440
-
---- src/tcp_address.cpp.orig 2015-06-15 09:43:08.000000000 +0000
-+++ src/tcp_address.cpp
-@@ -86,7 +86,7 @@ int zmq::tcp_address_t::resolve_nic_name
- // Find the interface with the specified name and AF_INET family.
- bool found = false;
- lifreq *ifrp = ifc.lifc_req;
-- for (int n = 0; n < (int) (ifc.lifc_len / sizeof lifreq);
-+ for (int n = 0; n < (int) (ifc.lifc_len / sizeof (lifreq));
- n ++, ifrp ++) {
- if (!strcmp (nic_, ifrp->lifr_name)) {
- rc = ioctl (fd, SIOCGLIFADDR, (char*) ifrp);
diff -r dd953927cef0 -r cad7d59e5670 net/zeromq/patches/patch-src_thread.cpp
--- a/net/zeromq/patches/patch-src_thread.cpp Thu Feb 02 08:41:23 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_thread.cpp,v 1.1 2016/04/03 00:01:30 kamil Exp $
-
---- src/thread.cpp.orig 2015-11-04 08:55:13.000000000 +0000
-+++ src/thread.cpp
-@@ -131,6 +131,10 @@ void zmq::thread_t::setSchedulingParamet
- policy = schedulingPolicy_;
- }
-
-+#ifdef __NetBSD__
-+ if(policy == SCHED_OTHER) param.sched_priority = -1;
-+#endif
-+
- rc = pthread_setschedparam(descriptor, policy, ¶m);
- posix_assert (rc);
- #endif
Home |
Main Index |
Thread Index |
Old Index