include $(TOPDIR)/rules.mk
PKG_NAME:=node
-PKG_VERSION:=v12.16.1
-PKG_RELEASE:=2
+PKG_VERSION:=v12.18.3
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://nodejs.org/dist/$(PKG_VERSION)
-PKG_HASH:=0a95845ba02c46102b5671d0c5732460073f2d397488337e18d1fc30146d412d
+PKG_HASH:=71158026579487422fd13cc2553b34cddb76519098aa6030faab52f88c6e0d0e
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>, Adrian Panella <ianchi74@outlook.com>
PKG_LICENSE:=MIT
--- a/lib/internal/modules/cjs/loader.js
+++ b/lib/internal/modules/cjs/loader.js
-@@ -1260,7 +1260,8 @@
+@@ -1239,7 +1239,8 @@
path.resolve(process.execPath, '..') :
path.resolve(process.execPath, '..', '..');
'ppc64', 'x32','x64', 'x86', 'x86_64', 's390x')
valid_arm_float_abi = ('soft', 'softfp', 'hard')
valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
-@@ -896,6 +896,9 @@
+@@ -956,6 +956,9 @@
if rtn == 'mipsel' and '_LP64' in k:
rtn = 'mips64el'
return rtn
-@@ -1001,7 +1004,7 @@
+@@ -1063,7 +1066,7 @@
if target_arch == 'arm':
configure_arm(o)
- elif target_arch in ('mips', 'mipsel', 'mips64el'):
+ elif target_arch in ('mips', 'mipsel', 'mips64', 'mips64el'):
- configure_mips(o)
+ configure_mips(o, target_arch)
if flavor == 'aix':
'<@(icu_src_genccode)',
--- a/tools/v8_gypfiles/v8.gyp 2019-06-27 19:12:20.000000000 +0900
+++ b/tools/v8_gypfiles/v8.gyp 2019-07-01 14:40:48.292020880 +0900
-@@ -1265,6 +1265,7 @@
+@@ -1255,6 +1255,7 @@
{
'target_name': 'bytecode_builtins_list_generator',
'type': 'executable',
'conditions': [
['want_separate_host_toolset', {
'toolsets': ['host'],
-@@ -1288,6 +1289,8 @@
+@@ -1278,6 +1279,8 @@
{
'target_name': 'mksnapshot',
'type': 'executable',
'dependencies': [
'v8_base_without_compiler',
'v8_compiler_for_mksnapshot',
-@@ -1310,6 +1313,7 @@
+@@ -1300,6 +1303,7 @@
{
'target_name': 'torque',
'type': 'executable',
'dependencies': [
'torque_base',
# "build/win:default_exe_manifest",
-@@ -1348,6 +1352,7 @@
+@@ -1338,6 +1342,7 @@
{
'target_name': 'torque-language-server',
'type': 'executable',
'conditions': [
['want_separate_host_toolset', {
'toolsets': ['host'],
-@@ -1375,6 +1380,8 @@
+@@ -1365,6 +1370,8 @@
{
'target_name': 'gen-regexp-special-case',
'type': 'executable',
diff -urN a/configure.py b/configure.py
--- a/configure.py 2019-09-05 00:36:21.000000000 +0900
+++ b/configure.py 2019-09-27 11:49:55.445800884 +0900
-@@ -1223,6 +1223,25 @@
+@@ -1276,6 +1276,23 @@
options.build_v8_with_gn = FetchDeps(v8_path)
o['variables']['build_v8_with_gn'] = b(options.build_v8_with_gn)
+ elif target_arch in ('mipsel', 'mips64el'):
+ o['variables']['v8_enable_embedded_builtins'] = 0
+ elif target_arch == 'x64':
-+ if options.with_intl in (None, 'none'):
-+ o['variables']['v8_enable_embedded_builtins'] = 1
++ if options.with_intl not in (None, 'none'):
++ o['variables']['v8_enable_embedded_builtins'] = 0
+ elif target_arch == 'ia32':
+ if options.with_intl in (None, 'none'):
+ o['variables']['v8_use_snapshot'] = 'false'
-+ else:
-+ o['variables']['v8_enable_embedded_builtins'] = 0
def configure_openssl(o):
variables = o['variables']
-@@ -1654,6 +1673,7 @@
+@@ -1713,6 +1732,7 @@
configure_intl(output)
configure_static(output)
configure_inspector(output)