diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2015-08-07 02:41:49 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2015-08-07 02:41:49 +0800 |
commit | b9268ea030abd38c035c0b61c9a95cbc7fe6c3d9 (patch) | |
tree | 59002f753cfd3dedf09ae1e6135ed04076f361e3 | |
parent | dec1a1bc858d38a6d6cc71b493e5dec5c66de291 (diff) | |
download | freebsd-ports-gnome-b9268ea030abd38c035c0b61c9a95cbc7fe6c3d9.tar.gz freebsd-ports-gnome-b9268ea030abd38c035c0b61c9a95cbc7fe6c3d9.tar.zst freebsd-ports-gnome-b9268ea030abd38c035c0b61c9a95cbc7fe6c3d9.zip |
- 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
-rw-r--r-- | net/libzmq4/Makefile | 1 | ||||
-rw-r--r-- | net/libzmq4/files/patch-ipv6-connect | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/net/libzmq4/Makefile b/net/libzmq4/Makefile index ed7a64a9e0d2..3741ea86fce5 100644 --- a/net/libzmq4/Makefile +++ b/net/libzmq4/Makefile @@ -2,6 +2,7 @@ PORTNAME= libzmq4 PORTVERSION= 4.1.2 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://download.zeromq.org/ DISTNAME= zeromq-${DISTVERSION} diff --git a/net/libzmq4/files/patch-ipv6-connect b/net/libzmq4/files/patch-ipv6-connect new file mode 100644 index 000000000000..482811f63335 --- /dev/null +++ b/net/libzmq4/files/patch-ipv6-connect @@ -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 |