mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
nodejs: upgrade 22.22.3 -> 24.16.0 (LTS)
Add Node.js 24.16.0 [1] recipe based on 22.22.3. Patches reviewed against
the 24.15.0 source tree and rebased where needed:
- 0001: rebased for Makefile changes (common_node.gypi removed, line
offsets shifted); merged with Disable-running-gyp-files patch since
both modify the same Makefile hunk. Remove deps/simdutf/simdutf.gyp;
no longer vendored here.
- 0005: rebased for v8.gyp libatomic condition change (clang condition
folded upstream, ppc removed)
- v24.16.0 bumps bundled llhttp to 9.3.1 (LLHTTP_VERSION_MAJOR/MINOR/PATCH
= 9/3/1 in deps/llhttp/include/llhttp.h).
Five patches dropped as no longer needed:
- build-remove-redundant-mXX-flags-for-V8: backport already merged
upstream in Node.js 24
- ppc64-Do-not-use-mminimal-toc-with-clang: Node.js 24 common.gypi
already gates -mminimal-toc behind clang==0
- fix-arm-Neon-intrinsics-types: the v24.16.0 source already uses
vandq_u8/vorrq_u8 and vshrn_n_u16(vreinterpretq_u16_u8(mask), 4).
- detect-aarch64-Neon-correctly: #ifdef __ARM_NEON__ →
#if defined(__ARM_NEON__) || defined(__ARM_NEON) — already present
at lines 13 and 2628.
- llhttp-fix-NEON-header-value-__builtin_ctzll-undefin: wanted the
match_mask == 0 guard around __builtin_ctzll — already present.
"This patch can be dropped when nodejs updates its bundled llhttp
to >= 9.3.1.")
Remaining 9 patches renumbered sequentially 0001-0009. All verified to
apply cleanly against the v24.16.0 source tarball.
NOTE: The "current" release is v26.2.0 [1], but this is not yet an LTS
release. Application stacks frequently lag new releases, so
it makes sense to have support for the v24 LTS release.
[1] https://nodejs.org/en/blog/release/v24.16.0
[2] https://nodejs.org/en/blog/release/v26.2.0
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
// Revert the patch found here https://github.com/nodejs/node/commit/fe1dd26398e1887b96b2dc51ab59371ad4d6bc20?diff=unified&w=0
|
||||
// so that the dependencies are still explicitly enumerated. That way we
|
||||
// can pick and choose which pieces to build and which to use existing system
|
||||
// packages for.
|
||||
|
||||
From 689e098cbde130ecde523ae39df3567456271fda Mon Sep 17 00:00:00 2001
|
||||
From: Zuzana Svetlikova <zsvetlik@redhat.com>
|
||||
Date: Thu, 27 Apr 2017 14:25:42 +0200
|
||||
Subject: [PATCH] Disable running gyp on shared deps
|
||||
|
||||
Probably imported from:
|
||||
https://src.fedoraproject.org/rpms/nodejs/c/41af04f2a3c050fb44628e91ac65fd225b927acb?branch=22609d8c1bfeaa21fe0057645af20b3a2ccc7f53
|
||||
which is probably based on dont-run-gyp-files-for-bundled-deps.patch added in:
|
||||
https://github.com/alpinelinux/aports/commit/6662eb3199902e8451fb20dce82554ad96f796bb
|
||||
|
||||
We also explicitly prune some dependencies from source in the bitbake recipe:
|
||||
|
||||
python prune_sources() {
|
||||
import shutil
|
||||
|
||||
shutil.rmtree(d.getVar('S') + '/deps/openssl')
|
||||
if 'ares' in d.getVar('PACKAGECONFIG'):
|
||||
shutil.rmtree(d.getVar('S') + '/deps/cares')
|
||||
if 'brotli' in d.getVar('PACKAGECONFIG'):
|
||||
shutil.rmtree(d.getVar('S') + '/deps/brotli')
|
||||
if 'libuv' in d.getVar('PACKAGECONFIG'):
|
||||
shutil.rmtree(d.getVar('S') + '/deps/uv')
|
||||
if 'nghttp2' in d.getVar('PACKAGECONFIG'):
|
||||
shutil.rmtree(d.getVar('S') + '/deps/nghttp2')
|
||||
if 'zlib' in d.getVar('PACKAGECONFIG'):
|
||||
shutil.rmtree(d.getVar('S') + '/deps/zlib')
|
||||
}
|
||||
do_unpack[postfuncs] += "prune_sources"
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -179,7 +179,7 @@ with-code-cache test-code-cache:
|
||||
$(warning '$@' target is a noop)
|
||||
|
||||
out/Makefile: config.gypi common.gypi node.gyp \
|
||||
- deps/*/*.gyp \
|
||||
+ deps/llhttp/llhttp.gyp deps/ada/ada.gyp deps/nbytes/nbytes.gyp \
|
||||
tools/v8_gypfiles/toolchain.gypi \
|
||||
tools/v8_gypfiles/features.gypi \
|
||||
tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
|
||||
@@ -0,0 +1,99 @@
|
||||
From afc085af7b6b935a5e14fc3f40db47df02ca3af2 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
|
||||
Date: Sat, 9 Nov 2019 14:45:30 +0000
|
||||
Subject: [PATCH] v8: don't override ARM CFLAGS
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This overrides yocto-provided build flags with its own, e.g we get
|
||||
arm-poky-linux-musleabi-g++ -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 \
|
||||
... \
|
||||
-march=armv7-a -mfpu=neon -mfloat-abi=hard -marm
|
||||
|
||||
Causing the latter to override the former, and compiler warnings:
|
||||
cc1plus: warning: switch '-mcpu=cortex-a7' conflicts with '-march=armv7-a' switch
|
||||
|
||||
Patch this out, so that yocto-provided flags take precedence.
|
||||
Note that in reality the same should probably be done for all the other
|
||||
supported architectures, too.
|
||||
|
||||
Note that this also switches to Thumb(2) mode (in my case). No obvious
|
||||
problems have been noted during compilation or runtime.
|
||||
|
||||
Upstream-Status: Inappropriate [oe-specific]
|
||||
Signed-off-by: André Draszik <git@andred.net>
|
||||
---
|
||||
tools/v8_gypfiles/toolchain.gypi | 52 ++------------------------------
|
||||
1 file changed, 2 insertions(+), 50 deletions(-)
|
||||
|
||||
diff --git a/tools/v8_gypfiles/toolchain.gypi b/tools/v8_gypfiles/toolchain.gypi
|
||||
index 9d1b0987..4df15e60 100644
|
||||
--- a/tools/v8_gypfiles/toolchain.gypi
|
||||
+++ b/tools/v8_gypfiles/toolchain.gypi
|
||||
@@ -203,31 +203,7 @@
|
||||
'target_conditions': [
|
||||
['_toolset=="host"', {
|
||||
'conditions': [
|
||||
- ['v8_target_arch==host_arch', {
|
||||
- # Host built with an Arm CXX compiler.
|
||||
- 'conditions': [
|
||||
- [ 'arm_version==7', {
|
||||
- 'cflags': ['-march=armv7-a',],
|
||||
- }],
|
||||
- [ 'arm_version==7 or arm_version=="default"', {
|
||||
- 'conditions': [
|
||||
- [ 'arm_fpu!="default"', {
|
||||
- 'cflags': ['-mfpu=<(arm_fpu)',],
|
||||
- }],
|
||||
- ],
|
||||
- }],
|
||||
- [ 'arm_float_abi!="default"', {
|
||||
- 'cflags': ['-mfloat-abi=<(arm_float_abi)',],
|
||||
- }],
|
||||
- [ 'arm_thumb==1', {
|
||||
- 'cflags': ['-mthumb',],
|
||||
- }],
|
||||
- [ 'arm_thumb==0', {
|
||||
- 'cflags': ['-marm',],
|
||||
- }],
|
||||
- ],
|
||||
- }, {
|
||||
- # 'v8_target_arch!=host_arch'
|
||||
+ ['v8_target_arch!=host_arch', {
|
||||
# Host not built with an Arm CXX compiler (simulator build).
|
||||
'conditions': [
|
||||
[ 'arm_float_abi=="hard"', {
|
||||
@@ -246,31 +222,7 @@
|
||||
}], # _toolset=="host"
|
||||
['_toolset=="target"', {
|
||||
'conditions': [
|
||||
- ['v8_target_arch==target_arch', {
|
||||
- # Target built with an Arm CXX compiler.
|
||||
- 'conditions': [
|
||||
- [ 'arm_version==7', {
|
||||
- 'cflags': ['-march=armv7-a',],
|
||||
- }],
|
||||
- [ 'arm_version==7 or arm_version=="default"', {
|
||||
- 'conditions': [
|
||||
- [ 'arm_fpu!="default"', {
|
||||
- 'cflags': ['-mfpu=<(arm_fpu)',],
|
||||
- }],
|
||||
- ],
|
||||
- }],
|
||||
- [ 'arm_float_abi!="default"', {
|
||||
- 'cflags': ['-mfloat-abi=<(arm_float_abi)',],
|
||||
- }],
|
||||
- [ 'arm_thumb==1', {
|
||||
- 'cflags': ['-mthumb',],
|
||||
- }],
|
||||
- [ 'arm_thumb==0', {
|
||||
- 'cflags': ['-marm',],
|
||||
- }],
|
||||
- ],
|
||||
- }, {
|
||||
- # 'v8_target_arch!=target_arch'
|
||||
+ ['v8_target_arch!=target_arch', {
|
||||
# Target not built with an Arm CXX compiler (simulator build).
|
||||
'conditions': [
|
||||
[ 'arm_float_abi=="hard"', {
|
||||
@@ -0,0 +1,32 @@
|
||||
From ce931ad5f5aba60e8e77f39e0af43bce7d25d287 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 4 Mar 2024 11:05:25 -0500
|
||||
Subject: [PATCH] keep nodejs compatible with c-ares 1.17.1
|
||||
|
||||
Upstream-Status: Inappropriate [c-ares specific]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/cares_wrap.h | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/cares_wrap.h b/src/cares_wrap.h
|
||||
index 021ef1c9..820c5d88 100644
|
||||
--- a/src/cares_wrap.h
|
||||
+++ b/src/cares_wrap.h
|
||||
@@ -23,7 +23,15 @@
|
||||
# include <netdb.h>
|
||||
#endif // __POSIX__
|
||||
|
||||
-# include <ares_nameser.h>
|
||||
+#if defined(__ANDROID__) || \
|
||||
+ defined(__MINGW32__) || \
|
||||
+ defined(__OpenBSD__) || \
|
||||
+ defined(_MSC_VER)
|
||||
+
|
||||
+# include <nameser.h>
|
||||
+#else
|
||||
+# include <arpa/nameser.h>
|
||||
+#endif
|
||||
|
||||
namespace node {
|
||||
namespace cares_wrap {
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
From 33393507ba8209f0d6b85b391c525b4c70807275 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 3 Jul 2023 12:33:16 +0000
|
||||
Subject: [PATCH] Correct function signatures
|
||||
|
||||
Fixes builds on mips where clang reports an error
|
||||
../deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h:661:5: error: no matching member function for call to 'Move'
|
||||
Move(tmp, src, type.value_type());
|
||||
^~~~
|
||||
|
||||
Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/v8/v8/+/3235674]
|
||||
|
||||
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
|
||||
---
|
||||
deps/v8/src/wasm/baseline/liftoff-assembler.h | 6 +++---
|
||||
.../src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h | 2 +-
|
||||
.../src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h | 2 +-
|
||||
3 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/deps/v8/src/wasm/baseline/liftoff-assembler.h b/deps/v8/src/wasm/baseline/liftoff-assembler.h
|
||||
index 7cb2f500..713d16db 100644
|
||||
--- a/deps/v8/src/wasm/baseline/liftoff-assembler.h
|
||||
+++ b/deps/v8/src/wasm/baseline/liftoff-assembler.h
|
||||
@@ -681,7 +681,7 @@ class LiftoffAssembler : public MacroAssembler {
|
||||
void FinishCall(const ValueKindSig*, compiler::CallDescriptor*);
|
||||
|
||||
// Move {src} into {dst}. {src} and {dst} must be different.
|
||||
- void Move(LiftoffRegister dst, LiftoffRegister src, ValueKind);
|
||||
+ void Move(LiftoffRegister dst, LiftoffRegister src, ValueKind kind);
|
||||
|
||||
// Parallel register move: For a list of tuples <dst, src, kind>, move the
|
||||
// {src} register of kind {kind} into {dst}. If {src} equals {dst}, ignore
|
||||
@@ -851,8 +851,8 @@ class LiftoffAssembler : public MacroAssembler {
|
||||
inline void MoveStackValue(uint32_t dst_offset, uint32_t src_offset,
|
||||
ValueKind);
|
||||
|
||||
- inline void Move(Register dst, Register src, ValueKind);
|
||||
- inline void Move(DoubleRegister dst, DoubleRegister src, ValueKind);
|
||||
+ inline void Move(Register dst, Register src, ValueKind kind);
|
||||
+ inline void Move(DoubleRegister dst, DoubleRegister src, ValueKind kind);
|
||||
|
||||
inline void Spill(int offset, LiftoffRegister, ValueKind);
|
||||
inline void Spill(int offset, WasmValue);
|
||||
diff --git a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h
|
||||
index bd59f162..56b4d70c 100644
|
||||
--- a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h
|
||||
+++ b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h
|
||||
@@ -672,7 +672,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg,
|
||||
pinned.set(dst_op.rm());
|
||||
LiftoffRegister tmp = kScratchReg2;
|
||||
// Save original value.
|
||||
- Move(tmp, src, type.value_type());
|
||||
+ Move(tmp, src, type.value_type().kind());
|
||||
|
||||
src = tmp;
|
||||
pinned.set(tmp);
|
||||
diff --git a/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h b/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h
|
||||
index a3c94af0..456e5334 100644
|
||||
--- a/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h
|
||||
+++ b/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h
|
||||
@@ -452,7 +452,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg,
|
||||
pinned.set(dst_op.rm());
|
||||
LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned);
|
||||
// Save original value.
|
||||
- Move(tmp, src, type.value_type());
|
||||
+ Move(tmp, src, type.value_type().kind());
|
||||
|
||||
src = tmp;
|
||||
pinned.set(tmp);
|
||||
@@ -0,0 +1,95 @@
|
||||
From 15e751e4b79475fb34e4b32a3ca54119b20c564a Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Sat, 17 Aug 2024 21:33:18 +0800
|
||||
Subject: [PATCH] link libatomic for clang conditionally
|
||||
|
||||
Clang emits atomic builtin, explicitly link libatomic conditionally:
|
||||
- For target build, always link -latomic for clang as usual
|
||||
- For host build, if host and target have same bit width, cross compiling
|
||||
is enabled, and host toolchain is gcc which does not link -latomic;
|
||||
if host and target have different bit width, no cross compiling,
|
||||
host build is the same with target build that requires to link
|
||||
-latomic;
|
||||
|
||||
Fix:
|
||||
|tmp-glibc/work/core2-64-wrs-linux/nodejs/20.13.0/node-v20.13.0/out/Release/node_js2c: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
|
||||
|
||||
Upstream-Status: Inappropriate [OE specific]
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
|
||||
Added libatomic library explicitly to x86 targets.
|
||||
|
||||
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
|
||||
---
|
||||
node.gyp | 13 ++++++++++++-
|
||||
tools/v8_gypfiles/v8.gyp | 29 ++++++++++++++++++++++++-----
|
||||
2 files changed, 36 insertions(+), 6 deletions(-)
|
||||
|
||||
--- a/node.gyp
|
||||
+++ b/node.gyp
|
||||
@@ -503,7 +503,18 @@
|
||||
],
|
||||
}],
|
||||
['OS=="linux" and clang==1', {
|
||||
- 'libraries': ['-latomic'],
|
||||
+ 'target_conditions': [
|
||||
+ ['_toolset=="host"', {
|
||||
+ 'conditions': [
|
||||
+ ['"<!(echo $HOST_AND_TARGET_SAME_WIDTH)"=="0"', {
|
||||
+ 'libraries': ['-latomic'],
|
||||
+ }],
|
||||
+ ],
|
||||
+ }],
|
||||
+ ['_toolset=="target"', {
|
||||
+ 'libraries': ['-latomic'],
|
||||
+ }],
|
||||
+ ],
|
||||
}],
|
||||
],
|
||||
},
|
||||
--- a/tools/v8_gypfiles/v8.gyp
|
||||
+++ b/tools/v8_gypfiles/v8.gyp
|
||||
@@ -1324,10 +1324,24 @@
|
||||
# Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
|
||||
# to implement atomic memory access.
|
||||
# Clang needs it for some atomic operations (https://clang.llvm.org/docs/Toolchain.html#atomics-library).
|
||||
- ['(OS=="linux" and clang==1) or (v8_current_cpu in ["mips64", "mips64el", "arm", "riscv64", "loong64"])', {
|
||||
- 'link_settings': {
|
||||
- 'libraries': ['-latomic', ],
|
||||
- },
|
||||
+ ['(OS=="linux" and clang==1) or \
|
||||
+ (v8_current_cpu in ["mips64", "mips64el", "arm", "riscv64", "loong64"])', {
|
||||
+ 'target_conditions': [
|
||||
+ ['_toolset=="host"', {
|
||||
+ 'conditions': [
|
||||
+ ['"<!(echo $HOST_AND_TARGET_SAME_WIDTH)"=="0"', {
|
||||
+ 'link_settings': {
|
||||
+ 'libraries': ['-latomic'],
|
||||
+ },
|
||||
+ }],
|
||||
+ ],
|
||||
+ }],
|
||||
+ ['_toolset=="target"', {
|
||||
+ 'link_settings': {
|
||||
+ 'libraries': ['-latomic', ],
|
||||
+ },
|
||||
+ }],
|
||||
+ ],
|
||||
}],
|
||||
],
|
||||
}, # v8_base_without_compiler
|
||||
@@ -1793,6 +1805,13 @@
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
+ # For future patch-rebases: this hunk is in mksnapshot target.
|
||||
+ # ia32 includes x86 also
|
||||
+ ['v8_target_arch=="ia32"', {
|
||||
+ 'link_settings': {
|
||||
+ 'libraries': ['-latomic']
|
||||
+ }
|
||||
+ }],
|
||||
],
|
||||
}, # mksnapshot
|
||||
{
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
From 79af9bd6ac1040f1fe3c6cab26b2d040ad907870 Mon Sep 17 00:00:00 2001
|
||||
From: Changqing Li <changqing.li@windriver.com>
|
||||
Date: Fri, 1 Mar 2024 15:46:11 +0800
|
||||
Subject: [PATCH] deps: disable io_uring support in libuv
|
||||
|
||||
Refer [1], Pseudo fails to intercept some of the syscalls when io_uring
|
||||
enabled. Refer [2], always disable io_uring support in libuv to fix
|
||||
issue in [1].
|
||||
|
||||
[1] https://git.openembedded.org/meta-openembedded/commit/?id=d08453978c31ee41d28206c6ff198d7d9d701d88
|
||||
[2] https://github.com/nodejs/node/commit/686da19abb
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
|
||||
|
||||
Updated by Jason Schonberg <schonm@gamil.com> August 1, 2025 for nodejs 22.18.0
|
||||
which uses libuv 1.51.0
|
||||
---
|
||||
deps/uv/src/unix/linux.c | 29 +----------------------------
|
||||
1 file changed, 1 insertion(+), 28 deletions(-)
|
||||
|
||||
diff --git a/deps/uv/src/unix/linux.c b/deps/uv/src/unix/linux.c
|
||||
--- a/deps/uv/src/unix/linux.c
|
||||
+++ b/deps/uv/src/unix/linux.c
|
||||
@@ -465,36 +465,7 @@
|
||||
/* See https://github.com/libuv/libuv/issues/4283. */
|
||||
return 0; /* Random SIGSEGV in signal handler. */
|
||||
#else
|
||||
- /* Ternary: unknown=0, yes=1, no=-1 */
|
||||
- static _Atomic int use_io_uring;
|
||||
- char* val;
|
||||
- int use;
|
||||
-
|
||||
-#if defined(__hppa__)
|
||||
- /* io_uring first supported on parisc in 6.1, functional in .51
|
||||
- * https://lore.kernel.org/all/cb912694-b1fe-dbb0-4d8c-d608f3526905@gmx.de/
|
||||
- */
|
||||
- if (uv__kernel_version() < /*6.1.51*/0x060133)
|
||||
- return 0;
|
||||
-#endif
|
||||
-
|
||||
- /* SQPOLL is all kinds of buggy but epoll batching should work fine. */
|
||||
- if (0 == (flags & UV__IORING_SETUP_SQPOLL))
|
||||
- return 1;
|
||||
-
|
||||
- /* Older kernels have a bug where the sqpoll thread uses 100% CPU. */
|
||||
- if (uv__kernel_version() < /*5.10.186*/0x050ABA)
|
||||
- return 0;
|
||||
-
|
||||
- use = atomic_load_explicit(&use_io_uring, memory_order_relaxed);
|
||||
-
|
||||
- if (use == 0) {
|
||||
- val = getenv("UV_USE_IO_URING");
|
||||
- use = val != NULL && atoi(val) > 0 ? 1 : -1;
|
||||
- atomic_store_explicit(&use_io_uring, use, memory_order_relaxed);
|
||||
- }
|
||||
-
|
||||
- return use > 0;
|
||||
+return 0; /* pseudo doesn't support io_uring https://bugzilla.yoctoproject.org/show_bug.cgi?id=15244 */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
From 07ee84863fa4a9e4d5f155632478587b0acbf71a Mon Sep 17 00:00:00 2001
|
||||
From: Jason Schonberg <schonm@gmail.com>
|
||||
Date: Tue, 30 Apr 2024 21:48:33 -0400
|
||||
Subject: [PATCH] Update to nodejs 22.0.0
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
---
|
||||
test/fixtures/run-script/node_modules/.bin/positional-args | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/test/fixtures/run-script/node_modules/.bin/positional-args b/test/fixtures/run-script/node_modules/.bin/positional-args
|
||||
index 2d809237..3dc5314f 100755
|
||||
--- a/test/fixtures/run-script/node_modules/.bin/positional-args
|
||||
+++ b/test/fixtures/run-script/node_modules/.bin/positional-args
|
||||
@@ -1,3 +1,3 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
echo "Arguments: '$@'"
|
||||
echo "The total number of arguments are: $#"
|
||||
@@ -0,0 +1,18 @@
|
||||
From 9c1a31afdcf368f794b9f5378cb3fe759570f905 Mon Sep 17 00:00:00 2001
|
||||
From: Jason Schonberg <schonm@gmail.com>
|
||||
Date: Tue, 30 Apr 2024 21:48:33 -0400
|
||||
Subject: [PATCH] Update to nodejs 22.0.0
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
---
|
||||
test/fixtures/run-script/node_modules/.bin/custom-env | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/test/fixtures/run-script/node_modules/.bin/custom-env b/test/fixtures/run-script/node_modules/.bin/custom-env
|
||||
index e6f291c6..1430f2e9 100755
|
||||
--- a/test/fixtures/run-script/node_modules/.bin/custom-env
|
||||
+++ b/test/fixtures/run-script/node_modules/.bin/custom-env
|
||||
@@ -1,2 +1,2 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
echo "$CUSTOM_ENV"
|
||||
@@ -0,0 +1,94 @@
|
||||
From 6c3ac20477a4bac643088f24df3c042e627fafa9 Mon Sep 17 00:00:00 2001
|
||||
From: Guillaume Burel <guillaume.burel@stormshield.eu>
|
||||
Date: Fri, 3 Jan 2020 11:25:54 +0100
|
||||
Subject: [PATCH] Using native binaries
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Originally added in:
|
||||
https://git.openembedded.org/meta-openembedded/commit/?id=1c8e4a679ae382f953b2e5c7a4966a4646314f3e
|
||||
later extended and renamed in:
|
||||
https://git.openembedded.org/meta-openembedded/commit/?id=feeb172d1a8bf010490d22b8df9448b20d9d2aed
|
||||
|
||||
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
|
||||
---
|
||||
node.gyp | 3 +
|
||||
tools/v8_gypfiles/v8.gyp | 5 +++++
|
||||
2 files changed, 6 insertions(+)
|
||||
|
||||
diff --git a/node.gyp b/node.gyp
|
||||
index e8e1d9f9..e60ccc10 100644
|
||||
--- a/node.gyp
|
||||
+++ b/node.gyp
|
||||
@@ -320,6 +320,7 @@
|
||||
'action_name': 'node_mksnapshot',
|
||||
'process_outputs_as_sources': 1,
|
||||
'inputs': [
|
||||
+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
|
||||
'<(node_mksnapshot_exec)',
|
||||
'<(node_snapshot_main)',
|
||||
],
|
||||
@@ -935,6 +935,7 @@
|
||||
'action_name': 'node_js2c',
|
||||
'process_outputs_as_sources': 1,
|
||||
'inputs': [
|
||||
+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
|
||||
'<(node_js2c_exec)',
|
||||
'<@(library_files)',
|
||||
'<@(deps_files)',
|
||||
@@ -944,6 +945,7 @@
|
||||
'<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc',
|
||||
],
|
||||
'action': [
|
||||
+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
|
||||
'<(node_js2c_exec)',
|
||||
'<@(_outputs)',
|
||||
'lib',
|
||||
|
||||
diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
|
||||
index 42e26cd9..bc721991 100644
|
||||
--- a/tools/v8_gypfiles/v8.gyp
|
||||
+++ b/tools/v8_gypfiles/v8.gyp
|
||||
@@ -68,6 +68,7 @@
|
||||
{
|
||||
'action_name': 'run_torque_action',
|
||||
'inputs': [ # Order matters.
|
||||
+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)torque<(EXECUTABLE_SUFFIX)',
|
||||
'<@(torque_files)',
|
||||
],
|
||||
@@ -99,6 +100,7 @@
|
||||
'<@(torque_outputs_inc)',
|
||||
],
|
||||
'action': [
|
||||
+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)torque<(EXECUTABLE_SUFFIX)',
|
||||
'-o', '<(SHARED_INTERMEDIATE_DIR)/torque-generated',
|
||||
'-v8-root', '<(V8_ROOT)',
|
||||
@@ -211,6 +213,7 @@
|
||||
{
|
||||
'action_name': 'generate_bytecode_builtins_list_action',
|
||||
'inputs': [
|
||||
+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)',
|
||||
],
|
||||
'outputs': [
|
||||
@@ -400,6 +403,7 @@
|
||||
],
|
||||
},
|
||||
'inputs': [
|
||||
+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
|
||||
'<(mksnapshot_exec)',
|
||||
],
|
||||
'outputs': [
|
||||
@@ -1539,6 +1543,7 @@
|
||||
{
|
||||
'action_name': 'run_gen-regexp-special-case_action',
|
||||
'inputs': [
|
||||
+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen-regexp-special-case<(EXECUTABLE_SUFFIX)',
|
||||
],
|
||||
'outputs': [
|
||||
--
|
||||
2.34.1
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
./cctest
|
||||
if [ $? = 0 ]; then
|
||||
echo "PASS: nodejs"
|
||||
else
|
||||
echo "FAIL: nodejs"
|
||||
fi
|
||||
Reference in New Issue
Block a user