Date: Wed, 14 Oct 2015 13:55:06 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r399264 - in head/sysutils/tmux: . files Message-ID: <201510141355.t9EDt6xe070400@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Wed Oct 14 13:55:06 2015 New Revision: 399264 URL: https://svnweb.freebsd.org/changeset/ports/399264 Log: Fix tmux not starting on an IPv6 only system. Note that tmux will still not work if you have neither v4 nor v6. PR: 203720 Obtained from: https://github.com/tmux/tmux/issues/139 Sponsored by: Absolight Added: head/sysutils/tmux/files/patch-compat_imsg.c (contents, props changed) Modified: head/sysutils/tmux/Makefile Modified: head/sysutils/tmux/Makefile ============================================================================== --- head/sysutils/tmux/Makefile Wed Oct 14 13:55:00 2015 (r399263) +++ head/sysutils/tmux/Makefile Wed Oct 14 13:55:06 2015 (r399264) @@ -3,7 +3,7 @@ PORTNAME= tmux PORTVERSION= 2.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= https://github.com/tmux/tmux/releases/download/${PORTVERSION}/ \ SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:S/a$//} Added: head/sysutils/tmux/files/patch-compat_imsg.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/tmux/files/patch-compat_imsg.c Wed Oct 14 13:55:06 2015 (r399264) @@ -0,0 +1,17 @@ +--- compat/imsg.c.orig 2015-10-14 13:20:40 UTC ++++ compat/imsg.c +@@ -54,8 +54,12 @@ available_fds(unsigned int n) + for (i = 0; i < n; i++) { + fds[i] = -1; + if ((fds[i] = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { +- ret = 1; +- break; ++ if (errno == EAFNOSUPPORT || errno == EPROTONOSUPPORT) ++ fds[i] = socket(AF_INET6, SOCK_DGRAM, 0); ++ if (fds[i] < 0) { ++ ret = 1; ++ break; ++ } + } + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510141355.t9EDt6xe070400>