]> Dogcows Code - chaz/p5-Alien-ZMQ/commitdiff
switch distribution to zeromq-3.2.3; bump version v0.05
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 3 May 2013 00:28:44 +0000 (18:28 -0600)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 3 May 2013 01:24:45 +0000 (19:24 -0600)
Build.PL
dist.ini
files/zeromq-3.2.2-conditional-eproto.patch [deleted file]
files/zeromq-3.2.3-conditional-eproto.patch [new file with mode: 0644]
files/zeromq-3.2.3-no-tests.patch [moved from files/zeromq-3.2.2-no-tests.patch with 73% similarity]
lib/Alien/ZMQ.pm

index 086a271ba714ea72aafa74f02cd558b7558fb7d0..9fb1901edf9bab0f0a2fca3917abf3478ee10bfd 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -16,7 +16,7 @@ my $builder = My::Build->new(
     dist_version_from => "lib/Alien/ZMQ.pm",
     share_dir => "share",
 );
     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;
 
 $builder->create_build_script;
index ad6a5ac6593d640e1e742429e3011813244ff9a9..567ec6684152d56c084c187027ff5106d682f69c 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -1,6 +1,6 @@
 
 name = Alien-ZMQ
 
 name = Alien-ZMQ
-version = 0.0403
+version = 0.05
 author = Charles McGarvey <ccm@cpan.org>
 license = Perl_5
 copyright_holder = Charles McGarvey
 author = Charles McGarvey <ccm@cpan.org>
 license = Perl_5
 copyright_holder = Charles McGarvey
diff --git a/files/zeromq-3.2.2-conditional-eproto.patch b/files/zeromq-3.2.2-conditional-eproto.patch
deleted file mode 100644 (file)
index d9b9d9a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
---- 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;
diff --git a/files/zeromq-3.2.3-conditional-eproto.patch b/files/zeromq-3.2.3-conditional-eproto.patch
new file mode 100644 (file)
index 0000000..1c4d745
--- /dev/null
@@ -0,0 +1,15 @@
+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_);
similarity index 73%
rename from files/zeromq-3.2.2-no-tests.patch
rename to files/zeromq-3.2.3-no-tests.patch
index 0c3c57f46289a6f8e00a1397b293d60c131cd941..b06c6fad021834c8d3640c2dac8b4665f37f87a8 100644 (file)
@@ -1,5 +1,7 @@
---- 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@
 @@ -256,8 +256,8 @@
  top_builddir = @top_builddir@
  top_srcdir = @top_srcdir@
index 3990b8644565cade07f660c6ed81c1378c8af737..4660cfb2dd7c2c326053e85263eedf9263d2d679 100644 (file)
@@ -1,5 +1,5 @@
 package Alien::ZMQ;
 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;
 
 use warnings;
 use strict;
@@ -9,15 +9,9 @@ use String::ShellQuote qw/shell_quote/;
 =head1 DESCRIPTION
 
 Upon installation, the target system is probed for the presence of libzmq.  If
 =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
 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
 
 
 =head1 SYNOPSIS
 
@@ -56,9 +50,9 @@ not be used when compiling libzmq from source (if it needs to be).  To affect
 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 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
 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
 
     perl Build.PL
     PKG_CONFIG_PATH=/opt/zeromq/lib/pkgconfig ./Build
@@ -86,6 +80,11 @@ Probing is only done during the installation of this module, so if you are
 using a system-installed version of libzmq and you uninstall or upgrade it,
 you will also need to reinstall L<Alien::ZMQ>.
 
 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.
 =head1 BUGS
 
 MSWin32 is not yet supported, but cygwin works.
This page took 0.02746 seconds and 4 git commands to generate.