emacs: Patch emacsclient to avoid /tmp
authorFredrik Fornwall <fredrik@fornwall.net>
Sat, 9 Apr 2016 05:52:18 +0000 (01:52 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 9 Apr 2016 05:53:31 +0000 (01:53 -0400)
packages/emacs/build.sh
packages/emacs/lib-src-emacsclient.c.patch [new file with mode: 0644]

index 00d96d4..56fe617 100644 (file)
@@ -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 (file)
index 0000000..c5b1acd
--- /dev/null
@@ -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);