[145936] trunk/dports/sysutils/tmux
cal at macports.org
cal at macports.org
Sun Feb 21 10:02:08 PST 2016
Revision: 145936
https://trac.macports.org/changeset/145936
Author: cal at macports.org
Date: 2016-02-21 10:02:08 -0800 (Sun, 21 Feb 2016)
Log Message:
-----------
tmux: Backport fix for a bug in attach-session -dt
Maintainer timeout.
Closes: #50623
Modified Paths:
--------------
trunk/dports/sysutils/tmux/Portfile
Added Paths:
-----------
trunk/dports/sysutils/tmux/files/fix-reattach-with-session-list.patch
Modified: trunk/dports/sysutils/tmux/Portfile
===================================================================
--- trunk/dports/sysutils/tmux/Portfile 2016-02-21 17:52:59 UTC (rev 145935)
+++ trunk/dports/sysutils/tmux/Portfile 2016-02-21 18:02:08 UTC (rev 145936)
@@ -6,13 +6,13 @@
github.setup tmux tmux 2.1
if {${subport} eq ${name}} {
- revision 0
+ revision 1
conflicts tmux-devel
}
subport tmux-devel {
github.setup tmux tmux 7120ab2f161a5762d16aba54451d29dcd0fbbeeb
version 20150926-[string range ${github.version} 0 6]
- revision 0
+ revision 1
conflicts tmux
}
categories sysutils
@@ -27,6 +27,8 @@
platforms darwin
license BSD
+patchfiles fix-reattach-with-session-list.patch
+
depends_lib port:libevent port:ncurses
if {${subport} eq ${name}} {
Added: trunk/dports/sysutils/tmux/files/fix-reattach-with-session-list.patch
===================================================================
--- trunk/dports/sysutils/tmux/files/fix-reattach-with-session-list.patch (rev 0)
+++ trunk/dports/sysutils/tmux/files/fix-reattach-with-session-list.patch 2016-02-21 18:02:08 UTC (rev 145936)
@@ -0,0 +1,20 @@
+Detach the right seesion with -d
+
+Fixes a bug that would detach the wrong session when running
+attach-session -dt $sessionname. See
+ https://trac.macports.org/ticket/50623
+for the report. This has been fixed upstream, but the backported patch
+looks different because of changes to upstream source code.
+
+Upstream-Status: Backport [https://github.com/tmux/tmux/commit/f2ec911b8a0bb88d23f16b7d9e0f41f29d4ac541]
+--- cmd-attach-session.c.old 2015-12-21 05:01:35.060975526 -0800
++++ cmd-attach-session.c 2015-12-21 05:01:40.179848875 -0800
+@@ -120,7 +120,7 @@
+ TAILQ_FOREACH(c_loop, &clients, entry) {
+ if (c_loop->session != s || c == c_loop)
+ continue;
+- server_write_client(c, MSG_DETACH,
++ server_write_client(c_loop, MSG_DETACH,
+ c_loop->session->name,
+ strlen(c_loop->session->name) + 1);
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160221/2de85971/attachment-0001.html>
More information about the macports-changes
mailing list