rgbds: Update from 0.3.2 to 0.3.3
[termux-packages] / packages / nodejs / fix-hardcoded-paths.patch
CommitLineData
52741052
LP
1diff -uNr node-v6.11.3/deps/uv/src/unix/core.c node-v6.11.3.mod/deps/uv/src/unix/core.c
2--- node-v6.11.3/deps/uv/src/unix/core.c 2017-09-05 20:34:50.000000000 +0300
3+++ node-v6.11.3.mod/deps/uv/src/unix/core.c 2017-09-14 15:58:14.222856752 +0300
4@@ -1105,7 +1105,9 @@
5
6 /* No temp environment variables defined */
7 #if defined(__ANDROID__)
8- buf = "/data/local/tmp";
9+ // Don't use '/data/local/tmp' in Termux
10+ //buf = "/data/local/tmp";
11+ buf = "@TERMUX_PREFIX@/tmp";
12 #else
13 buf = "/tmp";
14 #endif
15diff -uNr node-v6.11.3/deps/v8/src/flag-definitions.h node-v6.11.3.mod/deps/v8/src/flag-definitions.h
16--- node-v6.11.3/deps/v8/src/flag-definitions.h 2017-09-14 15:53:38.302856950 +0300
17+++ node-v6.11.3.mod/deps/v8/src/flag-definitions.h 2017-09-14 15:54:54.082856895 +0300
18@@ -862,7 +862,7 @@
19 DEFINE_STRING(testing_serialization_file, "C:\\Windows\\Temp\\serdes",
20 "file in which to testing_serialize heap")
21 #else
22-DEFINE_STRING(testing_serialization_file, "/tmp/serdes",
23+DEFINE_STRING(testing_serialization_file, "@TERMUX_PREFIX@/tmp/serdes",
24 "file in which to serialize heap")
25 #endif
26
27@@ -1047,7 +1047,7 @@
28 DEFINE_NEG_IMPLICATION(perf_prof, compact_code_space)
29 DEFINE_BOOL(perf_prof_debug_info, false,
30 "Enable debug info for perf linux profiler (experimental).")
31-DEFINE_STRING(gc_fake_mmap, "/tmp/__v8_gc__",
32+DEFINE_STRING(gc_fake_mmap, "@TERMUX_PREFIX@/tmp/__v8_gc__",
33 "Specify the name of the file for fake gc mmap used in ll_prof")
34 DEFINE_BOOL(log_internal_timer_events, false, "Time internal events.")
35 DEFINE_BOOL(log_timer_events, false,
36diff -uNr node-v6.11.3/deps/v8/src/log.cc node-v6.11.3.mod/deps/v8/src/log.cc
37--- node-v6.11.3/deps/v8/src/log.cc 2017-09-05 20:34:52.000000000 +0300
38+++ node-v6.11.3.mod/deps/v8/src/log.cc 2017-09-14 15:55:20.192856877 +0300
39@@ -245,7 +245,7 @@
40 FILE* perf_output_handle_;
41 };
42
43-const char PerfBasicLogger::kFilenameFormatString[] = "/tmp/perf-%d.map";
44+const char PerfBasicLogger::kFilenameFormatString[] = "@TERMUX_PREFIX@/tmp/perf-%d.map";
45 // Extra space for the PID in the filename
46 const int PerfBasicLogger::kFilenameBufferPadding = 16;
47