tmux: put socket in $PREFIX/var/run instead of $TMPDIR

See https://github.com/termux/termux-packages/issues/4206
This commit is contained in:
Henrik Grimler 2019-08-24 22:37:25 +02:00
parent 8f68b081a8
commit 3bc687b67c
2 changed files with 12 additions and 1 deletions

View File

@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="BSD"
# Link against libandroid-support for wcwidth(), see https://github.com/termux/termux-packages/issues/224
TERMUX_PKG_DEPENDS="ncurses, libevent, libandroid-support, libandroid-glob"
TERMUX_PKG_VERSION=2.9a
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://github.com/tmux/tmux/releases/download/${TERMUX_PKG_VERSION}/tmux-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=839d167a4517a6bffa6b6074e89a9a8630547b2dea2086f1fad15af12ab23b25
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-static"

View File

@ -0,0 +1,11 @@
--- ../tmux.c.orig 2019-08-24 20:23:15.576000965 +0200
+++ ./tmux.c 2019-08-24 22:11:56.316981911 +0200
@@ -121,7 +121,7 @@
if ((s = getenv("TMUX_TMPDIR")) != NULL && *s != '\0')
xasprintf(&base, "%s/tmux-%ld", s, (long)uid);
else
- xasprintf(&base, "%s/tmux-%ld", _PATH_TMP, (long)uid);
+ xasprintf(&base, "%s/tmux-%ld", "@TERMUX_PREFIX@/var/run", (long)uid);
if (realpath(base, resolved) == NULL &&
strlcpy(resolved, base, sizeof resolved) >= sizeof resolved) {
errno = ERANGE;