mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
nodejs: upgrade 22.16.0 -> 22.18.0
0001-build-remove-redundant-mXX-flags-for-V8.patch - fix offset and fuzz.
0001-deps-disable-io_uring-support-in-libuv.patch - update for new libuv version 1.51.0
https://github.com/nodejs/node/commit/e397980a1a
License-Update: zlib version change from 1.3.0.1 to 1.3.1
https://github.com/nodejs/node/commit/efebf461313db420243717f48aaa0b97d5279580
Changelog: https://github.com/nodejs/node/releases/tag/v22.18.0
Changelog: https://github.com/nodejs/node/releases/tag/v22.17.1
Changelog: https://github.com/nodejs/node/releases/tag/v22.17.0
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
ad6a3009cf
commit
219cc7775f
+3
-3
@@ -25,7 +25,7 @@ Index: node-v22.16.0/tools/v8_gypfiles/toolchain.gypi
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- node-v22.16.0.orig/tools/v8_gypfiles/toolchain.gypi
|
--- node-v22.16.0.orig/tools/v8_gypfiles/toolchain.gypi
|
||||||
+++ node-v22.16.0/tools/v8_gypfiles/toolchain.gypi
|
+++ node-v22.16.0/tools/v8_gypfiles/toolchain.gypi
|
||||||
@@ -97,33 +97,6 @@
|
@@ -103,33 +103,6 @@
|
||||||
# Indicates if gcmole tools are downloaded by a hook.
|
# Indicates if gcmole tools are downloaded by a hook.
|
||||||
'gcmole%': 0,
|
'gcmole%': 0,
|
||||||
},
|
},
|
||||||
@@ -57,8 +57,8 @@ Index: node-v22.16.0/tools/v8_gypfiles/toolchain.gypi
|
|||||||
- }],
|
- }],
|
||||||
- ],
|
- ],
|
||||||
'target_defaults': {
|
'target_defaults': {
|
||||||
'include_dirs': [
|
'cflags!': ['-Wall', '-Wextra'],
|
||||||
'<(V8_ROOT)',
|
'conditions': [
|
||||||
@@ -553,71 +526,6 @@
|
@@ -553,71 +526,6 @@
|
||||||
'-mmmx', # Allows mmintrin.h for MMX intrinsics.
|
'-mmmx', # Allows mmintrin.h for MMX intrinsics.
|
||||||
],
|
],
|
||||||
|
|||||||
+23
-18
@@ -14,15 +14,17 @@ Upstream-Status: Inappropriate [oe specific]
|
|||||||
|
|
||||||
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||||
Signed-off-by: Martin Jansa <martin.jansa@gmail.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 +----------------------------
|
deps/uv/src/unix/linux.c | 29 +----------------------------
|
||||||
1 file changed, 1 insertion(+), 28 deletions(-)
|
1 file changed, 1 insertion(+), 28 deletions(-)
|
||||||
|
|
||||||
diff --git a/deps/uv/src/unix/linux.c b/deps/uv/src/unix/linux.c
|
diff --git a/deps/uv/src/unix/linux.c b/deps/uv/src/unix/linux.c
|
||||||
index 803a9a9d3f0..a4735f56cf0 100644
|
|
||||||
--- a/deps/uv/src/unix/linux.c
|
--- a/deps/uv/src/unix/linux.c
|
||||||
+++ b/deps/uv/src/unix/linux.c
|
+++ b/deps/uv/src/unix/linux.c
|
||||||
@@ -465,34 +465,7 @@ static int uv__use_io_uring(void) {
|
@@ -465,36 +465,7 @@
|
||||||
/* See https://github.com/libuv/libuv/issues/4283. */
|
/* See https://github.com/libuv/libuv/issues/4283. */
|
||||||
return 0; /* Random SIGSEGV in signal handler. */
|
return 0; /* Random SIGSEGV in signal handler. */
|
||||||
#else
|
#else
|
||||||
@@ -31,30 +33,33 @@ index 803a9a9d3f0..a4735f56cf0 100644
|
|||||||
- char* val;
|
- char* val;
|
||||||
- int use;
|
- 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);
|
- use = atomic_load_explicit(&use_io_uring, memory_order_relaxed);
|
||||||
-
|
-
|
||||||
- if (use == 0) {
|
- if (use == 0) {
|
||||||
- use = uv__kernel_version() >=
|
|
||||||
-#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/ */
|
|
||||||
- /* 6.1.51 */ 0x060133
|
|
||||||
-#else
|
|
||||||
- /* Older kernels have a bug where the sqpoll thread uses 100% CPU. */
|
|
||||||
- /* 5.10.186 */ 0x050ABA
|
|
||||||
-#endif
|
|
||||||
- ? 1 : -1;
|
|
||||||
-
|
|
||||||
- /* But users can still enable it if they so desire. */
|
|
||||||
- val = getenv("UV_USE_IO_URING");
|
- val = getenv("UV_USE_IO_URING");
|
||||||
- if (val != NULL)
|
- use = val != NULL && atoi(val) > 0 ? 1 : -1;
|
||||||
- use = atoi(val) ? 1 : -1;
|
|
||||||
-
|
|
||||||
- atomic_store_explicit(&use_io_uring, use, memory_order_relaxed);
|
- atomic_store_explicit(&use_io_uring, use, memory_order_relaxed);
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
- return use > 0;
|
- return use > 0;
|
||||||
+ return 0; /* pseudo doesn't support io_uring https://bugzilla.yoctoproject.org/show_bug.cgi?id=15244 */
|
+return 0; /* pseudo doesn't support io_uring https://bugzilla.yoctoproject.org/show_bug.cgi?id=15244 */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
|
DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
|
||||||
HOMEPAGE = "http://nodejs.org"
|
HOMEPAGE = "http://nodejs.org"
|
||||||
LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0 & Apache-2.0"
|
LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0 & Apache-2.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b4f41dcacabc8f07b9ca7dee2f188a00"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=0c50f40949c25ef1b63d51a6ae6c6cbe"
|
||||||
|
|
||||||
CVE_PRODUCT = "nodejs node.js"
|
CVE_PRODUCT = "nodejs node.js"
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ COMPATIBLE_HOST:riscv32 = "null"
|
|||||||
COMPATIBLE_HOST:powerpc = "null"
|
COMPATIBLE_HOST:powerpc = "null"
|
||||||
COMPATIBLE_HOST:powerpc64le = "null"
|
COMPATIBLE_HOST:powerpc64le = "null"
|
||||||
|
|
||||||
SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
|
SRC_URI = "https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
|
||||||
file://0001-Do-not-use-glob-in-deps.patch \
|
file://0001-Do-not-use-glob-in-deps.patch \
|
||||||
file://0001-Disable-running-gyp-files-for-bundled-deps.patch \
|
file://0001-Disable-running-gyp-files-for-bundled-deps.patch \
|
||||||
file://0004-v8-don-t-override-ARM-CFLAGS.patch \
|
file://0004-v8-don-t-override-ARM-CFLAGS.patch \
|
||||||
@@ -39,7 +39,7 @@ SRC_URI:append:class-target = " \
|
|||||||
SRC_URI:append:toolchain-clang:powerpc64le = " \
|
SRC_URI:append:toolchain-clang:powerpc64le = " \
|
||||||
file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \
|
file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "720894f323e5c1ac24968eb2676660c90730d715cb7f090be71a668662a17c37"
|
SRC_URI[sha256sum] = "120e0f74419097a9fafae1fd80b9de7791a587e6f1c48c22b193239ccd0f7084"
|
||||||
|
|
||||||
S = "${UNPACKDIR}/node-v${PV}"
|
S = "${UNPACKDIR}/node-v${PV}"
|
||||||
|
|
||||||
Reference in New Issue
Block a user