mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
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>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
--- a/deps/v8/build/toolchain.gypi
|
||||
+++ b/deps/v8/build/toolchain.gypi
|
||||
@@ -50,10 +50,10 @@
|
||||
'arm_test_noprobe%': 'off',
|
||||
|
||||
# Similar to vfp but on MIPS.
|
||||
- 'v8_can_use_fpu_instructions%': 'true',
|
||||
+ 'v8_can_use_fpu_instructions%': 'false',
|
||||
|
||||
# Similar to the ARM hard float ABI but on MIPS.
|
||||
- 'v8_use_mips_abi_hardfloat%': 'true',
|
||||
+ 'v8_use_mips_abi_hardfloat%': 'false',
|
||||
|
||||
# Default arch variant for MIPS.
|
||||
'mips_arch_variant%': 'r2',
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/deps/uv/src/unix/getaddrinfo.c
|
||||
+++ b/deps/uv/src/unix/getaddrinfo.c
|
||||
@@ -99,6 +99,7 @@
|
||||
int err;
|
||||
|
||||
req = container_of(w, uv_getaddrinfo_t, work_req);
|
||||
+ req->hints->ai_flags &= ~AI_V4MAPPED;
|
||||
err = getaddrinfo(req->hostname, req->service, req->hints, &req->addrinfo);
|
||||
req->retcode = uv__getaddrinfo_translate_error(err);
|
||||
}
|
||||
@@ -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'));
|
||||
Reference in New Issue
Block a user