From cef4acf0dae05889891bc8fa5b6c71d345b7bcd9 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 9 Apr 2016 01:52:18 -0400 Subject: [PATCH] emacs: Patch emacsclient to avoid /tmp --- packages/emacs/build.sh | 2 +- packages/emacs/lib-src-emacsclient.c.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 packages/emacs/lib-src-emacsclient.c.patch diff --git a/packages/emacs/build.sh b/packages/emacs/build.sh index 00d96d423..56fe61791 100644 --- a/packages/emacs/build.sh +++ b/packages/emacs/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/emacs/ TERMUX_PKG_DESCRIPTION="Extensible, customizable text editor-and more" TERMUX_PKG_VERSION=25.0.92 -TERMUX_PKG_BUILD_REVISION=2 +TERMUX_PKG_BUILD_REVISION=3 TERMUX_PKG_SRCURL=ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_DEPENDS="ncurses" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-x --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --without-gconf --without-gsettings --without-all" diff --git a/packages/emacs/lib-src-emacsclient.c.patch b/packages/emacs/lib-src-emacsclient.c.patch new file mode 100644 index 000000000..c5b1acd83 --- /dev/null +++ b/packages/emacs/lib-src-emacsclient.c.patch @@ -0,0 +1,12 @@ +diff -u -r ../emacs-25.0.92/lib-src/emacsclient.c ./lib-src/emacsclient.c +--- ../emacs-25.0.92/lib-src/emacsclient.c 2016-03-02 05:21:42.000000000 -0500 ++++ ./lib-src/emacsclient.c 2016-04-09 01:28:10.881760020 -0400 +@@ -1210,7 +1210,7 @@ + } + else + #endif +- tmpdir = "/tmp"; ++ tmpdir = "@TERMUX_PREFIX@/tmp"; + } + socket_name_storage = + xmalloc (strlen (tmpdir) + strlen (server_name) + EXTRA_SPACE);