svn commit: r393665 - in head/net/libzmq4: . files
Li-Wen Hsu
lwhsu at FreeBSD.org
Thu Aug 6 18:41:51 UTC 2015
Author: lwhsu
Date: Thu Aug 6 18:41:49 2015
New Revision: 393665
URL: https://svnweb.freebsd.org/changeset/ports/393665
Log:
- Add a temp fix for zmq4 and ipv6
This patch is from
https://github.com/freebsd/freebsd-ports/pull/31
which s based on
https://github.com/zeromq/zeromq4-1/commit/81464652d2453c608bbbb52fd59e9e9f20857178
Submitted by: melvyn-sopacua (on github)
Approved by: koobs (maintainer)
MFH: 2015Q3
Added:
head/net/libzmq4/files/
head/net/libzmq4/files/patch-ipv6-connect (contents, props changed)
Modified:
head/net/libzmq4/Makefile
Modified: head/net/libzmq4/Makefile
==============================================================================
--- head/net/libzmq4/Makefile Thu Aug 6 17:40:08 2015 (r393664)
+++ head/net/libzmq4/Makefile Thu Aug 6 18:41:49 2015 (r393665)
@@ -2,6 +2,7 @@
PORTNAME= libzmq4
PORTVERSION= 4.1.2
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://download.zeromq.org/
DISTNAME= zeromq-${DISTVERSION}
Added: head/net/libzmq4/files/patch-ipv6-connect
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/libzmq4/files/patch-ipv6-connect Thu Aug 6 18:41:49 2015 (r393665)
@@ -0,0 +1,20 @@
+15f9ee19cb895f7fb7b6d09ec64d4b82717ee1aa
+diff --git src/socket_base.cpp src/socket_base.cpp
+index bddbaf2..79044b1 100644
+--- src/socket_base.cpp
++++ src/socket_base.cpp
+@@ -717,11 +717,12 @@ int zmq::socket_base_t::connect (const char *addr_)
+ // Following code is quick and dirty check to catch obvious errors,
+ // without trying to be fully accurate.
+ const char *check = address.c_str ();
+- if (isalnum (*check) || isxdigit (*check)) {
++ if (isalnum (*check) || isxdigit (*check) || *check == '[') {
+ check++;
+ while (isalnum (*check)
+ || isxdigit (*check)
+- || *check == '.' || *check == '-' || *check == ':'|| *check == ';')
++ || *check == '.' || *check == '-' || *check == ':'|| *check == ';'
++ || *check == ']')
+ check++;
+ }
+ // Assume the worst, now look for success
More information about the svn-ports-head
mailing list