<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5399f6fa25d70ae9e15ec0e9462fab576f441b2c">https://github.com/macports/macports-ports/commit/5399f6fa25d70ae9e15ec0e9462fab576f441b2c</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 5399f6fa25d zmq22, zmq3: fix build
</span>5399f6fa25d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5399f6fa25d70ae9e15ec0e9462fab576f441b2c
</span>Author: Christopher Chavez <chrischavez@gmx.us>
AuthorDate: Fri Sep 11 04:01:07 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> zmq22, zmq3: fix build
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/60771
</span>---
devel/zmq/Portfile | 6 ++++++
devel/zmq/files/patch-zmq22-src_select.cpp.diff | 17 +++++++++++++++++
devel/zmq/files/patch-zmq3-src_select.cpp.diff | 17 +++++++++++++++++
3 files changed, 40 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/zmq/Portfile b/devel/zmq/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 01742c95e80..8fafb7a035b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/zmq/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/zmq/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,6 +64,9 @@ subport zmq3 {
</span> depends_build-append port:automake port:autoconf
configure.args-append --disable-silent-rules
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/60771
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-zmq3-src_select.cpp.diff
</span> }
# Legacy subport (as a dependency for p5-zeromq)
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -81,6 +84,9 @@ subport zmq22 {
</span> depends_build-append port:automake port:autoconf
configure.args-append --disable-silent-rules
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/60771
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-zmq22-src_select.cpp.diff
</span> }
subport zmq-devel {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/zmq/files/patch-zmq22-src_select.cpp.diff b/devel/zmq/files/patch-zmq22-src_select.cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2fb598b40a8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/zmq/files/patch-zmq22-src_select.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Upstream-Status: Backport [https://github.com/zeromq/libzmq/pull/1181]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/select.cpp.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/select.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -158,8 +158,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ memcpy (&exceptfds, &source_set_err, sizeof source_set_err);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // Wait for events.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef ZMQ_HAVE_OSX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ struct timeval tv = {(long) (timeout / 1000), timeout % 1000 * 1000};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct timeval tv = {(long) (timeout / 1000),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (long) (timeout % 1000 * 1000)};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int rc = select (maxfd + 1, &readfds, &writefds, &exceptfds,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ timeout ? &tv : NULL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/zmq/files/patch-zmq3-src_select.cpp.diff b/devel/zmq/files/patch-zmq3-src_select.cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..50e49a42cd6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/zmq/files/patch-zmq3-src_select.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Upstream-Status: Backport [https://github.com/zeromq/libzmq/pull/1181]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/select.cpp.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/select.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -159,8 +159,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ memcpy (&exceptfds, &source_set_err, sizeof source_set_err);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // Wait for events.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef ZMQ_HAVE_OSX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ struct timeval tv = {(long) (timeout / 1000), timeout % 1000 * 1000};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct timeval tv = {(long) (timeout / 1000),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (long) (timeout % 1000 * 1000)};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef ZMQ_HAVE_WINDOWS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int rc = select (0, &readfds, &writefds, &exceptfds,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ timeout ? &tv : NULL);
</span></pre><pre style='margin:0'>
</pre>