dist_version_from => "lib/Alien/ZMQ.pm",
share_dir => "share",
);
-$builder->notes('zmq-version', '3.2.2');
-$builder->notes('zmq-sha1', '0e8734c773b6a757b474c16fc3c517993ba47283');
+$builder->notes('zmq-version', '3.2.3');
+$builder->notes('zmq-sha1', '6857a3a0e908eca58f7c0f90e2ba4695f6700957');
$builder->create_build_script;
name = Alien-ZMQ
-version = 0.0403
+version = 0.05
author = Charles McGarvey <ccm@cpan.org>
license = Perl_5
copyright_holder = Charles McGarvey
+++ /dev/null
---- a/src/err.hpp 2012-10-25 02:30:40.000000000 -0600
-+++ b/src/err.hpp 2013-01-21 10:56:25.095010874 -0700
-@@ -152,4 +152,10 @@
-
- #endif
-
-+// Conditionally check for EPROTO; some platforms (OpenBSD) don't support it.
-+#ifdef EPROTO
-+#define OR_ERRNO_EQ_EPROTO || errno == EPROTO
-+#else
-+#define OR_ERRNO_EQ_EPROTO
-+#endif
-
-diff -ur zeromq-3.2.2.orig/src/ipc_listener.cpp zeromq-3.2.2/src/ipc_listener.cpp
---- zeromq-3.2.2.orig/src/ipc_listener.cpp 2012-11-23 00:54:28.000000000 -0700
-+++ zeromq-3.2.2/src/ipc_listener.cpp 2013-01-21 10:57:02.670355121 -0700
-@@ -196,7 +196,7 @@
- fd_t sock = ::accept (s, NULL, NULL);
- if (sock == -1) {
- errno_assert (errno == EAGAIN || errno == EWOULDBLOCK ||
-- errno == EINTR || errno == ECONNABORTED || errno == EPROTO ||
-+ errno == EINTR || errno == ECONNABORTED OR_ERRNO_EQ_EPROTO ||
- errno == ENFILE);
- return retired_fd;
- }
-diff -ur zeromq-3.2.2.orig/src/tcp_listener.cpp zeromq-3.2.2/src/tcp_listener.cpp
---- zeromq-3.2.2.orig/src/tcp_listener.cpp 2012-11-23 00:54:28.000000000 -0700
-+++ zeromq-3.2.2/src/tcp_listener.cpp 2013-01-21 10:56:48.884173113 -0700
-@@ -262,7 +262,7 @@
- #else
- if (sock == -1) {
- errno_assert (errno == EAGAIN || errno == EWOULDBLOCK ||
-- errno == EINTR || errno == ECONNABORTED || errno == EPROTO ||
-+ errno == EINTR || errno == ECONNABORTED OR_ERRNO_EQ_EPROTO ||
- errno == ENOBUFS || errno == ENOMEM || errno == EMFILE ||
- errno == ENFILE);
- return retired_fd;
--- /dev/null
+This patch is for platforms which don't define EPROTO.
+--- a/src/err.hpp
++++ b/src/err.hpp
+@@ -44,6 +44,11 @@
+ #include <netdb.h>
+ #endif
+
++// EPROTO is not used by OpenBSD and maybe other platforms.
++#ifndef EPROTO
++#define EPROTO 0
++#endif
++
+ namespace zmq
+ {
+ const char *errno_to_string (int errno_);
---- a/Makefile.in 2012-11-23 00:58:57.000000000 -0700
-+++ b/Makefile.in 2013-01-18 23:08:21.794836073 -0700
+This patch prevents the tests from being built. This is required for platforms
+that do not support pthreads.
+--- a/Makefile.in
++++ b/Makefile.in
@@ -256,8 +256,8 @@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
package Alien::ZMQ;
-# ABSTRACT: finding and installing libzmq, the core zeromq library
+# ABSTRACT: find and install libzmq, the core zeromq library
use warnings;
use strict;
=head1 DESCRIPTION
Upon installation, the target system is probed for the presence of libzmq. If
-it is not found, B<libzmq 3.2.2> is installed in a shared directory. In
+it is not found, B<libzmq 3.2.3> is installed in a shared directory. In
short, modules that need libzmq can depend on this module to make sure that it
-is available.
-
-This module is still B<EXPERIMENTAL>. In particular, I'm still pondering on
-how S<libzmq-2.x> should be handled. Currently, if S<libzmq-2.x> is found on
-the system, L<Alien::ZMQ> will use it, but there is no way to install
-S<libzmq-2.x> with L<Alien::ZMQ>. I'm not sure what the most useful behavior
-with regards to S<libzmq-2.x> is, so please talk to me if you have any ideas.
+is available, or use it independently as a way to install zeromq.
=head1 SYNOPSIS
the compiling of libzmq, using the L</--zmq-config> flag instead.
A better alternative to using L</--zmq-cflags> and L</--zmq-libs> is to help
-the L<pkg-config(1)> program find your libzmq by using the C<PKG_CONFIG_PATH>
+the L<pkg-config> program find your libzmq by using the C<PKG_CONFIG_PATH>
environment variable. Of course, this method requires that you have the
-L<pkg-config(1)> program installed. Here's an example:
+L<pkg-config> program installed. Here's an example:
perl Build.PL
PKG_CONFIG_PATH=/opt/zeromq/lib/pkgconfig ./Build
using a system-installed version of libzmq and you uninstall or upgrade it,
you will also need to reinstall L<Alien::ZMQ>.
+If S<libzmq-2.x> is found on the system, L<Alien::ZMQ> will use it. There are
+a few incompatibilities between S<libzmq-2.x> and S<libzmq-3.x>, so your
+program may want to use the L</lib_version> method to check which version of
+libzmq is installed.
+
=head1 BUGS
MSWin32 is not yet supported, but cygwin works.