mc: Fix path to zip and unzip (fixes #2362)
[termux-packages] / packages / nodejs-current / src-node_main.cc.patch
CommitLineData
a61e7e45
FF
1diff -u -r ../node-v6.3.1/src/node_main.cc ./src/node_main.cc
2--- ../node-v6.3.1/src/node_main.cc 2016-07-21 16:44:43.000000000 -0400
3+++ ./src/node_main.cc 2016-07-23 13:53:57.530095071 -0400
4@@ -54,6 +54,10 @@
5 // calls elsewhere in the program (e.g., any logging from V8.)
6 setvbuf(stdout, nullptr, _IONBF, 0);
7 setvbuf(stderr, nullptr, _IONBF, 0);
8+ if (getenv("TMPDIR") == NULL) {
9+ // Give javascript programs (such as updated versions of npm) a working tmpdir.
10+ putenv("TMPDIR=@TERMUX_PREFIX@/tmp");
11+ }
12 return node::Start(argc, argv);
13 }
14 #endif