Fredrik Fornwall
9 years ago
3 changed files with 36 additions and 1 deletions
@ -0,0 +1,14 @@ |
|||
--- ../node-v6.0.0/deps/v8/src/flag-definitions.h 2016-04-26 15:50:11.000000000 -0400
|
|||
+++ ./deps/v8/src/flag-definitions.h 2016-05-02 16:46:31.289030161 -0400
|
|||
@@ -172,7 +172,10 @@
|
|||
// |
|||
#define FLAG FLAG_FULL |
|||
|
|||
-DEFINE_BOOL(warn_template_set, true,
|
|||
+/* Termux modification: Do not enable this warning per default
|
|||
+ as it will only confuse users needlessly. The root causes
|
|||
+ of this warning will get fixed anyway soon in npm packages. */
|
|||
+DEFINE_BOOL(warn_template_set, false,
|
|||
"warn on deprecated v8::Template::Set() use") |
|||
|
|||
DEFINE_BOOL(experimental_extras, false, |
@ -0,0 +1,21 @@ |
|||
diff -u -r ../node-v6.0.0/src/node_main.cc ./src/node_main.cc
|
|||
--- ../node-v6.0.0/src/node_main.cc 2016-04-26 15:50:22.000000000 -0400
|
|||
+++ ./src/node_main.cc 2016-05-02 16:29:08.313594254 -0400
|
|||
@@ -1,4 +1,5 @@
|
|||
#include "node.h" |
|||
+#include <stdlib.h>
|
|||
|
|||
#ifdef _WIN32 |
|||
#include <VersionHelpers.h> |
|||
@@ -50,6 +51,11 @@
|
|||
// UNIX |
|||
int main(int argc, char *argv[]) { |
|||
setvbuf(stderr, NULL, _IOLBF, 1024); |
|||
+ if (getenv("TMPDIR") == NULL) {
|
|||
+ /* Give javascript programs (such as updated versions of npm) a working tmpdir. */
|
|||
+ putenv("TMPDIR=@TERMUX_PREFIX@/tmp");
|
|||
+ }
|
|||
+
|
|||
return node::Start(argc, argv); |
|||
} |
|||
#endif |
Loading…
Reference in new issue