[arch-commits] Commit in tmux/repos (14 files)

Jan Steffens heftig at archlinux.org
Tue Sep 15 21:37:57 UTC 2015


    Date: Tuesday, September 15, 2015 @ 23:37:57
  Author: heftig
Revision: 140338

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  tmux/repos/community-testing-i686/LICENSE
    (from rev 140337, tmux/trunk/LICENSE)
  tmux/repos/community-testing-i686/PKGBUILD
    (from rev 140337, tmux/trunk/PKGBUILD)
  tmux/repos/community-testing-i686/ncurses6-xterm-standout.patch
    (from rev 140337, tmux/trunk/ncurses6-xterm-standout.patch)
  tmux/repos/community-testing-x86_64/LICENSE
    (from rev 140337, tmux/trunk/LICENSE)
  tmux/repos/community-testing-x86_64/PKGBUILD
    (from rev 140337, tmux/trunk/PKGBUILD)
  tmux/repos/community-testing-x86_64/ncurses6-xterm-standout.patch
    (from rev 140337, tmux/trunk/ncurses6-xterm-standout.patch)
Deleted:
  tmux/repos/community-testing-i686/LICENSE
  tmux/repos/community-testing-i686/PKGBUILD
  tmux/repos/community-testing-i686/default-TERM-tmux.patch
  tmux/repos/community-testing-i686/ncurses6-xterm-standout.patch
  tmux/repos/community-testing-x86_64/LICENSE
  tmux/repos/community-testing-x86_64/PKGBUILD
  tmux/repos/community-testing-x86_64/default-TERM-tmux.patch
  tmux/repos/community-testing-x86_64/ncurses6-xterm-standout.patch

--------------------------------------------------------+
 /LICENSE                                               |   26 +
 /PKGBUILD                                              |   86 ++++
 /ncurses6-xterm-standout.patch                         |  314 +++++++++++++++
 community-testing-i686/LICENSE                         |   13 
 community-testing-i686/PKGBUILD                        |   45 --
 community-testing-i686/default-TERM-tmux.patch         |   25 -
 community-testing-i686/ncurses6-xterm-standout.patch   |  157 -------
 community-testing-x86_64/LICENSE                       |   13 
 community-testing-x86_64/PKGBUILD                      |   45 --
 community-testing-x86_64/default-TERM-tmux.patch       |   25 -
 community-testing-x86_64/ncurses6-xterm-standout.patch |  157 -------
 11 files changed, 426 insertions(+), 480 deletions(-)

Deleted: community-testing-i686/LICENSE
===================================================================
--- community-testing-i686/LICENSE	2015-09-15 21:37:21 UTC (rev 140337)
+++ community-testing-i686/LICENSE	2015-09-15 21:37:57 UTC (rev 140338)
@@ -1,13 +0,0 @@
-Copyright (c) 2007 Nicholas Marriott <nicm at users.sourceforge.net>
-
-Permission to use, copy, modify, and distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
-IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
-OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Copied: tmux/repos/community-testing-i686/LICENSE (from rev 140337, tmux/trunk/LICENSE)
===================================================================
--- community-testing-i686/LICENSE	                        (rev 0)
+++ community-testing-i686/LICENSE	2015-09-15 21:37:57 UTC (rev 140338)
@@ -0,0 +1,13 @@
+Copyright (c) 2007 Nicholas Marriott <nicm at users.sourceforge.net>
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
+IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Deleted: community-testing-i686/PKGBUILD
===================================================================
--- community-testing-i686/PKGBUILD	2015-09-15 21:37:21 UTC (rev 140337)
+++ community-testing-i686/PKGBUILD	2015-09-15 21:37:57 UTC (rev 140338)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer:  TDY <tdy at gmx.com>
-# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
-
-pkgname=tmux
-pkgver=2.0
-pkgrel=3
-pkgdesc='A terminal multiplexer'
-url='http://tmux.github.io/'
-arch=('i686' 'x86_64')
-license=('BSD')
-depends=('ncurses' 'libevent' 'libutempter')
-source=(https://github.com/tmux/tmux/releases/download/$pkgver/tmux-$pkgver.tar.gz
-	ncurses6-xterm-standout.patch default-TERM-tmux.patch
-	LICENSE)
-md5sums=('9fb6b443392c3978da5d599f1e814eaa'
-         '70347df93ed1922d6718d91491a7d9b4'
-         'a7b0b43c1725d23cc5540f9adfd7ddf4'
-         '71601bc37fa44e4395580b321963018e')
-
-prepare() {
-	cd "$srcdir/$pkgname-${pkgver/_/}"
-	patch -Np1 -i ../ncurses6-xterm-standout.patch
-	patch -Np1 -i ../default-TERM-tmux.patch
-}
-
-build() {
-	cd "$srcdir/$pkgname-${pkgver/_/}"
-	./configure --prefix=/usr
-	make
-}
-
-package() {
-	cd "$srcdir/$pkgname-${pkgver/_/}"
-	make install DESTDIR=$pkgdir
-	install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/tmux/LICENSE"
-
-	install -dm755 "$pkgdir/usr/share/tmux/"
-	install -m644 examples/* "$pkgdir/usr/share/tmux/"
-	install -Dm644 examples/tmux.vim "$pkgdir/usr/share/vim/vimfiles/syntax/tmux.vim"
-
-	install -d $pkgdir/usr/share/bash-completion/completions/
-	mv $pkgdir/usr/share/tmux/bash_completion_tmux.sh $pkgdir/usr/share/bash-completion/completions/tmux
-}

Copied: tmux/repos/community-testing-i686/PKGBUILD (from rev 140337, tmux/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2015-09-15 21:37:57 UTC (rev 140338)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer:  TDY <tdy at gmx.com>
+# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
+
+pkgname=tmux
+pkgver=2.0
+pkgrel=4
+pkgdesc='A terminal multiplexer'
+url='http://tmux.github.io/'
+arch=('i686' 'x86_64')
+license=('BSD')
+depends=('ncurses' 'libevent' 'libutempter')
+source=(https://github.com/tmux/tmux/releases/download/$pkgver/tmux-$pkgver.tar.gz
+	ncurses6-xterm-standout.patch
+	LICENSE)
+md5sums=('9fb6b443392c3978da5d599f1e814eaa'
+         '70347df93ed1922d6718d91491a7d9b4'
+         '71601bc37fa44e4395580b321963018e')
+
+prepare() {
+	cd "$srcdir/$pkgname-${pkgver/_/}"
+	patch -Np1 -i ../ncurses6-xterm-standout.patch
+}
+
+build() {
+	cd "$srcdir/$pkgname-${pkgver/_/}"
+	./configure --prefix=/usr
+	make
+}
+
+package() {
+	cd "$srcdir/$pkgname-${pkgver/_/}"
+	make install DESTDIR=$pkgdir
+	install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/tmux/LICENSE"
+
+	install -dm755 "$pkgdir/usr/share/tmux/"
+	install -m644 examples/* "$pkgdir/usr/share/tmux/"
+	install -Dm644 examples/tmux.vim "$pkgdir/usr/share/vim/vimfiles/syntax/tmux.vim"
+
+	install -d $pkgdir/usr/share/bash-completion/completions/
+	mv $pkgdir/usr/share/tmux/bash_completion_tmux.sh $pkgdir/usr/share/bash-completion/completions/tmux
+}

Deleted: community-testing-i686/default-TERM-tmux.patch
===================================================================
--- community-testing-i686/default-TERM-tmux.patch	2015-09-15 21:37:21 UTC (rev 140337)
+++ community-testing-i686/default-TERM-tmux.patch	2015-09-15 21:37:57 UTC (rev 140338)
@@ -1,25 +0,0 @@
-From c6c789f045182a95908d5013af190dfb2111043b Mon Sep 17 00:00:00 2001
-From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
-Date: Tue, 15 Sep 2015 23:20:15 +0200
-Subject: [PATCH] Use TERM=tmux by default, since we have it
-
----
- options-table.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/options-table.c b/options-table.c
-index c99937d..c25b0fd 100644
---- a/options-table.c
-+++ b/options-table.c
-@@ -62,7 +62,7 @@ const struct options_table_entry server_options_table[] = {
- 
- 	{ .name = "default-terminal",
- 	  .type = OPTIONS_TABLE_STRING,
--	  .default_str = "screen"
-+	  .default_str = "tmux"
- 	},
- 
- 	{ .name = "escape-time",
--- 
-2.5.2
-

Deleted: community-testing-i686/ncurses6-xterm-standout.patch
===================================================================
--- community-testing-i686/ncurses6-xterm-standout.patch	2015-09-15 21:37:21 UTC (rev 140337)
+++ community-testing-i686/ncurses6-xterm-standout.patch	2015-09-15 21:37:57 UTC (rev 140338)
@@ -1,157 +0,0 @@
-From 7382ba82c5b366be84ca55c7842426bcf3d1f521 Mon Sep 17 00:00:00 2001
-From: nicm <nicm>
-Date: Wed, 29 Apr 2015 15:59:08 +0000
-Subject: [PATCH] If default-terminal is set to "screen" or "screen-*", emulate
- screen's historical (incorrect) behaviour for SGR 3 and send smso (standout).
- Previously, we would send sitm (italics) if the terminal outside had it and
- smso otherwise. This was acceptably until recently because xterm's terminfo
- entry lacked sitm, so most users got smso.
-
-People who want italics should set default-terminal to the forthcoming
-"tmux" entry (and be prepared to deal with it being missing on older
-hosts).
-
-As a side-effect this changes default-terminal to be a server rather
-than a session option.
-
-suggested by and ok naddy
----
- options-table.c | 10 +++++-----
- server-fn.c     |  2 +-
- tmux.1          | 25 +++++++++++++------------
- tty.c           | 24 ++++++++++++++++++------
- 4 files changed, 37 insertions(+), 24 deletions(-)
-
-diff --git a/options-table.c b/options-table.c
-index 5e21c69..089a9b8 100644
---- a/options-table.c
-+++ b/options-table.c
-@@ -61,6 +61,11 @@ const struct options_table_entry server_options_table[] = {
- 	  .default_num = 20
- 	},
- 
-+	{ .name = "default-terminal",
-+	  .type = OPTIONS_TABLE_STRING,
-+	  .default_str = "screen"
-+	},
-+
- 	{ .name = "escape-time",
- 	  .type = OPTIONS_TABLE_NUMBER,
- 	  .minimum = 0,
-@@ -143,11 +148,6 @@ const struct options_table_entry session_options_table[] = {
- 	  .default_str = _PATH_BSHELL
- 	},
- 
--	{ .name = "default-terminal",
--	  .type = OPTIONS_TABLE_STRING,
--	  .default_str = "screen"
--	},
--
- 	{ .name = "destroy-unattached",
- 	  .type = OPTIONS_TABLE_FLAG,
- 	  .default_num = 0
-diff --git a/server-fn.c b/server-fn.c
-index 85067a8..0e6e4d4 100644
---- a/server-fn.c
-+++ b/server-fn.c
-@@ -36,7 +36,7 @@ server_fill_environ(struct session *s, struct environ *env)
- 	long	pid;
- 
- 	if (s != NULL) {
--		term = options_get_string(&s->options, "default-terminal");
-+		term = options_get_string(&global_options, "default-terminal");
- 		environ_set(env, "TERM", term);
- 
- 		idx = s->id;
-diff --git a/tmux.1 b/tmux.1
-index 5bf7782..a7f5f3e 100644
---- a/tmux.1
-+++ b/tmux.1
-@@ -2266,6 +2266,19 @@ Available server options are:
- Set the number of buffers; as new buffers are added to the top of the stack,
- old ones are removed from the bottom if necessary to maintain this maximum
- length.
-+.It Ic default-terminal Ar terminal
-+Set the default terminal for new windows created in this session - the
-+default value of the
-+.Ev TERM
-+environment variable.
-+For
-+.Nm
-+to work correctly, this
-+.Em must
-+be set to
-+.Ql screen ,
-+.Ql tmux
-+or a derivative of them.
- .It Ic escape-time Ar time
- Set the time in milliseconds for which
- .Nm
-@@ -2405,18 +2418,6 @@ or
- This option should be configured when
- .Nm
- is used as a login shell.
--.It Ic default-terminal Ar terminal
--Set the default terminal for new windows created in this session - the
--default value of the
--.Ev TERM
--environment variable.
--For
--.Nm
--to work correctly, this
--.Em must
--be set to
--.Ql screen
--or a derivative of it.
- .It Xo Ic destroy-unattached
- .Op Ic on | off
- .Xc
-diff --git a/tty.c b/tty.c
-index ee52d03..f6db8e2 100644
---- a/tty.c
-+++ b/tty.c
-@@ -34,6 +34,7 @@
- void	tty_read_callback(struct bufferevent *, void *);
- void	tty_error_callback(struct bufferevent *, short, void *);
- 
-+void	tty_set_italics(struct tty *);
- int	tty_try_256(struct tty *, u_char, const char *);
- 
- void	tty_colours(struct tty *, const struct grid_cell *);
-@@ -457,6 +458,21 @@ tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)
- }
- 
- void
-+tty_set_italics(struct tty *tty)
-+{
-+	const char	*s;
-+
-+	if (tty_term_has(tty->term, TTYC_SITM)) {
-+		s = options_get_string(&global_options, "default-terminal");
-+		if (strcmp(s, "screen") != 0 && strncmp(s, "screen-", 7) != 0) {
-+			tty_putcode(tty, TTYC_SITM);
-+			return;
-+		}
-+	}
-+	tty_putcode(tty, TTYC_SMSO);
-+}
-+
-+void
- tty_set_title(struct tty *tty, const char *title)
- {
- 	if (!tty_term_has(tty->term, TTYC_TSL) ||
-@@ -1396,12 +1412,8 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc,
- 		tty_putcode(tty, TTYC_BOLD);
- 	if (changed & GRID_ATTR_DIM)
- 		tty_putcode(tty, TTYC_DIM);
--	if (changed & GRID_ATTR_ITALICS) {
--		if (tty_term_has(tty->term, TTYC_SITM))
--			tty_putcode(tty, TTYC_SITM);
--		else
--			tty_putcode(tty, TTYC_SMSO);
--	}
-+	if (changed & GRID_ATTR_ITALICS)
-+		tty_set_italics(tty);
- 	if (changed & GRID_ATTR_UNDERSCORE)
- 		tty_putcode(tty, TTYC_SMUL);
- 	if (changed & GRID_ATTR_BLINK)

Copied: tmux/repos/community-testing-i686/ncurses6-xterm-standout.patch (from rev 140337, tmux/trunk/ncurses6-xterm-standout.patch)
===================================================================
--- community-testing-i686/ncurses6-xterm-standout.patch	                        (rev 0)
+++ community-testing-i686/ncurses6-xterm-standout.patch	2015-09-15 21:37:57 UTC (rev 140338)
@@ -0,0 +1,157 @@
+From 7382ba82c5b366be84ca55c7842426bcf3d1f521 Mon Sep 17 00:00:00 2001
+From: nicm <nicm>
+Date: Wed, 29 Apr 2015 15:59:08 +0000
+Subject: [PATCH] If default-terminal is set to "screen" or "screen-*", emulate
+ screen's historical (incorrect) behaviour for SGR 3 and send smso (standout).
+ Previously, we would send sitm (italics) if the terminal outside had it and
+ smso otherwise. This was acceptably until recently because xterm's terminfo
+ entry lacked sitm, so most users got smso.
+
+People who want italics should set default-terminal to the forthcoming
+"tmux" entry (and be prepared to deal with it being missing on older
+hosts).
+
+As a side-effect this changes default-terminal to be a server rather
+than a session option.
+
+suggested by and ok naddy
+---
+ options-table.c | 10 +++++-----
+ server-fn.c     |  2 +-
+ tmux.1          | 25 +++++++++++++------------
+ tty.c           | 24 ++++++++++++++++++------
+ 4 files changed, 37 insertions(+), 24 deletions(-)
+
+diff --git a/options-table.c b/options-table.c
+index 5e21c69..089a9b8 100644
+--- a/options-table.c
++++ b/options-table.c
+@@ -61,6 +61,11 @@ const struct options_table_entry server_options_table[] = {
+ 	  .default_num = 20
+ 	},
+ 
++	{ .name = "default-terminal",
++	  .type = OPTIONS_TABLE_STRING,
++	  .default_str = "screen"
++	},
++
+ 	{ .name = "escape-time",
+ 	  .type = OPTIONS_TABLE_NUMBER,
+ 	  .minimum = 0,
+@@ -143,11 +148,6 @@ const struct options_table_entry session_options_table[] = {
+ 	  .default_str = _PATH_BSHELL
+ 	},
+ 
+-	{ .name = "default-terminal",
+-	  .type = OPTIONS_TABLE_STRING,
+-	  .default_str = "screen"
+-	},
+-
+ 	{ .name = "destroy-unattached",
+ 	  .type = OPTIONS_TABLE_FLAG,
+ 	  .default_num = 0
+diff --git a/server-fn.c b/server-fn.c
+index 85067a8..0e6e4d4 100644
+--- a/server-fn.c
++++ b/server-fn.c
+@@ -36,7 +36,7 @@ server_fill_environ(struct session *s, struct environ *env)
+ 	long	pid;
+ 
+ 	if (s != NULL) {
+-		term = options_get_string(&s->options, "default-terminal");
++		term = options_get_string(&global_options, "default-terminal");
+ 		environ_set(env, "TERM", term);
+ 
+ 		idx = s->id;
+diff --git a/tmux.1 b/tmux.1
+index 5bf7782..a7f5f3e 100644
+--- a/tmux.1
++++ b/tmux.1
+@@ -2266,6 +2266,19 @@ Available server options are:
+ Set the number of buffers; as new buffers are added to the top of the stack,
+ old ones are removed from the bottom if necessary to maintain this maximum
+ length.
++.It Ic default-terminal Ar terminal
++Set the default terminal for new windows created in this session - the
++default value of the
++.Ev TERM
++environment variable.
++For
++.Nm
++to work correctly, this
++.Em must
++be set to
++.Ql screen ,
++.Ql tmux
++or a derivative of them.
+ .It Ic escape-time Ar time
+ Set the time in milliseconds for which
+ .Nm
+@@ -2405,18 +2418,6 @@ or
+ This option should be configured when
+ .Nm
+ is used as a login shell.
+-.It Ic default-terminal Ar terminal
+-Set the default terminal for new windows created in this session - the
+-default value of the
+-.Ev TERM
+-environment variable.
+-For
+-.Nm
+-to work correctly, this
+-.Em must
+-be set to
+-.Ql screen
+-or a derivative of it.
+ .It Xo Ic destroy-unattached
+ .Op Ic on | off
+ .Xc
+diff --git a/tty.c b/tty.c
+index ee52d03..f6db8e2 100644
+--- a/tty.c
++++ b/tty.c
+@@ -34,6 +34,7 @@
+ void	tty_read_callback(struct bufferevent *, void *);
+ void	tty_error_callback(struct bufferevent *, short, void *);
+ 
++void	tty_set_italics(struct tty *);
+ int	tty_try_256(struct tty *, u_char, const char *);
+ 
+ void	tty_colours(struct tty *, const struct grid_cell *);
+@@ -457,6 +458,21 @@ tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)
+ }
+ 
+ void
++tty_set_italics(struct tty *tty)
++{
++	const char	*s;
++
++	if (tty_term_has(tty->term, TTYC_SITM)) {
++		s = options_get_string(&global_options, "default-terminal");
++		if (strcmp(s, "screen") != 0 && strncmp(s, "screen-", 7) != 0) {
++			tty_putcode(tty, TTYC_SITM);
++			return;
++		}
++	}
++	tty_putcode(tty, TTYC_SMSO);
++}
++
++void
+ tty_set_title(struct tty *tty, const char *title)
+ {
+ 	if (!tty_term_has(tty->term, TTYC_TSL) ||
+@@ -1396,12 +1412,8 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc,
+ 		tty_putcode(tty, TTYC_BOLD);
+ 	if (changed & GRID_ATTR_DIM)
+ 		tty_putcode(tty, TTYC_DIM);
+-	if (changed & GRID_ATTR_ITALICS) {
+-		if (tty_term_has(tty->term, TTYC_SITM))
+-			tty_putcode(tty, TTYC_SITM);
+-		else
+-			tty_putcode(tty, TTYC_SMSO);
+-	}
++	if (changed & GRID_ATTR_ITALICS)
++		tty_set_italics(tty);
+ 	if (changed & GRID_ATTR_UNDERSCORE)
+ 		tty_putcode(tty, TTYC_SMUL);
+ 	if (changed & GRID_ATTR_BLINK)

Deleted: community-testing-x86_64/LICENSE
===================================================================
--- community-testing-x86_64/LICENSE	2015-09-15 21:37:21 UTC (rev 140337)
+++ community-testing-x86_64/LICENSE	2015-09-15 21:37:57 UTC (rev 140338)
@@ -1,13 +0,0 @@
-Copyright (c) 2007 Nicholas Marriott <nicm at users.sourceforge.net>
-
-Permission to use, copy, modify, and distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
-IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
-OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Copied: tmux/repos/community-testing-x86_64/LICENSE (from rev 140337, tmux/trunk/LICENSE)
===================================================================
--- community-testing-x86_64/LICENSE	                        (rev 0)
+++ community-testing-x86_64/LICENSE	2015-09-15 21:37:57 UTC (rev 140338)
@@ -0,0 +1,13 @@
+Copyright (c) 2007 Nicholas Marriott <nicm at users.sourceforge.net>
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
+IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Deleted: community-testing-x86_64/PKGBUILD
===================================================================
--- community-testing-x86_64/PKGBUILD	2015-09-15 21:37:21 UTC (rev 140337)
+++ community-testing-x86_64/PKGBUILD	2015-09-15 21:37:57 UTC (rev 140338)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer:  TDY <tdy at gmx.com>
-# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
-
-pkgname=tmux
-pkgver=2.0
-pkgrel=3
-pkgdesc='A terminal multiplexer'
-url='http://tmux.github.io/'
-arch=('i686' 'x86_64')
-license=('BSD')
-depends=('ncurses' 'libevent' 'libutempter')
-source=(https://github.com/tmux/tmux/releases/download/$pkgver/tmux-$pkgver.tar.gz
-	ncurses6-xterm-standout.patch default-TERM-tmux.patch
-	LICENSE)
-md5sums=('9fb6b443392c3978da5d599f1e814eaa'
-         '70347df93ed1922d6718d91491a7d9b4'
-         'a7b0b43c1725d23cc5540f9adfd7ddf4'
-         '71601bc37fa44e4395580b321963018e')
-
-prepare() {
-	cd "$srcdir/$pkgname-${pkgver/_/}"
-	patch -Np1 -i ../ncurses6-xterm-standout.patch
-	patch -Np1 -i ../default-TERM-tmux.patch
-}
-
-build() {
-	cd "$srcdir/$pkgname-${pkgver/_/}"
-	./configure --prefix=/usr
-	make
-}
-
-package() {
-	cd "$srcdir/$pkgname-${pkgver/_/}"
-	make install DESTDIR=$pkgdir
-	install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/tmux/LICENSE"
-
-	install -dm755 "$pkgdir/usr/share/tmux/"
-	install -m644 examples/* "$pkgdir/usr/share/tmux/"
-	install -Dm644 examples/tmux.vim "$pkgdir/usr/share/vim/vimfiles/syntax/tmux.vim"
-
-	install -d $pkgdir/usr/share/bash-completion/completions/
-	mv $pkgdir/usr/share/tmux/bash_completion_tmux.sh $pkgdir/usr/share/bash-completion/completions/tmux
-}

Copied: tmux/repos/community-testing-x86_64/PKGBUILD (from rev 140337, tmux/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2015-09-15 21:37:57 UTC (rev 140338)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer:  TDY <tdy at gmx.com>
+# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
+
+pkgname=tmux
+pkgver=2.0
+pkgrel=4
+pkgdesc='A terminal multiplexer'
+url='http://tmux.github.io/'
+arch=('i686' 'x86_64')
+license=('BSD')
+depends=('ncurses' 'libevent' 'libutempter')
+source=(https://github.com/tmux/tmux/releases/download/$pkgver/tmux-$pkgver.tar.gz
+	ncurses6-xterm-standout.patch
+	LICENSE)
+md5sums=('9fb6b443392c3978da5d599f1e814eaa'
+         '70347df93ed1922d6718d91491a7d9b4'
+         '71601bc37fa44e4395580b321963018e')
+
+prepare() {
+	cd "$srcdir/$pkgname-${pkgver/_/}"
+	patch -Np1 -i ../ncurses6-xterm-standout.patch
+}
+
+build() {
+	cd "$srcdir/$pkgname-${pkgver/_/}"
+	./configure --prefix=/usr
+	make
+}
+
+package() {
+	cd "$srcdir/$pkgname-${pkgver/_/}"
+	make install DESTDIR=$pkgdir
+	install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/tmux/LICENSE"
+
+	install -dm755 "$pkgdir/usr/share/tmux/"
+	install -m644 examples/* "$pkgdir/usr/share/tmux/"
+	install -Dm644 examples/tmux.vim "$pkgdir/usr/share/vim/vimfiles/syntax/tmux.vim"
+
+	install -d $pkgdir/usr/share/bash-completion/completions/
+	mv $pkgdir/usr/share/tmux/bash_completion_tmux.sh $pkgdir/usr/share/bash-completion/completions/tmux
+}

Deleted: community-testing-x86_64/default-TERM-tmux.patch
===================================================================
--- community-testing-x86_64/default-TERM-tmux.patch	2015-09-15 21:37:21 UTC (rev 140337)
+++ community-testing-x86_64/default-TERM-tmux.patch	2015-09-15 21:37:57 UTC (rev 140338)
@@ -1,25 +0,0 @@
-From c6c789f045182a95908d5013af190dfb2111043b Mon Sep 17 00:00:00 2001
-From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
-Date: Tue, 15 Sep 2015 23:20:15 +0200
-Subject: [PATCH] Use TERM=tmux by default, since we have it
-
----
- options-table.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/options-table.c b/options-table.c
-index c99937d..c25b0fd 100644
---- a/options-table.c
-+++ b/options-table.c
-@@ -62,7 +62,7 @@ const struct options_table_entry server_options_table[] = {
- 
- 	{ .name = "default-terminal",
- 	  .type = OPTIONS_TABLE_STRING,
--	  .default_str = "screen"
-+	  .default_str = "tmux"
- 	},
- 
- 	{ .name = "escape-time",
--- 
-2.5.2
-

Deleted: community-testing-x86_64/ncurses6-xterm-standout.patch
===================================================================
--- community-testing-x86_64/ncurses6-xterm-standout.patch	2015-09-15 21:37:21 UTC (rev 140337)
+++ community-testing-x86_64/ncurses6-xterm-standout.patch	2015-09-15 21:37:57 UTC (rev 140338)
@@ -1,157 +0,0 @@
-From 7382ba82c5b366be84ca55c7842426bcf3d1f521 Mon Sep 17 00:00:00 2001
-From: nicm <nicm>
-Date: Wed, 29 Apr 2015 15:59:08 +0000
-Subject: [PATCH] If default-terminal is set to "screen" or "screen-*", emulate
- screen's historical (incorrect) behaviour for SGR 3 and send smso (standout).
- Previously, we would send sitm (italics) if the terminal outside had it and
- smso otherwise. This was acceptably until recently because xterm's terminfo
- entry lacked sitm, so most users got smso.
-
-People who want italics should set default-terminal to the forthcoming
-"tmux" entry (and be prepared to deal with it being missing on older
-hosts).
-
-As a side-effect this changes default-terminal to be a server rather
-than a session option.
-
-suggested by and ok naddy
----
- options-table.c | 10 +++++-----
- server-fn.c     |  2 +-
- tmux.1          | 25 +++++++++++++------------
- tty.c           | 24 ++++++++++++++++++------
- 4 files changed, 37 insertions(+), 24 deletions(-)
-
-diff --git a/options-table.c b/options-table.c
-index 5e21c69..089a9b8 100644
---- a/options-table.c
-+++ b/options-table.c
-@@ -61,6 +61,11 @@ const struct options_table_entry server_options_table[] = {
- 	  .default_num = 20
- 	},
- 
-+	{ .name = "default-terminal",
-+	  .type = OPTIONS_TABLE_STRING,
-+	  .default_str = "screen"
-+	},
-+
- 	{ .name = "escape-time",
- 	  .type = OPTIONS_TABLE_NUMBER,
- 	  .minimum = 0,
-@@ -143,11 +148,6 @@ const struct options_table_entry session_options_table[] = {
- 	  .default_str = _PATH_BSHELL
- 	},
- 
--	{ .name = "default-terminal",
--	  .type = OPTIONS_TABLE_STRING,
--	  .default_str = "screen"
--	},
--
- 	{ .name = "destroy-unattached",
- 	  .type = OPTIONS_TABLE_FLAG,
- 	  .default_num = 0
-diff --git a/server-fn.c b/server-fn.c
-index 85067a8..0e6e4d4 100644
---- a/server-fn.c
-+++ b/server-fn.c
-@@ -36,7 +36,7 @@ server_fill_environ(struct session *s, struct environ *env)
- 	long	pid;
- 
- 	if (s != NULL) {
--		term = options_get_string(&s->options, "default-terminal");
-+		term = options_get_string(&global_options, "default-terminal");
- 		environ_set(env, "TERM", term);
- 
- 		idx = s->id;
-diff --git a/tmux.1 b/tmux.1
-index 5bf7782..a7f5f3e 100644
---- a/tmux.1
-+++ b/tmux.1
-@@ -2266,6 +2266,19 @@ Available server options are:
- Set the number of buffers; as new buffers are added to the top of the stack,
- old ones are removed from the bottom if necessary to maintain this maximum
- length.
-+.It Ic default-terminal Ar terminal
-+Set the default terminal for new windows created in this session - the
-+default value of the
-+.Ev TERM
-+environment variable.
-+For
-+.Nm
-+to work correctly, this
-+.Em must
-+be set to
-+.Ql screen ,
-+.Ql tmux
-+or a derivative of them.
- .It Ic escape-time Ar time
- Set the time in milliseconds for which
- .Nm
-@@ -2405,18 +2418,6 @@ or
- This option should be configured when
- .Nm
- is used as a login shell.
--.It Ic default-terminal Ar terminal
--Set the default terminal for new windows created in this session - the
--default value of the
--.Ev TERM
--environment variable.
--For
--.Nm
--to work correctly, this
--.Em must
--be set to
--.Ql screen
--or a derivative of it.
- .It Xo Ic destroy-unattached
- .Op Ic on | off
- .Xc
-diff --git a/tty.c b/tty.c
-index ee52d03..f6db8e2 100644
---- a/tty.c
-+++ b/tty.c
-@@ -34,6 +34,7 @@
- void	tty_read_callback(struct bufferevent *, void *);
- void	tty_error_callback(struct bufferevent *, short, void *);
- 
-+void	tty_set_italics(struct tty *);
- int	tty_try_256(struct tty *, u_char, const char *);
- 
- void	tty_colours(struct tty *, const struct grid_cell *);
-@@ -457,6 +458,21 @@ tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)
- }
- 
- void
-+tty_set_italics(struct tty *tty)
-+{
-+	const char	*s;
-+
-+	if (tty_term_has(tty->term, TTYC_SITM)) {
-+		s = options_get_string(&global_options, "default-terminal");
-+		if (strcmp(s, "screen") != 0 && strncmp(s, "screen-", 7) != 0) {
-+			tty_putcode(tty, TTYC_SITM);
-+			return;
-+		}
-+	}
-+	tty_putcode(tty, TTYC_SMSO);
-+}
-+
-+void
- tty_set_title(struct tty *tty, const char *title)
- {
- 	if (!tty_term_has(tty->term, TTYC_TSL) ||
-@@ -1396,12 +1412,8 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc,
- 		tty_putcode(tty, TTYC_BOLD);
- 	if (changed & GRID_ATTR_DIM)
- 		tty_putcode(tty, TTYC_DIM);
--	if (changed & GRID_ATTR_ITALICS) {
--		if (tty_term_has(tty->term, TTYC_SITM))
--			tty_putcode(tty, TTYC_SITM);
--		else
--			tty_putcode(tty, TTYC_SMSO);
--	}
-+	if (changed & GRID_ATTR_ITALICS)
-+		tty_set_italics(tty);
- 	if (changed & GRID_ATTR_UNDERSCORE)
- 		tty_putcode(tty, TTYC_SMUL);
- 	if (changed & GRID_ATTR_BLINK)

Copied: tmux/repos/community-testing-x86_64/ncurses6-xterm-standout.patch (from rev 140337, tmux/trunk/ncurses6-xterm-standout.patch)
===================================================================
--- community-testing-x86_64/ncurses6-xterm-standout.patch	                        (rev 0)
+++ community-testing-x86_64/ncurses6-xterm-standout.patch	2015-09-15 21:37:57 UTC (rev 140338)
@@ -0,0 +1,157 @@
+From 7382ba82c5b366be84ca55c7842426bcf3d1f521 Mon Sep 17 00:00:00 2001
+From: nicm <nicm>
+Date: Wed, 29 Apr 2015 15:59:08 +0000
+Subject: [PATCH] If default-terminal is set to "screen" or "screen-*", emulate
+ screen's historical (incorrect) behaviour for SGR 3 and send smso (standout).
+ Previously, we would send sitm (italics) if the terminal outside had it and
+ smso otherwise. This was acceptably until recently because xterm's terminfo
+ entry lacked sitm, so most users got smso.
+
+People who want italics should set default-terminal to the forthcoming
+"tmux" entry (and be prepared to deal with it being missing on older
+hosts).
+
+As a side-effect this changes default-terminal to be a server rather
+than a session option.
+
+suggested by and ok naddy
+---
+ options-table.c | 10 +++++-----
+ server-fn.c     |  2 +-
+ tmux.1          | 25 +++++++++++++------------
+ tty.c           | 24 ++++++++++++++++++------
+ 4 files changed, 37 insertions(+), 24 deletions(-)
+
+diff --git a/options-table.c b/options-table.c
+index 5e21c69..089a9b8 100644
+--- a/options-table.c
++++ b/options-table.c
+@@ -61,6 +61,11 @@ const struct options_table_entry server_options_table[] = {
+ 	  .default_num = 20
+ 	},
+ 
++	{ .name = "default-terminal",
++	  .type = OPTIONS_TABLE_STRING,
++	  .default_str = "screen"
++	},
++
+ 	{ .name = "escape-time",
+ 	  .type = OPTIONS_TABLE_NUMBER,
+ 	  .minimum = 0,
+@@ -143,11 +148,6 @@ const struct options_table_entry session_options_table[] = {
+ 	  .default_str = _PATH_BSHELL
+ 	},
+ 
+-	{ .name = "default-terminal",
+-	  .type = OPTIONS_TABLE_STRING,
+-	  .default_str = "screen"
+-	},
+-
+ 	{ .name = "destroy-unattached",
+ 	  .type = OPTIONS_TABLE_FLAG,
+ 	  .default_num = 0
+diff --git a/server-fn.c b/server-fn.c
+index 85067a8..0e6e4d4 100644
+--- a/server-fn.c
++++ b/server-fn.c
+@@ -36,7 +36,7 @@ server_fill_environ(struct session *s, struct environ *env)
+ 	long	pid;
+ 
+ 	if (s != NULL) {
+-		term = options_get_string(&s->options, "default-terminal");
++		term = options_get_string(&global_options, "default-terminal");
+ 		environ_set(env, "TERM", term);
+ 
+ 		idx = s->id;
+diff --git a/tmux.1 b/tmux.1
+index 5bf7782..a7f5f3e 100644
+--- a/tmux.1
++++ b/tmux.1
+@@ -2266,6 +2266,19 @@ Available server options are:
+ Set the number of buffers; as new buffers are added to the top of the stack,
+ old ones are removed from the bottom if necessary to maintain this maximum
+ length.
++.It Ic default-terminal Ar terminal
++Set the default terminal for new windows created in this session - the
++default value of the
++.Ev TERM
++environment variable.
++For
++.Nm
++to work correctly, this
++.Em must
++be set to
++.Ql screen ,
++.Ql tmux
++or a derivative of them.
+ .It Ic escape-time Ar time
+ Set the time in milliseconds for which
+ .Nm
+@@ -2405,18 +2418,6 @@ or
+ This option should be configured when
+ .Nm
+ is used as a login shell.
+-.It Ic default-terminal Ar terminal
+-Set the default terminal for new windows created in this session - the
+-default value of the
+-.Ev TERM
+-environment variable.
+-For
+-.Nm
+-to work correctly, this
+-.Em must
+-be set to
+-.Ql screen
+-or a derivative of it.
+ .It Xo Ic destroy-unattached
+ .Op Ic on | off
+ .Xc
+diff --git a/tty.c b/tty.c
+index ee52d03..f6db8e2 100644
+--- a/tty.c
++++ b/tty.c
+@@ -34,6 +34,7 @@
+ void	tty_read_callback(struct bufferevent *, void *);
+ void	tty_error_callback(struct bufferevent *, short, void *);
+ 
++void	tty_set_italics(struct tty *);
+ int	tty_try_256(struct tty *, u_char, const char *);
+ 
+ void	tty_colours(struct tty *, const struct grid_cell *);
+@@ -457,6 +458,21 @@ tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)
+ }
+ 
+ void
++tty_set_italics(struct tty *tty)
++{
++	const char	*s;
++
++	if (tty_term_has(tty->term, TTYC_SITM)) {
++		s = options_get_string(&global_options, "default-terminal");
++		if (strcmp(s, "screen") != 0 && strncmp(s, "screen-", 7) != 0) {
++			tty_putcode(tty, TTYC_SITM);
++			return;
++		}
++	}
++	tty_putcode(tty, TTYC_SMSO);
++}
++
++void
+ tty_set_title(struct tty *tty, const char *title)
+ {
+ 	if (!tty_term_has(tty->term, TTYC_TSL) ||
+@@ -1396,12 +1412,8 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc,
+ 		tty_putcode(tty, TTYC_BOLD);
+ 	if (changed & GRID_ATTR_DIM)
+ 		tty_putcode(tty, TTYC_DIM);
+-	if (changed & GRID_ATTR_ITALICS) {
+-		if (tty_term_has(tty->term, TTYC_SITM))
+-			tty_putcode(tty, TTYC_SITM);
+-		else
+-			tty_putcode(tty, TTYC_SMSO);
+-	}
++	if (changed & GRID_ATTR_ITALICS)
++		tty_set_italics(tty);
+ 	if (changed & GRID_ATTR_UNDERSCORE)
+ 		tty_putcode(tty, TTYC_SMUL);
+ 	if (changed & GRID_ATTR_BLINK)



More information about the arch-commits mailing list