chiark / gitweb /
emacs: Patch temporary-file-directory (avoid /tmp)
authorFredrik Fornwall <fredrik@fornwall.net>
Wed, 6 Apr 2016 22:28:22 +0000 (18:28 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Wed, 6 Apr 2016 22:28:22 +0000 (18:28 -0400)
packages/emacs/build.sh
packages/emacs/lisp-cus-start.el.patch.beforehostbuild [new file with mode: 0644]

index aa19cb28bdfbcc16384643d435adb1a6d437aea8..00d96d423a683ca7ddf984f0b0e530dacb772343 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=1
+TERMUX_PKG_BUILD_REVISION=2
 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/lisp-cus-start.el.patch.beforehostbuild b/packages/emacs/lisp-cus-start.el.patch.beforehostbuild
new file mode 100644 (file)
index 0000000..3e5f696
--- /dev/null
@@ -0,0 +1,12 @@
+diff -u -r ../emacs-25.0.92/lisp/cus-start.el ./lisp/cus-start.el
+--- ../emacs-25.0.92/lisp/cus-start.el 2016-03-02 05:21:42.000000000 -0500
++++ ./lisp/cus-start.el        2016-04-06 18:16:00.007272810 -0400
+@@ -277,7 +277,7 @@
+                         "/tmp"))
+                    (t
+                     (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
+-                        "/tmp"))))
++                        "@TERMUX_PREFIX@/tmp"))))
+             :initialize custom-initialize-delay)
+            ;; fns.c
+            (use-dialog-box menu boolean "21.1")