diff --git a/packages/nodejs/build.sh b/packages/nodejs/build.sh index b4ccb683ce..f1d3060a73 100644 --- a/packages/nodejs/build.sh +++ b/packages/nodejs/build.sh @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://nodejs.org/ TERMUX_PKG_DESCRIPTION="Open Source, cross-platform JavaScript runtime environment" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="Yaksh Bariya " -TERMUX_PKG_VERSION=24.1.0 +TERMUX_PKG_VERSION=24.2.0 TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz -TERMUX_PKG_SHA256=c8171b2aeccb28c8c5347f273a25adae172fb2a65bc8c975bc22ec58949d0eaf +TERMUX_PKG_SHA256=40143d43efbdeeb9537995f532126c494d63a31da332acb5022f76f00afc62ab # thunder-coding: don't try to autoupdate nodejs, that thing takes 2 whole hours to build for a single arch, and requires a lot of patch updates everytime. Also I run tests everytime I update it to ensure least bugs TERMUX_PKG_AUTO_UPDATE=false # Note that we do not use a shared libuv to avoid an issue with the Android diff --git a/packages/nodejs/node.gyp.patch b/packages/nodejs/node.gyp.patch index 4b778cb514..473e0ac5d4 100644 --- a/packages/nodejs/node.gyp.patch +++ b/packages/nodejs/node.gyp.patch @@ -1,6 +1,6 @@ ---- ./node.gyp.orig 2025-05-08 13:56:21.000000000 +0530 -+++ ./node.gyp 2025-05-09 19:47:04.157493775 +0530 -@@ -534,7 +534,8 @@ +--- ./node.gyp.orig 2025-06-10 09:31:14.066774171 +0530 ++++ ./node.gyp 2025-06-10 14:33:02.935820287 +0530 +@@ -538,7 +538,8 @@ ], 'sources': [ @@ -10,7 +10,7 @@ ], 'dependencies': [ -@@ -1019,303 +1020,6 @@ +@@ -1035,303 +1036,7 @@ }, ], }, # node_lib_target_name @@ -33,7 +33,7 @@ - 'deps/uv/include', - 'test/cctest', - ], -- + - 'defines': [ - 'NODE_ARCH="<(target_arch)"', - 'NODE_PLATFORM="<(OS)"', @@ -44,11 +44,11 @@ - 'test/fuzzers/fuzz_env.cc', - ], - 'conditions': [ -- ['OS=="linux"', { +- ['OS=="linux" or OS=="openharmony"', { - 'ldflags': [ '-fsanitize=fuzzer' ] - }], - # Ensure that ossfuzz flag has been set and that we are on Linux -- [ 'OS!="linux" or ossfuzz!="true"', { +- [ 'OS not in "linux openharmony" or ossfuzz!="true"', { - 'type': 'none', - }], - # Avoid excessive LTO @@ -87,11 +87,11 @@ - 'test/fuzzers/fuzz_ClientHelloParser.cc', - ], - 'conditions': [ -- ['OS=="linux"', { +- ['OS=="linux" or OS=="openharmony"', { - 'ldflags': [ '-fsanitize=fuzzer' ] - }], - # Ensure that ossfuzz flag has been set and that we are on Linux -- [ 'OS!="linux" or ossfuzz!="true"', { +- [ 'OS not in "linux openharmony" or ossfuzz!="true"', { - 'type': 'none', - }], - # Avoid excessive LTO @@ -132,11 +132,11 @@ - 'test/fuzzers/fuzz_strings.cc', - ], - 'conditions': [ -- ['OS=="linux"', { +- ['OS=="linux" or OS=="openharmony"', { - 'ldflags': [ '-fsanitize=fuzzer' ] - }], - # Ensure that ossfuzz flag has been set and that we are on Linux -- [ 'OS!="linux" or ossfuzz!="true"', { +- [ 'OS not in "linux openharmony" or ossfuzz!="true"', { - 'type': 'none', - }], - # Avoid excessive LTO @@ -314,7 +314,7 @@ { 'target_name': 'node_js2c', 'type': 'executable', -@@ -1352,76 +1056,6 @@ +@@ -1368,76 +1073,6 @@ }], ] },