Add nodejs-current as disabled package
[termux-packages] / disabled-packages / nodejs-current / lib-os.js.patch
diff --git a/disabled-packages/nodejs-current/lib-os.js.patch b/disabled-packages/nodejs-current/lib-os.js.patch
new file mode 100644 (file)
index 0000000..9f3e976
--- /dev/null
@@ -0,0 +1,12 @@
+diff -u -r ../node-v5.10.0/lib/os.js ./lib/os.js
+--- ../node-v5.10.0/lib/os.js  2016-03-31 21:52:17.000000000 -0400
++++ ./lib/os.js        2016-04-04 04:46:05.148105544 -0400
+@@ -36,7 +36,7 @@
+     path = process.env.TMPDIR ||
+            process.env.TMP ||
+            process.env.TEMP ||
+-           '/tmp';
++           '@TERMUX_PREFIX@/tmp';
+     if (path.length > 1 && path.endsWith('/'))
+       path = path.slice(0, -1);
+   }