node: bump to v18.14.2
authorHirokazu MORIKAWA <redacted>
Thu, 23 Feb 2023 02:29:42 +0000 (11:29 +0900)
committerTianling Shen <redacted>
Mon, 27 Feb 2023 02:56:04 +0000 (10:56 +0800)
Update to v18.14.2
Support for OpenSSL v3.0.x

Signed-off-by: Hirokazu MORIKAWA <redacted>
13 files changed:
lang/node/Makefile
lang/node/patches/003-path.patch
lang/node/patches/004-musl_support.patch
lang/node/patches/007-fix_host_build_on_macos.patch
lang/node/patches/010-execvp-arg-list-too-long.patch [deleted file]
lang/node/patches/990-delete_unnecessary_libraries_for_host_execute.patch [moved from lang/node/patches/999-delete_unnecessary_libraries_for_host_execute.patch with 91% similarity]
lang/node/patches/991-v8_zlib_support.patch [moved from lang/node/patches/999-v8_zlib_support.patch with 84% similarity]
lang/node/patches/992-v8_compiler_add_include_dirs.patch [new file with mode: 0644]
lang/node/patches/999-cast_for_mips32.patch
lang/node/patches/999-deps-v8-src-trap-handler-trap-handler.h.patch [deleted file]
lang/node/patches/999-fix_icu_conflict.patch
lang/node/patches/999-localhost-no-addrconfig.patch
lang/node/patches/999-revert_enable_pointer_authentication_on_arm64.patch

index f292d1565e66396b73c252bb463f59718f612716..f1eacd891e5275d6cebb3184afd5fdc982798202 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=node
-PKG_VERSION:=v16.19.1
+PKG_VERSION:=v18.14.2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://nodejs.org/dist/$(PKG_VERSION)
-PKG_HASH:=17fb716406198125b30c94dd3d1756207b297705626afe16d8dc479a65a1d8b5
+PKG_HASH:=fbc364dd25fee2cacc0f2033db2d86115fc07575310ea0e64408b8170d09c685
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>, Adrian Panella <ianchi74@outlook.com>
 PKG_LICENSE:=MIT
index d3183cb6691c4c3c27f165f5a2658fea1cb224bc..a1103be0dfeb687a4144fba64a437cbbdf83c679 100644 (file)
@@ -1,6 +1,6 @@
 --- a/lib/internal/modules/cjs/loader.js
 +++ b/lib/internal/modules/cjs/loader.js
-@@ -1326,7 +1326,8 @@ Module._initPaths = function() {
+@@ -1389,7 +1389,8 @@ Module._initPaths = function() {
      path.resolve(process.execPath, '..') :
      path.resolve(process.execPath, '..', '..');
  
index 172b8010d951b175f93d98d70b1e9fb4fc527189..5e7e54b72cea3dddfb72aed47950d69f690b1bbb 100644 (file)
@@ -20,8 +20,8 @@
    result = clock_gettime(CLOCK_MONOTONIC, &ts);
 --- a/deps/v8/src/base/platform/platform-posix.cc
 +++ b/deps/v8/src/base/platform/platform-posix.cc
-@@ -883,7 +883,7 @@ bool Thread::Start() {
- #if V8_OS_MACOSX
+@@ -1066,7 +1066,7 @@ bool Thread::Start() {
+ #if V8_OS_DARWIN
      // Default on Mac OS X is 512kB -- bump up to 1MB
      stack_size = 1 * 1024 * 1024;
 -#elif V8_OS_AIX
index 5def2bd4310168e68e25b9dedf3fabbeae01b6bc..eeb5c2d1cad98944ebfdbda6543ffd8884efe738 100644 (file)
@@ -1,6 +1,6 @@
 --- a/tools/gyp/pylib/gyp/generator/make.py
 +++ b/tools/gyp/pylib/gyp/generator/make.py
-@@ -181,7 +181,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -
+@@ -206,7 +206,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -
  
  LINK_COMMANDS_MAC = """\
  quiet_cmd_alink = LIBTOOL-STATIC $@
diff --git a/lang/node/patches/010-execvp-arg-list-too-long.patch b/lang/node/patches/010-execvp-arg-list-too-long.patch
deleted file mode 100644 (file)
index 8074ba1..0000000
+++ /dev/null
@@ -1,236 +0,0 @@
---- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
-+++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
-@@ -154,6 +154,32 @@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOL
- quiet_cmd_link = LINK($(TOOLSET)) $@
- cmd_link = $(LINK.$(TOOLSET)) -o $@ $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
-+define xargs
-+        $(1) $(wordlist 1,100,$(2))
-+        $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
-+endef
-+
-+define write-to-file
-+        @echo >$(1)
-+        $(call xargs,printf "%s\\n" >>$(1),$(2))
-+endef
-+
-+OBJ_FILE_LIST_SFX := ar-file-list
-+
-+define create_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
-+define create_thin_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
- # We support two kinds of shared objects (.so):
- # 1) shared_library, which is just bundling together many dependent libraries
- # into a link line.
-@@ -198,6 +224,32 @@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET))
- quiet_cmd_alink_thin = AR($(TOOLSET)) $@
- cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
-+define xargs
-+        $(1) $(wordlist 1,100,$(2))
-+        $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
-+endef
-+
-+define write-to-file
-+        @echo >$(1)
-+        $(call xargs,printf "%s\\n" >>$(1),$(2))
-+endef
-+
-+OBJ_FILE_LIST_SFX := ar-file-list
-+
-+define create_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
-+define create_thin_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
- # Due to circular dependencies between libraries :(, we wrap the
- # special "figure out circular dependencies" flags around the entire
- # input list during linking.
-@@ -1768,21 +1820,35 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)
-                 self.flavor not in ("mac", "openbsd", "netbsd", "win")
-                 and not self.is_standalone_static_library
-             ):
--                self.WriteDoCmd(
--                    [self.output_binary],
--                    link_deps,
--                    "alink_thin",
--                    part_of_all,
--                    postbuilds=postbuilds,
--                )
-+                if self.flavor in ('linux', 'android'):
-+                    self.WriteMakeRule(
-+                        [self.output_binary],
-+                        link_deps,
-+                        actions = ['$(call create_thin_archive,$@,$^)']
-+                    )
-+                else:
-+                    self.WriteDoCmd(
-+                        [self.output_binary],
-+                        link_deps,
-+                        "alink_thin",
-+                        part_of_all,
-+                        postbuilds=postbuilds,
-+                    )
-             else:
--                self.WriteDoCmd(
--                    [self.output_binary],
--                    link_deps,
--                    "alink",
--                    part_of_all,
--                    postbuilds=postbuilds,
--                )
-+                if self.flavor in ('linux', 'android'):
-+                    self.WriteMakeRule(
-+                        [self.output_binary],
-+                        link_deps,
-+                        actions = ['$(call create_archive,$@,$^)']
-+                    )
-+                else:
-+                    self.WriteDoCmd(
-+                        [self.output_binary],
-+                        link_deps,
-+                        "alink",
-+                        part_of_all,
-+                        postbuilds=postbuilds,
-+                    )
-         elif self.type == "shared_library":
-             self.WriteLn(
-                 "%s: LD_INPUTS := %s"
---- a/tools/gyp/pylib/gyp/generator/make.py
-+++ b/tools/gyp/pylib/gyp/generator/make.py
-@@ -156,6 +156,32 @@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOL
- quiet_cmd_link = LINK($(TOOLSET)) $@
- cmd_link = $(LINK.$(TOOLSET)) -o $@ $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
-+define xargs
-+        $(1) $(wordlist 1,100,$(2))
-+        $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
-+endef
-+
-+define write-to-file
-+        @echo >$(1)
-+        $(call xargs,printf "%s\\n" >>$(1),$(2))
-+endef
-+
-+OBJ_FILE_LIST_SFX := ar-file-list
-+
-+define create_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
-+define create_thin_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
- # We support two kinds of shared objects (.so):
- # 1) shared_library, which is just bundling together many dependent libraries
- # into a link line.
-@@ -200,6 +226,32 @@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET))
- quiet_cmd_alink_thin = AR($(TOOLSET)) $@
- cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
-+define xargs
-+        $(1) $(wordlist 1,100,$(2))
-+        $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
-+endef
-+
-+define write-to-file
-+        @echo >$(1)
-+        $(call xargs,printf "%s\\n" >>$(1),$(2))
-+endef
-+
-+OBJ_FILE_LIST_SFX := ar-file-list
-+
-+define create_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
-+define create_thin_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
- # Due to circular dependencies between libraries :(, we wrap the
- # special "figure out circular dependencies" flags around the entire
- # input list during linking.
-@@ -1809,21 +1861,35 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)
-                 self.flavor not in ("mac", "openbsd", "netbsd", "win")
-                 and not self.is_standalone_static_library
-             ):
--                self.WriteDoCmd(
--                    [self.output_binary],
--                    link_deps,
--                    "alink_thin",
--                    part_of_all,
--                    postbuilds=postbuilds,
--                )
-+                if self.flavor in ('linux', 'android'):
-+                    self.WriteMakeRule(
-+                        [self.output_binary],
-+                        link_deps,
-+                        actions = ['$(call create_thin_archive,$@,$^)']
-+                    )
-+                else:
-+                    self.WriteDoCmd(
-+                        [self.output_binary],
-+                        link_deps,
-+                        'alink_thin',
-+                        part_of_all,
-+                        postbuilds=postbuilds
-+                    )
-             else:
--                self.WriteDoCmd(
--                    [self.output_binary],
--                    link_deps,
--                    "alink",
--                    part_of_all,
--                    postbuilds=postbuilds,
--                )
-+                if self.flavor in ('linux', 'android'):
-+                    self.WriteMakeRule(
-+                        [self.output_binary],
-+                        link_deps,
-+                        actions = ['$(call create_archive,$@,$^)']
-+                    )
-+                else:
-+                    self.WriteDoCmd(
-+                        [self.output_binary],
-+                        link_deps,
-+                        'alink',
-+                        part_of_all,
-+                        postbuilds=postbuilds
-+                    )
-         elif self.type == "shared_library":
-             self.WriteLn(
-                 "%s: LD_INPUTS := %s"
similarity index 91%
rename from lang/node/patches/999-delete_unnecessary_libraries_for_host_execute.patch
rename to lang/node/patches/990-delete_unnecessary_libraries_for_host_execute.patch
index e39e29dfac7d6f2265aff06ceb5b6840c2e8018a..f9e5329db05069488ecc647edd6195c27ede37c6 100644 (file)
@@ -1,14 +1,14 @@
 --- a/tools/icu/icu-generic.gyp
 +++ b/tools/icu/icu-generic.gyp
-@@ -419,6 +419,7 @@
+@@ -418,6 +418,7 @@
        'target_name': 'genrb',
        'type': 'executable',
        'toolsets': [ 'host' ],
 +      'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
-       'dependencies': [ 'icutools' ],
+       'dependencies': [ 'icutools', 'icu_implementation' ],
        'sources': [
          '<@(icu_src_genrb)'
-@@ -435,6 +436,7 @@
+@@ -434,6 +435,7 @@
        'target_name': 'iculslocs',
        'toolsets': [ 'host' ],
        'type': 'executable',
@@ -16,7 +16,7 @@
        'dependencies': [ 'icutools' ],
        'sources': [
          'iculslocs.cc',
-@@ -447,6 +449,7 @@
+@@ -446,6 +448,7 @@
        'target_name': 'icupkg',
        'toolsets': [ 'host' ],
        'type': 'executable',
@@ -24,7 +24,7 @@
        'dependencies': [ 'icutools' ],
        'sources': [
          '<@(icu_src_icupkg)',
-@@ -458,6 +461,7 @@
+@@ -457,6 +460,7 @@
        'target_name': 'genccode',
        'toolsets': [ 'host' ],
        'type': 'executable',
@@ -34,7 +34,7 @@
          '<@(icu_src_genccode)',
 --- a/tools/v8_gypfiles/v8.gyp
 +++ b/tools/v8_gypfiles/v8.gyp
-@@ -1373,6 +1373,7 @@
+@@ -1397,6 +1397,7 @@
      {
        'target_name': 'bytecode_builtins_list_generator',
        'type': 'executable',
@@ -42,7 +42,7 @@
        'conditions': [
          ['want_separate_host_toolset', {
            'toolsets': ['host'],
-@@ -1397,6 +1398,8 @@
+@@ -1421,6 +1422,8 @@
      {
        'target_name': 'mksnapshot',
        'type': 'executable',
@@ -51,7 +51,7 @@
        'dependencies': [
          'v8_base_without_compiler',
          'v8_compiler_for_mksnapshot',
-@@ -1418,6 +1421,7 @@
+@@ -1442,6 +1445,7 @@
      {
        'target_name': 'torque',
        'type': 'executable',
@@ -59,7 +59,7 @@
        'dependencies': [
          'torque_base',
          # "build/win:default_exe_manifest",
-@@ -1456,6 +1460,7 @@
+@@ -1480,6 +1484,7 @@
      {
        'target_name': 'torque-language-server',
        'type': 'executable',
@@ -67,7 +67,7 @@
        'conditions': [
          ['want_separate_host_toolset', {
            'toolsets': ['host'],
-@@ -1483,6 +1488,8 @@
+@@ -1507,6 +1512,8 @@
      {
        'target_name': 'gen-regexp-special-case',
        'type': 'executable',
similarity index 84%
rename from lang/node/patches/999-v8_zlib_support.patch
rename to lang/node/patches/991-v8_zlib_support.patch
index 8bcd674cd0a34b327163d38963c0a3e9a618670a..d8c478b8f70922d84c63755dc98a4accb5275eaa 100644 (file)
@@ -1,18 +1,13 @@
 --- a/deps/zlib/zlib.gyp
 +++ b/deps/zlib/zlib.gyp
-@@ -43,10 +43,12 @@
-             'zutil.c',
-             'zutil.h',
-           ],
-+          'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
-           'include_dirs': [
-             '.',
-           ],
-           'direct_dependent_settings': {
-+            'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
-             'include_dirs': [
-               '.',
-             ],
+@@ -9,6 +9,7 @@
+     'arm_fpu%': '',
+     'llvm_version%': '0.0',
+   },
++  'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+   'conditions': [
+     ['use_system_zlib==0', {
+       'targets': [
 --- a/tools/v8_gypfiles/v8.gyp
 +++ b/tools/v8_gypfiles/v8.gyp
 @@ -60,6 +60,7 @@
@@ -51,7 +46,7 @@
        ],
        'sources': [
          '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn"  "\\"v8_initializers.*?sources = ")',
-@@ -754,6 +759,7 @@
+@@ -769,6 +774,7 @@
        ],
        'includes': ['inspector.gypi'],
        'direct_dependent_settings': {
@@ -59,7 +54,7 @@
          'include_dirs': [
            '<(generate_bytecode_output_root)',
            '<(SHARED_INTERMEDIATE_DIR)',
-@@ -1353,6 +1359,7 @@
+@@ -1377,6 +1383,7 @@
          }],
        ],
        'direct_dependent_settings': {
@@ -67,7 +62,7 @@
          'include_dirs': [
            '<(V8_ROOT)/include',
          ],
-@@ -1701,6 +1708,7 @@
+@@ -1729,6 +1736,7 @@
           }],
        ],
        'direct_dependent_settings': {
@@ -75,7 +70,7 @@
          'include_dirs': [
            '<(V8_ROOT)/include',
          ],
-@@ -1881,15 +1889,19 @@
+@@ -1909,15 +1917,19 @@
          }],
        ],
        'direct_dependent_settings': {
diff --git a/lang/node/patches/992-v8_compiler_add_include_dirs.patch b/lang/node/patches/992-v8_compiler_add_include_dirs.patch
new file mode 100644 (file)
index 0000000..c80cea0
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/tools/v8_gypfiles/v8.gyp
++++ b/tools/v8_gypfiles/v8.gyp
+@@ -714,6 +714,7 @@
+         'v8_shared_internal_headers',
+       ],
+       'sources': ['<@(v8_compiler_sources)'],
++      'include_dirs': [ '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
+       'conditions': [
+         ['OS=="win"', {
+           'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h',
index a83157b80232036aa59e64328b802ccc5d0192fe..63600b3fbf9d0d16e6c935b90222ce3e4ab6d429 100644 (file)
@@ -1,6 +1,6 @@
 --- a/deps/v8/src/compiler/backend/mips/code-generator-mips.cc
 +++ b/deps/v8/src/compiler/backend/mips/code-generator-mips.cc
-@@ -4103,7 +4103,7 @@ void CodeGenerator::AssembleReturn(Instr
+@@ -4101,7 +4101,7 @@ void CodeGenerator::AssembleReturn(Instr
      } else if (FLAG_debug_code) {
        __ Assert(eq, AbortReason::kUnexpectedAdditionalPopValue,
                  g.ToRegister(additional_pop_count),
diff --git a/lang/node/patches/999-deps-v8-src-trap-handler-trap-handler.h.patch b/lang/node/patches/999-deps-v8-src-trap-handler-trap-handler.h.patch
deleted file mode 100644 (file)
index b488359..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/deps/v8/src/trap-handler/trap-handler.h
-+++ b/deps/v8/src/trap-handler/trap-handler.h
-@@ -17,19 +17,16 @@ namespace v8 {
- namespace internal {
- namespace trap_handler {
--// X64 on Linux, Windows, MacOS, FreeBSD.
--#if V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64 &&                        \
--    ((V8_OS_LINUX && !V8_OS_ANDROID) || V8_OS_WIN || V8_OS_MACOSX || \
--     V8_OS_FREEBSD)
-+#if V8_TARGET_ARCH_X64 && V8_OS_LINUX && !V8_OS_ANDROID
- #define V8_TRAP_HANDLER_SUPPORTED true
--// Arm64 (non-simulator) on Mac.
--#elif V8_TARGET_ARCH_ARM64 && V8_HOST_ARCH_ARM64 && V8_OS_MACOSX
-+#elif V8_TARGET_ARCH_X64 && V8_OS_WIN
- #define V8_TRAP_HANDLER_SUPPORTED true
--// Arm64 simulator on x64 on Linux or Mac.
--#elif V8_TARGET_ARCH_ARM64 && V8_HOST_ARCH_X64 && (V8_OS_LINUX || V8_OS_MACOSX)
--#define V8_TRAP_HANDLER_VIA_SIMULATOR
-+#elif V8_TARGET_ARCH_X64 && V8_OS_MACOSX
-+#define V8_TRAP_HANDLER_SUPPORTED true
-+#elif V8_TARGET_ARCH_X64 && V8_OS_FREEBSD
-+#define V8_TRAP_HANDLER_SUPPORTED true
-+#elif V8_HOST_ARCH_ARM64 && V8_TARGET_ARCH_ARM64 && V8_OS_MACOSX
- #define V8_TRAP_HANDLER_SUPPORTED true
--// Everything else is unsupported.
- #else
- #define V8_TRAP_HANDLER_SUPPORTED false
- #endif
index 489bca47cb291bbb59684aed1a2cc44c9e25fd2d..fdf5bf3858e150acac3d82756882bc8642d6c8aa 100644 (file)
@@ -1,6 +1,6 @@
 --- a/tools/icu/icu-generic.gyp
 +++ b/tools/icu/icu-generic.gyp
-@@ -107,6 +107,7 @@
+@@ -106,6 +106,7 @@
            'sources': [
              '<@(icu_src_i18n)'
            ],
@@ -8,7 +8,7 @@
            'include_dirs': [
              '<(icu_path)/source/i18n',
            ],
-@@ -115,6 +116,7 @@
+@@ -114,6 +115,7 @@
            ],
            'dependencies': [ 'icuucx', 'icu_implementation', 'icu_uconfig', 'icu_uconfig_target' ],
            'direct_dependent_settings': {
@@ -16,7 +16,7 @@
              'include_dirs': [
                '<(icu_path)/source/i18n',
              ],
-@@ -201,6 +203,7 @@
+@@ -200,6 +202,7 @@
                # full data - no trim needed
                'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icudt<(icu_ver_major)_dat.<(icu_asm_ext)' ],
                'dependencies': [ 'genccode#host', 'icupkg#host', 'icu_implementation#host', 'icu_uconfig' ],
@@ -24,7 +24,7 @@
                'include_dirs': [
                  '<(icu_path)/source/common',
                ],
-@@ -285,6 +288,7 @@
+@@ -284,6 +287,7 @@
                # This file contains the small ICU data
                'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icusmdt<(icu_ver_major)_dat.<(icu_asm_ext)' ],
                # for umachine.h
@@ -32,7 +32,7 @@
                'include_dirs': [
                  '<(icu_path)/source/common',
                ],
-@@ -301,6 +305,7 @@
+@@ -300,6 +304,7 @@
        'sources': [
          '<@(icu_src_stubdata)'
        ],
@@ -40,7 +40,7 @@
        'include_dirs': [
          '<(icu_path)/source/common',
        ],
-@@ -340,6 +345,7 @@
+@@ -339,6 +344,7 @@
            '_XOPEN_SOURCE_EXTENDED=0',
          ]}],
        ],
@@ -48,7 +48,7 @@
        'include_dirs': [
          '<(icu_path)/source/common',
        ],
-@@ -349,6 +355,7 @@
+@@ -348,6 +354,7 @@
        'cflags_c': ['-std=c99'],
        'export_dependent_settings': [ 'icu_uconfig', 'icu_uconfig_target' ],
        'direct_dependent_settings': {
@@ -56,7 +56,7 @@
          'include_dirs': [
            '<(icu_path)/source/common',
          ],
-@@ -379,6 +386,7 @@
+@@ -378,6 +385,7 @@
          '<(icu_path)/source/tools/toolutil/dbgutil.cpp',
          '<(icu_path)/source/tools/toolutil/dbgutil.h',
        ],
@@ -64,7 +64,7 @@
        'include_dirs': [
          '<(icu_path)/source/common',
          '<(icu_path)/source/i18n',
-@@ -398,6 +406,7 @@
+@@ -397,6 +405,7 @@
          }]
        ],
        'direct_dependent_settings': {
index ce24ebd1d66e24521fd05564af4d1e28d5666258..50d3f4a1c8140a1c00d10fc1f0875432765891d7 100644 (file)
@@ -13,7 +13,7 @@ Forwarded: https://github.com/nodejs/node/issues/33816
  //
  // Permission is hereby granted, free of charge, to any person obtaining a
  // copy of this software and associated documentation files (the
-@@ -1149,13 +1150,6 @@ function lookupAndConnect(self, options)
+@@ -1265,13 +1266,6 @@ function lookupAndConnect(self, options)
      hints: options.hints || 0
    };
  
index c1b0ece854ca6b950790c5d1bdf1d45880a62bc6..d389c30c8940d47a93e9d1bcd34931b3391b5ad1 100644 (file)
@@ -1,13 +1,10 @@
 --- a/configure.py
 +++ b/configure.py
-@@ -1241,10 +1241,6 @@ def configure_node(o):
+@@ -1290,7 +1290,6 @@ def configure_node(o):
  
-   o['variables']['want_separate_host_toolset'] = int(cross_compiling)
--  # Enable branch protection for arm64
--  if target_arch == 'arm64':
+   # Enable branch protection for arm64
+   if target_arch == 'arm64':
 -    o['cflags']+=['-msign-return-address=all']
--
+     o['variables']['arm_fpu'] = options.arm_fpu or 'neon'
    if options.node_snapshot_main is not None:
-     if options.shared:
-       # This should be possible to fix, but we will need to refactor the
git clone https://git.99rst.org/PROJECT