From 8af1f4b83b8e1e6ce1199c43f90ce112841d3b8c Mon Sep 17 00:00:00 2001 From: emmett1 Date: Fri, 18 Apr 2025 03:58:09 +0200 Subject: nodejs: updated to 23.11.0 (drop libatomic from dependency) --- repos/extra/nodejs/.checksum | 3 ++- repos/extra/nodejs/abuild | 5 +++-- repos/extra/nodejs/atomic.patch | 28 ++++++++++++++++++++++++++++ repos/extra/nodejs/depends | 1 - 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 repos/extra/nodejs/atomic.patch diff --git a/repos/extra/nodejs/.checksum b/repos/extra/nodejs/.checksum index b353973d..c26d1b9a 100644 --- a/repos/extra/nodejs/.checksum +++ b/repos/extra/nodejs/.checksum @@ -1 +1,2 @@ -eb8856c7229dbbc4e7de424214f5ac7d3f9622267a29876c9f841b0628e0b34c node-v23.10.0.tar.xz +45c5877fdef65b1dd07e884303959b4a508d5e58a4ef060f4d95729c3b16a653 atomic.patch +8848068ea553e883039084c7faaffaacc3f23cb8997ce5c38d6bc7f9ab1b048f node-v23.11.0.tar.xz diff --git a/repos/extra/nodejs/abuild b/repos/extra/nodejs/abuild index fa70f8b1..7091d496 100644 --- a/repos/extra/nodejs/abuild +++ b/repos/extra/nodejs/abuild @@ -1,7 +1,8 @@ name=nodejs -version=23.10.0 +version=23.11.0 release=1 -source="https://$name.org/dist/v$version/node-v$version.tar.xz" +source="https://$name.org/dist/v$version/node-v$version.tar.xz + atomic.patch" build() { # use system openssl when openssl installed diff --git a/repos/extra/nodejs/atomic.patch b/repos/extra/nodejs/atomic.patch new file mode 100644 index 00000000..254ca7d3 --- /dev/null +++ b/repos/extra/nodejs/atomic.patch @@ -0,0 +1,28 @@ +--- a/node.gyp ++++ b/node.gyp +@@ -510,9 +510,6 @@ + '-Wl,-bnoerrmsg', + ], + }], +- ['OS=="linux" and clang==1', { +- 'libraries': ['-latomic'], +- }], + ], + }, + +--- a/tools/v8_gypfiles/v8.gyp ++++ b/tools/v8_gypfiles/v8.gyp +@@ -1268,13 +1268,6 @@ + ['v8_enable_third_party_heap', { + # TODO(targos): add values from v8_third_party_heap_libs to link_settings.libraries + }], +- # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library +- # to implement atomic memory access +- ['v8_current_cpu in ["mips64", "mips64el", "ppc", "arm", "riscv64", "loong64"]', { +- 'link_settings': { +- 'libraries': ['-latomic', ], +- }, +- }], + ], + }, # v8_base_without_compiler + { diff --git a/repos/extra/nodejs/depends b/repos/extra/nodejs/depends index b8f9467c..d67a5c30 100644 --- a/repos/extra/nodejs/depends +++ b/repos/extra/nodejs/depends @@ -2,4 +2,3 @@ c-ares libuv nghttp2 nghttp3 -libatomic -- cgit v1.2.3