summaryrefslogtreecommitdiffhomepage
path: root/patches/tmux-2.3.local.patch
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-12-18 02:09:23 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-12-18 02:12:40 +0100
commit09c779d48bfeef4c381e2d11bfd9dd8ad2a996eb (patch)
tree53a49931c155497b686f834d34d5822bd41a6638 /patches/tmux-2.3.local.patch
parent221665928b8772435da5fc33f366f36c98a0915a (diff)
downloadmidipix_build-09c779d48bfeef4c381e2d11bfd9dd8ad2a996eb.tar.bz2
midipix_build-09c779d48bfeef4c381e2d11bfd9dd8ad2a996eb.tar.xz
Updates apk-tools, bash, coreutils, curl, findutils, gnupg, irssi, libarchive, libgcrypt, libgpg-error, mc, tcsh, and tmux.
Diffstat (limited to 'patches/tmux-2.3.local.patch')
-rw-r--r--patches/tmux-2.3.local.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/patches/tmux-2.3.local.patch b/patches/tmux-2.3.local.patch
new file mode 100644
index 00000000..bbd0af5d
--- /dev/null
+++ b/patches/tmux-2.3.local.patch
@@ -0,0 +1,51 @@
+--- tmux-2.3/configure.orig 2016-09-29 22:55:41.000000000 +0200
++++ tmux-2.3/configure 2016-12-18 02:04:56.608924500 +0100
+@@ -3676,18 +3676,6 @@
+ $as_echo "$ac_cv_prog_cc_g" >&6; }
+ if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+-elif test $ac_cv_prog_cc_g = yes; then
+- if test "$GCC" = yes; then
+- CFLAGS="-g -O2"
+- else
+- CFLAGS="-g"
+- fi
+-else
+- if test "$GCC" = yes; then
+- CFLAGS="-O2"
+- else
+- CFLAGS=
+- fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
+ $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+--- tmux-2.3/Makefile.in.orig 2016-09-29 22:55:41.000000000 +0200
++++ tmux-2.3/Makefile.in 2016-12-18 02:05:27.700311700 +0100
+@@ -94,10 +94,10 @@
+
+ # glibc as usual does things ass-backwards and hides useful things by default,
+ # so everyone has to add this.
+-@IS_GLIBC_TRUE@am__append_1 = -D_GNU_SOURCE
++am__append_1 = -D_GNU_SOURCE
+
+ # Set flags for gcc.
+-@IS_GCC_TRUE@am__append_2 = -std=gnu99 -O2
++@IS_GCC_TRUE@am__append_2 = -std=gnu99
+ @IS_DEBUG_TRUE@@IS_GCC_TRUE@am__append_3 = -g -Wno-long-long -Wall -W \
+ @IS_DEBUG_TRUE@@IS_GCC_TRUE@ -Wformat=2 -Wmissing-prototypes \
+ @IS_DEBUG_TRUE@@IS_GCC_TRUE@ -Wstrict-prototypes \
+--- tmux-2.3/tmux.c.orig 2016-06-05 00:30:48.000000000 +0200
++++ tmux-2.3/tmux.c 2016-12-18 02:05:42.524589500 +0100
+@@ -129,10 +129,12 @@
+ errno = ENOTDIR;
+ goto fail;
+ }
++#if 0
+ if (sb.st_uid != uid || (sb.st_mode & S_IRWXO) != 0) {
+ errno = EACCES;
+ goto fail;
+ }
++#endif
+
+ if (realpath(base, resolved) == NULL)
+ strlcpy(resolved, base, sizeof resolved);