diff options
author | fhajny <fhajny@pkgsrc.org> | 2016-10-25 19:50:40 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2016-10-25 19:50:40 +0000 |
commit | 793430e360272854ecbe4a5b920247e20f619582 (patch) | |
tree | 2904424666f72d20cd240b20fd75e390cf5477c2 /lang/nodejs | |
parent | ab35b9e6da75f65568fdfd0ecf83f756a9fd069a (diff) | |
download | pkgsrc-793430e360272854ecbe4a5b920247e20f619582.tar.gz |
Update lang/nodejs to 7.0.0.
This new major version of Node.js includes: V8 5.4 which brings along with
98% coverage of ES6 language features, improved reliability and performance,
and a new experimental URL parser based on the WHATWG URL standard.
As an odd numbered release, in accordance with our Long Term Support plan,
Node.js v7 will be supported only until about June, 2017, with Node.js v8
currently scheduled for release in April, 2017.
Notable changes
Buffer
- Passing invalid input to Buffer.byteLength will now throw an error #8946.
- Calling Buffer without new is now deprecated and will emit a process
warning #8169.
- Passing a negative number to allocUnsafe will now throw an error #7079.
Child Process
- The fork and execFile methods now have stronger argument validation #7399.
Cluster
- The worker.suicide method is deprecated and will emit a process warning
#3747.
Deps
- V8 has been updated to 5.4.500.36 #8317, #8852, #9253.
- NODE_MODULE_VERSION has been updated to 51 #8808.
File System
- A process warning is emitted if a callback is not passed to async file
system methods #7897.
Intl
- Intl.v8BreakIterator constructor has been deprecated and will emit a
process warning #8908.
Promises
- Unhandled Promise rejections have been deprecated and will emit a process
warning #8217.
Punycode
- The punycode module has been deprecated #7941.
URL
- An Experimental WHATWG URL Parser has been introduced #7448.
Diffstat (limited to 'lang/nodejs')
-rw-r--r-- | lang/nodejs/Makefile | 4 | ||||
-rw-r--r-- | lang/nodejs/PLIST | 3 | ||||
-rw-r--r-- | lang/nodejs/distinfo | 14 | ||||
-rw-r--r-- | lang/nodejs/patches/patch-deps_v8_src_base_atomicops.h | 8 | ||||
-rw-r--r-- | lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc | 13 |
5 files changed, 17 insertions, 25 deletions
diff --git a/lang/nodejs/Makefile b/lang/nodejs/Makefile index 01dd735532d..ffebd584f45 100644 --- a/lang/nodejs/Makefile +++ b/lang/nodejs/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.79 2016/10/20 06:45:03 fhajny Exp $ +# $NetBSD: Makefile,v 1.80 2016/10/25 19:50:40 fhajny Exp $ -DISTNAME= node-v6.9.1 +DISTNAME= node-v7.0.0 .include "../../lang/nodejs/Makefile.common" .include "../../mk/bsd.pkg.mk" diff --git a/lang/nodejs/PLIST b/lang/nodejs/PLIST index 2a8f85a30fc..500e51e2fa2 100644 --- a/lang/nodejs/PLIST +++ b/lang/nodejs/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.39 2016/10/13 14:09:11 fhajny Exp $ +@comment $NetBSD: PLIST,v 1.40 2016/10/25 19:50:40 fhajny Exp $ bin/node bin/npm include/node/android-ifaddrs.h @@ -9,6 +9,7 @@ include/node/ares_version.h include/node/common.gypi include/node/config.gypi include/node/libplatform/libplatform.h +include/node/libplatform/v8-tracing.h include/node/nameser.h include/node/node.h include/node/node_buffer.h diff --git a/lang/nodejs/distinfo b/lang/nodejs/distinfo index 7956b83c5a8..3d1fe1643aa 100644 --- a/lang/nodejs/distinfo +++ b/lang/nodejs/distinfo @@ -1,21 +1,21 @@ -$NetBSD: distinfo,v 1.78 2016/10/20 06:45:03 fhajny Exp $ +$NetBSD: distinfo,v 1.79 2016/10/25 19:50:40 fhajny Exp $ -SHA1 (node-v6.9.1.tar.gz) = 0698f4eed3a3149f6a92a9f83cfc7c43ca7cf343 -RMD160 (node-v6.9.1.tar.gz) = e722d24bb066d198d1905ecfd49e9ea8e48cacaa -SHA512 (node-v6.9.1.tar.gz) = 71a6e081006c8b77f34b5cc26b76c56944b4de77d7ed5e6068c72dbaf49fc18ed2894231f6a5cd0308c40e95c2e1eb5ee2abd1470fd646bb8db3b230913c5014 -Size (node-v6.9.1.tar.gz) = 26504341 bytes +SHA1 (node-v7.0.0.tar.gz) = 7f8eef789dba66e2b9925b95635cfc910892501d +RMD160 (node-v7.0.0.tar.gz) = 705c24acf3354583249ad35ee9018559533610a0 +SHA512 (node-v7.0.0.tar.gz) = d1b40ee3d7bb03e0d5ac5ac7f5a61757fb76bd51626834d2a1603fc176b6da884bb6dbe6fae58568e116dd7ca8342865883a747837799f9677dcfc2ec700ac29 +Size (node-v7.0.0.tar.gz) = 27373724 bytes SHA1 (patch-common.gypi) = 5b3a50617358637a6f910de28bb5a14f037317a6 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) = d0d11ac474ab109a6f40b26fa457b12d742eb48d -SHA1 (patch-deps_v8_src_base_atomicops.h) = 65b6508f5260ae672b9efc5672ba2c93223355ff +SHA1 (patch-deps_v8_src_base_atomicops.h) = 552d2b7781b39b93392fd00043b1cf4cb10802da SHA1 (patch-deps_v8_src_base_atomicops__internals__arm__gcc.h) = 1352769e157d5b49d019bdcd394db276421cdbad SHA1 (patch-deps_v8_src_base_platform_platform-freebsd.cc) = 686c2054838a25cfeed7fb9870a959e48dc4de35 SHA1 (patch-deps_v8_src_base_platform_platform-openbsd.cc) = 0abf6a541f24da87dbbd22f57abcd5534999b3df SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = eff609b75125dab536934bd8afa640955dcee674 -SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = dd8cafadd2668f069dab8625f57fbd71a304db3e +SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = aa84bf1dbaac5808529f6b01502d117c88751649 SHA1 (patch-deps_v8_src_log-utils.h) = 32bbf2de2af7a8ab6900a4d5e968dcc1357f6de2 SHA1 (patch-deps_v8_src_types.h) = 250ab540fa28caeea034ed02b84182bc770cdf35 SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3 diff --git a/lang/nodejs/patches/patch-deps_v8_src_base_atomicops.h b/lang/nodejs/patches/patch-deps_v8_src_base_atomicops.h index 03a910e01bc..670dac97000 100644 --- a/lang/nodejs/patches/patch-deps_v8_src_base_atomicops.h +++ b/lang/nodejs/patches/patch-deps_v8_src_base_atomicops.h @@ -1,10 +1,10 @@ -$NetBSD: patch-deps_v8_src_base_atomicops.h,v 1.1 2015/10/21 23:46:28 jmcneill Exp $ +$NetBSD: patch-deps_v8_src_base_atomicops.h,v 1.2 2016/10/25 19:50:40 fhajny Exp $ ---- deps/v8/src/base/atomicops.h.orig 2015-10-13 17:20:07.000000000 +0000 +--- deps/v8/src/base/atomicops.h.orig 2016-10-25 13:26:03.000000000 +0000 +++ deps/v8/src/base/atomicops.h -@@ -54,9 +54,13 @@ typedef intptr_t Atomic64; +@@ -52,9 +52,13 @@ typedef intptr_t Atomic64; + #endif // defined(__ILP32__) #endif // defined(V8_HOST_ARCH_64_BIT) - #endif // defined(__native_client__) +#if defined(__NetBSD__) && defined(__arm__) +typedef int32_t AtomicWord; diff --git a/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc b/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc index 537df2c90fc..6aff1801e1e 100644 --- a/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc +++ b/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc @@ -1,8 +1,8 @@ -$NetBSD: patch-deps_v8_src_base_platform_semaphore.cc,v 1.4 2015/09/09 00:04:54 ryoon Exp $ +$NetBSD: patch-deps_v8_src_base_platform_semaphore.cc,v 1.5 2016/10/25 19:50:40 fhajny Exp $ Work around lack of sem_timedwait(3) in NetBSD < 6.99.4. Adapted from d4f11c0cf476dd854eaebec1cbacb1afc7bea18e of the Chromium V8 sources. ---- deps/v8/src/base/platform/semaphore.cc.orig 2015-09-08 15:30:38.000000000 +0000 +--- deps/v8/src/base/platform/semaphore.cc.orig 2016-10-25 13:26:03.000000000 +0000 +++ deps/v8/src/base/platform/semaphore.cc @@ -11,6 +11,10 @@ @@ -15,12 +15,3 @@ Adapted from d4f11c0cf476dd854eaebec1cbacb1afc7bea18e of the Chromium V8 sources #include "src/base/logging.h" #include "src/base/platform/elapsed-timer.h" #include "src/base/platform/time.h" -@@ -107,7 +111,7 @@ void Semaphore::Wait() { - - - bool Semaphore::WaitFor(const TimeDelta& rel_time) { --#if V8_OS_NACL -+#if defined(V8_OS_NACL) || (defined(V8_OS_NETBSD) && (__NetBSD_Version__ - 0 < 699000400)) - // PNaCL doesn't support sem_timedwait, do ugly busy waiting. - ElapsedTimer timer; - timer.Start(); |