Browse Source

emacs: fix patch typo, update offsets

emacs-27
Henrik Grimler 5 years ago
parent
commit
e511b203c5
  1. 2
      packages/emacs/lib-src-emacsclient.c.patch
  2. 7
      packages/emacs/lisp-cus-start.el.patch.beforehostbuild
  3. 7
      packages/emacs/lisp-loadup.el.patch.beforehostbuild
  4. 8
      packages/emacs/no_user_fullname.patch
  5. 11
      packages/emacs/src-callproc.c.patch

2
packages/emacs/lib-src-emacsclient.c.patch

@ -14,7 +14,7 @@
char sockdirname[socknamesize]; char sockdirname[socknamesize];
int sockdirnamelen = snprintf (sockdirname, sizeof sockdirname, int sockdirnamelen = snprintf (sockdirname, sizeof sockdirname,
- "/run/user/%"PRIuMAX, id); - "/run/user/%"PRIuMAX, id);
+ "@TERMUX_PREFIX/var@/run/user/%"PRIuMAX, id); + "@TERMUX_PREFIX@/var/run/user/%"PRIuMAX, id);
if (0 <= sockdirnamelen && sockdirnamelen < sizeof sockdirname if (0 <= sockdirnamelen && sockdirnamelen < sizeof sockdirname
&& faccessat (AT_FDCWD, sockdirname, X_OK, AT_EACCESS) == 0) && faccessat (AT_FDCWD, sockdirname, X_OK, AT_EACCESS) == 0)
message message

7
packages/emacs/lisp-cus-start.el.patch.beforehostbuild

@ -1,7 +1,6 @@
diff -u -r ../emacs-25.0.92/lisp/cus-start.el ./lisp/cus-start.el --- ../emacs.orig/lisp/cus-start.el 2019-12-26 17:20:12.000000000 +0100
--- ../emacs-25.0.92/lisp/cus-start.el 2016-03-02 05:21:42.000000000 -0500 +++ ./lisp/cus-start.el 2019-12-27 14:18:51.628517987 +0100
+++ ./lisp/cus-start.el 2016-04-06 18:16:00.007272810 -0400 @@ -290,7 +290,7 @@
@@ -277,7 +277,7 @@
"/tmp")) "/tmp"))
(t (t
(or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")

7
packages/emacs/lisp-loadup.el-2.patch.beforehostbuild → packages/emacs/lisp-loadup.el.patch.beforehostbuild

@ -1,7 +1,6 @@
diff -u -r ../emacs-25.0.92/lisp/loadup.el ./lisp/loadup.el --- ../emacs.orig/lisp/loadup.el 2019-12-26 17:20:12.000000000 +0100
--- ../emacs-25.0.92/lisp/loadup.el 2016-09-06 09:49:51.838175278 +0300 +++ ./lisp/loadup.el 2019-12-27 14:18:51.648517987 +0100
+++ ./lisp/loadup.el 2016-09-06 09:57:18.694585441 +0300 @@ -421,7 +421,11 @@
@@ -378,7 +378,11 @@
(message "Warning: Change in load-path due to site-init will be \ (message "Warning: Change in load-path due to site-init will be \
lost after dumping"))) lost after dumping")))

8
packages/emacs/no_user_fullname.patch

@ -1,7 +1,7 @@
diff -u -r ../emacs-24.3/src/editfns.c ./src/editfns.c diff -u -r ../emacs.orig/src/editfns.c ./src/editfns.c
--- ../emacs-24.3/src/editfns.c 2013-01-01 21:37:17.000000000 +0100 --- ../emacs.orig/src/editfns.c 2019-12-26 17:20:12.000000000 +0100
+++ ./src/editfns.c 2014-02-19 03:21:55.000000000 +0100 +++ ./src/editfns.c 2019-12-27 14:19:14.204517971 +0100
@@ -1304,7 +1304,7 @@ @@ -1250,7 +1250,7 @@
if (!pw) if (!pw)
return Qnil; return Qnil;

11
packages/emacs/src-callproc.c.patch

@ -1,12 +1,11 @@
diff -u -r ../emacs-25.0.92/src/callproc.c ./src/callproc.c --- ../emacs.orig/src/callproc.c 2019-12-26 17:20:12.000000000 +0100
--- ../emacs-25.0.92/src/callproc.c 2016-03-02 05:21:43.000000000 -0500 +++ ./src/callproc.c 2019-12-27 14:19:14.228517971 +0100
+++ ./src/callproc.c 2016-03-25 22:02:38.977310920 -0400 @@ -1589,7 +1589,7 @@
@@ -1619,7 +1619,7 @@
dir_warning ("arch-independent data dir", Vdata_directory); dir_warning ("arch-independent data dir", Vdata_directory);
sh = getenv ("SHELL"); sh = getenv ("SHELL");
- Vshell_file_name = build_string (sh ? sh : "/bin/sh"); - Vshell_file_name = build_string (sh ? sh : "/bin/sh");
+ Vshell_file_name = build_string (sh ? sh : "@TERMUX_PREFIX@/bin/sh"); + Vshell_file_name = build_string (sh ? sh : "@TERMUX_PREFIX@/bin/sh");
#ifdef DOS_NT Lisp_Object gamedir = Qnil;
Vshared_game_score_directory = Qnil; if (PATH_GAME)

Loading…
Cancel
Save