aboutsummaryrefslogtreecommitdiff
path: root/lang/node/patches/003-path.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-08-02 08:26:39 +0200
committerJohn Crispin <blogic@openwrt.org>2015-10-19 12:20:11 +0200
commit1fd7b5d1e67a9217f695c252866784a901bc7372 (patch)
treeee9df06d2bb34ac0e5c415f82925f193ec1c3d07 /lang/node/patches/003-path.patch
parent23bee2145ff377b48d3e49613f93b3b8c7a82dda (diff)
nodejs: add 0.12 version of node
add node-js 0.12 and a few gyp bindings Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'lang/node/patches/003-path.patch')
-rw-r--r--lang/node/patches/003-path.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/node/patches/003-path.patch b/lang/node/patches/003-path.patch
new file mode 100644
index 000000000..723fe9da7
--- /dev/null
+++ b/lang/node/patches/003-path.patch
@@ -0,0 +1,12 @@
+--- a/lib/module.js
++++ b/lib/module.js
+@@ -512,7 +512,8 @@
+ var homeDir = process.env.HOME;
+ }
+
+- var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
++ var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node'),
++ path.resolve(process.execPath, '..', '..', 'lib', 'node_modules')];
+
+ if (homeDir) {
+ paths.unshift(path.resolve(homeDir, '.node_libraries'));