diff options
author | fhajny <fhajny> | 2016-04-27 15:03:10 +0000 |
---|---|---|
committer | fhajny <fhajny> | 2016-04-27 15:03:10 +0000 |
commit | 497c37733e1d76bc528ba2ba86ba5db432ddd5d7 (patch) | |
tree | fac5443861cc4aeae593692805ccd21a63fe1d2b | |
parent | 79a557eb4b9f1a70313a9a7db9079d5be4d13ab7 (diff) | |
download | pkgsrc-497c37733e1d76bc528ba2ba86ba5db432ddd5d7.tar.gz |
Update lang/nodejs to 6.0.0.
This release will become the new LTS later in 2016.
The following significant changes have been made since the
previous Node.js v5.0.0 release.
Buffer
- New Buffer constructors have been added #4682 and #5833.
- Existing Buffer() and SlowBuffer() constructors have been
deprecated in docs #4682 and #5833.
- Previously deprecated Buffer APIs are removed #5048, #4594.
- Improved error handling #4514.
- The Buffer.prototype.lastIndexOf() method has been added #4846.
Cluster
- Worker emitted as first argument in 'message' event #5361.
- The worker.exitedAfterDisconnect property replaces
worker.suicide #3743.
Console
- Calling console.timeEnd() with an unknown label now emits a
process warning rather than throwing #5901.
Crypto
- Improved error handling #3100, #5611.
- Simplified Certificate class bindings #5382.
- Improved control over FIPS mode #5181.
- pbkdf2 digest overloading is deprecated #4047.
Dependencies
- Reintroduce shared c-ares build support #5775.
- V8 updated to 5.0.71.35 #6372.
DNS
- Add dns.resolvePtr() API to query plain DNS PTR records #4921.
Domains
- Clear stack when no error handler #4659.
Events
- The EventEmitter.prototype._events object no longer inherits
from Object.prototype #6092.
- The EventEmitter.prototype.prependListener() and
EventEmitter.prototype.prependOnceListener() methods have been
added #6032.
File System
- The fs.realpath() and fs.realpathSync() methods have been
updated to use a more efficient libuv-based implementation. This
change includes the removal of the cache argument and the method
can throw new errors #3594.
- FS apis can now accept and return paths as Buffers #5616.
- Error handling and type checking improvements #5616, #5590,
#4518, #3917.
- fs.read's string interface is deprecated #4525.
HTTP
- 'clientError' can now be used to return custom errors from an
HTTP server #4557.
-rw-r--r-- | lang/nodejs/Makefile | 4 | ||||
-rw-r--r-- | lang/nodejs/Makefile.common | 8 | ||||
-rw-r--r-- | lang/nodejs/PLIST | 3 | ||||
-rw-r--r-- | lang/nodejs/distinfo | 4 | ||||
-rw-r--r-- | lang/nodejs/patches/patch-deps_v8_src_arm_cpu-arm.cc | 11 |
5 files changed, 17 insertions, 13 deletions
diff --git a/lang/nodejs/Makefile b/lang/nodejs/Makefile index 0b7f22efd2c..bf386440621 100644 --- a/lang/nodejs/Makefile +++ b/lang/nodejs/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.65 2016/04/26 14:37:54 fhajny Exp $ +# $NetBSD: Makefile,v 1.66 2016/04/27 15:03:10 fhajny Exp $ -DISTNAME= node-v5.11.0 +DISTNAME= node-v6.0.0 .include "../../lang/nodejs/Makefile.common" .include "../../mk/bsd.pkg.mk" diff --git a/lang/nodejs/Makefile.common b/lang/nodejs/Makefile.common index 5ad7f9d5d96..2ceedd5aad3 100644 --- a/lang/nodejs/Makefile.common +++ b/lang/nodejs/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.6 2016/03/18 11:39:18 jperkin Exp $ +# $NetBSD: Makefile.common,v 1.7 2016/04/27 15:03:10 fhajny Exp $ # used by lang/nodejs/Makefile # used by lang/nodejs4/Makefile @@ -12,7 +12,7 @@ COMMENT= V8 JavaScript for clients and servers LICENSE= mit HAS_CONFIGURE= yes -USE_TOOLS+= gmake pkg-config +USE_TOOLS+= bash gmake pkg-config USE_LANGUAGES= c c++ PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 0.10.24 @@ -50,6 +50,10 @@ pre-install: ${FIND} ${WRKSRC}/deps/npm -name '*.orig' | ${XARGS} ${RM} -f ${CHMOD} -R g-w ${WRKSRC} +post-install: + cd ${DESTDIR}${PREFIX} && ${SETENV} ${BASH} \ + ./lib/node_modules/npm/scripts/relocate.sh ${PREFIX}/bin/node + .if ${OPSYS} != "Darwin" .include "../../devel/libexecinfo/buildlink3.mk" .endif diff --git a/lang/nodejs/PLIST b/lang/nodejs/PLIST index 8c98e0018a8..cd0276ad599 100644 --- a/lang/nodejs/PLIST +++ b/lang/nodejs/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.34 2016/04/26 14:37:54 fhajny Exp $ +@comment $NetBSD: PLIST,v 1.35 2016/04/27 15:03:10 fhajny Exp $ bin/node bin/npm include/node/android-ifaddrs.h @@ -30,6 +30,7 @@ include/node/uv-version.h include/node/uv-win.h include/node/uv.h include/node/v8-debug.h +include/node/v8-experimental.h include/node/v8-platform.h include/node/v8-profiler.h include/node/v8-testing.h diff --git a/lang/nodejs/distinfo b/lang/nodejs/distinfo index ac7c4839afd..ac434acc22e 100644 --- a/lang/nodejs/distinfo +++ b/lang/nodejs/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.62 2016/04/26 14:37:54 fhajny Exp $ +$NetBSD: distinfo,v 1.63 2016/04/27 15:03:10 fhajny Exp $ SHA1 (node-v5.11.0.tar.gz) = 4270fb33859bbc9ccb7ab8d308bde77357bcf158 RMD160 (node-v5.11.0.tar.gz) = ad0742f1c144d23eaf053c73a7d508807f741f8a @@ -9,7 +9,7 @@ SHA1 (patch-deps_cares_cares.gyp) = 2235eb44bc984fa2e745fdf1786f1ae6de6ef80f SHA1 (patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_generator_make.py) = 78d6ddd37ae30e869e0da666a78baad86a638c50 SHA1 (patch-deps_uv_common.gypi) = ba9caa1f6d9d6df1913d0d72a8d18ea6db0a32ff SHA1 (patch-deps_uv_src_unix_netbsd.c) = 0915dcd6ff65ec9bc098c05c32e3fedee9c8168b -SHA1 (patch-deps_v8_src_arm_cpu-arm.cc) = 854a7b0c6392d4568066b961da0958073b7ac62e +SHA1 (patch-deps_v8_src_arm_cpu-arm.cc) = d0d11ac474ab109a6f40b26fa457b12d742eb48d SHA1 (patch-deps_v8_src_base_atomicops.h) = 65b6508f5260ae672b9efc5672ba2c93223355ff SHA1 (patch-deps_v8_src_base_atomicops__internals__arm__gcc.h) = 39ba63d8c397c7f076c108173f1ee2b5839ad4d6 SHA1 (patch-deps_v8_src_base_platform_platform-freebsd.cc) = 686c2054838a25cfeed7fb9870a959e48dc4de35 diff --git a/lang/nodejs/patches/patch-deps_v8_src_arm_cpu-arm.cc b/lang/nodejs/patches/patch-deps_v8_src_arm_cpu-arm.cc index 76f3c9742a2..32c2fbd1190 100644 --- a/lang/nodejs/patches/patch-deps_v8_src_arm_cpu-arm.cc +++ b/lang/nodejs/patches/patch-deps_v8_src_arm_cpu-arm.cc @@ -1,6 +1,6 @@ -$NetBSD: patch-deps_v8_src_arm_cpu-arm.cc,v 1.1 2015/10/21 23:46:28 jmcneill Exp $ +$NetBSD: patch-deps_v8_src_arm_cpu-arm.cc,v 1.2 2016/04/27 15:03:10 fhajny Exp $ ---- deps/v8/src/arm/cpu-arm.cc.orig 2015-10-13 17:20:07.000000000 +0000 +--- deps/v8/src/arm/cpu-arm.cc.orig 2016-04-26 19:50:10.000000000 +0000 +++ deps/v8/src/arm/cpu-arm.cc @@ -7,6 +7,9 @@ #ifdef __QNXNTO__ @@ -12,14 +12,13 @@ $NetBSD: patch-deps_v8_src_arm_cpu-arm.cc,v 1.1 2015/10/21 23:46:28 jmcneill Exp #else #include <sys/syscall.h> // for cache flushing. #endif -@@ -40,6 +43,10 @@ void CpuFeatures::FlushICache(void* star - #elif V8_OS_QNX +@@ -24,6 +27,9 @@ void CpuFeatures::FlushICache(void* star + #if !defined(USE_SIMULATOR) + #if V8_OS_QNX msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE); - +#elif defined(__NetBSD__) + struct arm_sync_icache_args args = { .addr = (uintptr_t)start, .len = size }; + sysarch(ARM_SYNC_ICACHE, (void *)&args); -+ #else register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start); register uint32_t end asm("r1") = beg + size; |