gnutls: Update from 3.4.15 to 3.4.16
[termux-packages] / packages / radare2 / paths.patch
CommitLineData
af14ff23
FF
1diff -u -r ../radare2-0.10.5/libr/core/config.c ./libr/core/config.c
2--- ../radare2-0.10.5/libr/core/config.c 2016-08-16 19:28:34.000000000 -0400
3+++ ./libr/core/config.c 2016-09-16 08:20:42.072720023 -0400
4@@ -1656,9 +1656,7 @@
5 #endif
6 SETCB("dir.source", "", &cb_dirsrc, "Path to find source files");
7 SETPREF("dir.types", "/usr/include", "Default path to look for cparse type files");
8-#if __ANDROID__
9- SETPREF("dir.projects", "/data/data/org.radare2.installer/radare2/projects", "Default path for projects");
10-#elif __WINDOWS__
11+#if __WINDOWS__
12 SETPREF("dir.projects", "~\\"R2_HOMEDIR"\\projects", "Default path for projects");
13 #else
14 SETPREF("dir.projects", "~/"R2_HOMEDIR"/projects", "Default path for projects");
15@@ -1778,9 +1776,7 @@
16 SETI("http.maxsize", 0, "Maximum file size for upload");
17 SETPREF("http.bind", "localhost", "Server address");
18 SETPREF("http.homeroot", "~/.config/radare2/www", "http home root directory");
19-#if __ANDROID__
20- SETPREF("http.root", "/data/data/org.radare2.installer/www", "http root directory");
21-#elif __WINDOWS__
22+#if __WINDOWS__
23 SETPREF("http.root", "www", "http root directory");
24 #else
25 SETPREF("http.root", R2_WWWROOT, "http root directory");
26diff -u -r ../radare2-0.10.5/libr/util/file.c ./libr/util/file.c
27--- ../radare2-0.10.5/libr/util/file.c 2016-08-16 19:28:34.000000000 -0400
28+++ ./libr/util/file.c 2016-09-16 08:18:35.302578773 -0400
29@@ -770,7 +770,7 @@
30 char *path = r_sys_getenv ("TEMP");
31 if (!path) path = strdup ("C:\\WINDOWS\\Temp\\");
32 #elif __ANDROID__
33- char *path = strdup ("/data/data/org.radare2.installer/radare2/tmp");
34+ char *path = strdup ("@TERMUX_PREFIX@/tmp");
35 #else
36 char *path = r_sys_getenv ("TMPDIR");
37 if (path && !*path) {