Browse Source

tmux: update to 2.0

Signed-off-by: Luka Perkov <luka@openwrt.org>
Luka Perkov 9 years ago
parent
commit
b240c7ede6

+ 5
- 3
utils/tmux/Makefile View File

@@ -1,5 +1,5 @@
1 1
 #
2
-# Copyright (C) 2009-2012 OpenWrt.org
2
+# Copyright (C) 2009-2015 OpenWrt.org
3 3
 #
4 4
 # This is free software, licensed under the GNU General Public License v2.
5 5
 # See /LICENSE for more information.
@@ -8,16 +8,18 @@
8 8
 include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=tmux
11
-PKG_VERSION:=1.9a
11
+PKG_VERSION:=2.0
12 12
 PKG_RELEASE:=1
13 13
 
14 14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 15
 PKG_SOURCE_URL:=@SF/tmux
16
-PKG_MD5SUM:=b07601711f96f1d260b390513b509a2d
16
+PKG_MD5SUM:=9fb6b443392c3978da5d599f1e814eaa
17 17
 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
18
+
18 19
 PKG_LICENSE:=ISC
19 20
 PKG_LICENSE_FILES:=COPYING
20 21
 
22
+PKG_BUILD_PARALLEL:=1
21 23
 PKG_INSTALL:=1
22 24
 
23 25
 include $(INCLUDE_DIR)/package.mk

+ 35
- 0
utils/tmux/patches/100-b64_ntop-conflict.patch View File

@@ -0,0 +1,35 @@
1
+--- a/compat.h
2
++++ b/compat.h
3
+@@ -230,7 +230,9 @@ int	 	 daemon(int, int);
4
+ #ifndef HAVE_B64_NTOP
5
+ /* b64_ntop.c */
6
+ #undef b64_ntop /* for Cygwin */
7
+-int		 b64_ntop(const char *, size_t, char *, size_t);
8
++int		 local_b64_ntop(const char *, size_t, char *, size_t);
9
++#else
10
++#define local_b64_ntop b64_ntop
11
+ #endif
12
+ 
13
+ #ifndef HAVE_FORKPTY
14
+--- a/tty.c
15
++++ b/tty.c
16
+@@ -1070,7 +1070,7 @@ tty_cmd_setselection(struct tty *tty, co
17
+ 	off = 4 * ((ctx->num + 2) / 3) + 1; /* storage for base64 */
18
+ 	buf = xmalloc(off);
19
+ 
20
+-	b64_ntop(ctx->ptr, ctx->num, buf, off);
21
++	local_b64_ntop(ctx->ptr, ctx->num, buf, off);
22
+ 	tty_putcode_ptr2(tty, TTYC_MS, "", buf);
23
+ 
24
+ 	free(buf);
25
+--- a/compat/b64_ntop.c
26
++++ b/compat/b64_ntop.c
27
+@@ -122,7 +122,7 @@ static const char Pad64 = '=';
28
+    */
29
+ 
30
+ int
31
+-b64_ntop(uint8_t const *src, size_t srclength, char *target, size_t targsize) {
32
++local_b64_ntop(uint8_t const *src, size_t srclength, char *target, size_t targsize) {
33
+ 	size_t datalength = 0;
34
+ 	uint8_t input[3];
35
+ 	uint8_t output[4];

+ 0
- 15
utils/tmux/patches/100-b64_ntop-conflict_compath_h.patch View File

@@ -1,15 +0,0 @@
1
-diff --git a/compat.h b/compat.h
2
-index 65d6ec7..7fc3aa7 100644
3
---- a/compat.h
4
-+++ b/compat.h
5
-@@ -219,7 +219,9 @@ int	 	 daemon(int, int);
6
- #ifndef HAVE_B64_NTOP
7
- /* b64_ntop.c */
8
- #undef b64_ntop /* for Cygwin */
9
--int		 b64_ntop(const char *, size_t, char *, size_t);
10
-+int		 local_b64_ntop(const char *, size_t, char *, size_t);
11
-+#else
12
-+#define local_b64_ntop b64_ntop
13
- #endif
14
- 
15
- #ifndef HAVE_FORKPTY

+ 0
- 13
utils/tmux/patches/101-b64_ntop-conflict_compat_b64_ntop_c.patch View File

@@ -1,13 +0,0 @@
1
-diff --git a/compat/b64_ntop.c b/compat/b64_ntop.c
2
-index 2b4dc2d..a1314ca 100644
3
---- a/compat/b64_ntop.c
4
-+++ b/compat/b64_ntop.c
5
-@@ -122,7 +122,7 @@ static const char Pad64 = '=';
6
-    */
7
- 
8
- int
9
--b64_ntop(uint8_t const *src, size_t srclength, char *target, size_t targsize) {
10
-+local_b64_ntop(uint8_t const *src, size_t srclength, char *target, size_t targsize) {
11
- 	size_t datalength = 0;
12
- 	uint8_t input[3];
13
- 	uint8_t output[4];

+ 0
- 13
utils/tmux/patches/102-b64_ntop-conflict_tty_c.patch View File

@@ -1,13 +0,0 @@
1
-diff --git a/tty.c b/tty.c
2
-index eb2511c..576edbc 100644
3
---- a/tty.c
4
-+++ b/tty.c
5
-@@ -1067,7 +1067,7 @@ tty_cmd_setselection(struct tty *tty, const struct tty_ctx *ctx)
6
- 	off = 4 * ((ctx->num + 2) / 3) + 1; /* storage for base64 */
7
- 	buf = xmalloc(off);
8
- 
9
--	b64_ntop(ctx->ptr, ctx->num, buf, off);
10
-+	local_b64_ntop(ctx->ptr, ctx->num, buf, off);
11
- 	tty_putcode_ptr2(tty, TTYC_MS, "", buf);
12
- 
13
- 	free(buf);

+ 0
- 14
utils/tmux/patches/200-usr-local.patch View File

@@ -1,14 +0,0 @@
1
---- a/Makefile.in
2
-+++ b/Makefile.in
3
-@@ -101,9 +101,9 @@ bin_PROGRAMS = tmux$(EXEEXT)
4
- @IS_DEBUG_TRUE@@IS_GCC_TRUE@	-Wdeclaration-after-statement
5
- @IS_DEBUG_TRUE@@IS_GCC_TRUE@am__append_4 = -DDEBUG
6
- @IS_DEBUG_FALSE@@IS_GCC_TRUE@am__append_5 = -O2
7
--@IS_GCC4_TRUE@@IS_GCC_TRUE@am__append_6 = -iquote. -I/usr/local/include
8
-+@IS_GCC4_TRUE@@IS_GCC_TRUE@am__append_6 = -iquote.
9
- @IS_DEBUG_TRUE@@IS_GCC4_TRUE@@IS_GCC_TRUE@am__append_7 = -Wno-pointer-sign
10
--@IS_GCC4_FALSE@@IS_GCC_TRUE@am__append_8 = -I. -I- -I/usr/local/include
11
-+@IS_GCC4_FALSE@@IS_GCC_TRUE@am__append_8 = -I. -I-
12
- 
13
- # Set flags for Solaris.
14
- @IS_GCC_TRUE@@IS_SUNOS_TRUE@am__append_9 = -D_XPG6 -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS