diff options
| -rwxr-xr-x | meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-22.18/oe-npm-cache (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-22.16/oe-npm-cache) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_22.18.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_22.16.bb) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0001-build-remove-redundant-mXX-flags-for-V8.patch | 6 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0001-deps-disable-io_uring-support-in-libuv.patch | 41 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_22.18.0.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb) | 6 |
5 files changed, 29 insertions, 24 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-22.16/oe-npm-cache b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-22.18/oe-npm-cache index eb0f143eae..eb0f143eae 100755 --- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-22.16/oe-npm-cache +++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-22.18/oe-npm-cache | |||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_22.16.bb b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_22.18.bb index 1dcd1f7926..1dcd1f7926 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_22.16.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_22.18.bb | |||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-remove-redundant-mXX-flags-for-V8.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-remove-redundant-mXX-flags-for-V8.patch index 7841a9d7bc..b47aa564cf 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-remove-redundant-mXX-flags-for-V8.patch +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-remove-redundant-mXX-flags-for-V8.patch | |||
| @@ -25,7 +25,7 @@ Index: node-v22.16.0/tools/v8_gypfiles/toolchain.gypi | |||
| 25 | =================================================================== | 25 | =================================================================== |
| 26 | --- node-v22.16.0.orig/tools/v8_gypfiles/toolchain.gypi | 26 | --- node-v22.16.0.orig/tools/v8_gypfiles/toolchain.gypi |
| 27 | +++ node-v22.16.0/tools/v8_gypfiles/toolchain.gypi | 27 | +++ node-v22.16.0/tools/v8_gypfiles/toolchain.gypi |
| 28 | @@ -97,33 +97,6 @@ | 28 | @@ -103,33 +103,6 @@ |
| 29 | # Indicates if gcmole tools are downloaded by a hook. | 29 | # Indicates if gcmole tools are downloaded by a hook. |
| 30 | 'gcmole%': 0, | 30 | 'gcmole%': 0, |
| 31 | }, | 31 | }, |
| @@ -57,8 +57,8 @@ Index: node-v22.16.0/tools/v8_gypfiles/toolchain.gypi | |||
| 57 | - }], | 57 | - }], |
| 58 | - ], | 58 | - ], |
| 59 | 'target_defaults': { | 59 | 'target_defaults': { |
| 60 | 'include_dirs': [ | 60 | 'cflags!': ['-Wall', '-Wextra'], |
| 61 | '<(V8_ROOT)', | 61 | 'conditions': [ |
| 62 | @@ -553,71 +526,6 @@ | 62 | @@ -553,71 +526,6 @@ |
| 63 | '-mmmx', # Allows mmintrin.h for MMX intrinsics. | 63 | '-mmmx', # Allows mmintrin.h for MMX intrinsics. |
| 64 | ], | 64 | ], |
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-deps-disable-io_uring-support-in-libuv.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-deps-disable-io_uring-support-in-libuv.patch index 01ae50cdc4..50d63cf78c 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-deps-disable-io_uring-support-in-libuv.patch +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-deps-disable-io_uring-support-in-libuv.patch | |||
| @@ -14,15 +14,17 @@ Upstream-Status: Inappropriate [oe specific] | |||
| 14 | 14 | ||
| 15 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 15 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
| 16 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | 16 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> |
| 17 | |||
| 18 | Updated by Jason Schonberg <schonm@gamil.com> August 1, 2025 for nodejs 22.18.0 | ||
| 19 | which uses libuv 1.51.0 | ||
| 17 | --- | 20 | --- |
| 18 | deps/uv/src/unix/linux.c | 29 +---------------------------- | 21 | deps/uv/src/unix/linux.c | 29 +---------------------------- |
| 19 | 1 file changed, 1 insertion(+), 28 deletions(-) | 22 | 1 file changed, 1 insertion(+), 28 deletions(-) |
| 20 | 23 | ||
| 21 | diff --git a/deps/uv/src/unix/linux.c b/deps/uv/src/unix/linux.c | 24 | diff --git a/deps/uv/src/unix/linux.c b/deps/uv/src/unix/linux.c |
| 22 | index 803a9a9d3f0..a4735f56cf0 100644 | ||
| 23 | --- a/deps/uv/src/unix/linux.c | 25 | --- a/deps/uv/src/unix/linux.c |
| 24 | +++ b/deps/uv/src/unix/linux.c | 26 | +++ b/deps/uv/src/unix/linux.c |
| 25 | @@ -465,34 +465,7 @@ static int uv__use_io_uring(void) { | 27 | @@ -465,36 +465,7 @@ |
| 26 | /* See https://github.com/libuv/libuv/issues/4283. */ | 28 | /* See https://github.com/libuv/libuv/issues/4283. */ |
| 27 | return 0; /* Random SIGSEGV in signal handler. */ | 29 | return 0; /* Random SIGSEGV in signal handler. */ |
| 28 | #else | 30 | #else |
| @@ -31,30 +33,33 @@ index 803a9a9d3f0..a4735f56cf0 100644 | |||
| 31 | - char* val; | 33 | - char* val; |
| 32 | - int use; | 34 | - int use; |
| 33 | - | 35 | - |
| 34 | - use = atomic_load_explicit(&use_io_uring, memory_order_relaxed); | ||
| 35 | - | ||
| 36 | - if (use == 0) { | ||
| 37 | - use = uv__kernel_version() >= | ||
| 38 | -#if defined(__hppa__) | 36 | -#if defined(__hppa__) |
| 39 | - /* io_uring first supported on parisc in 6.1, functional in .51 */ | 37 | - /* io_uring first supported on parisc in 6.1, functional in .51 |
| 40 | - /* https://lore.kernel.org/all/cb912694-b1fe-dbb0-4d8c-d608f3526905@gmx.de/ */ | 38 | - * https://lore.kernel.org/all/cb912694-b1fe-dbb0-4d8c-d608f3526905@gmx.de/ |
| 41 | - /* 6.1.51 */ 0x060133 | 39 | - */ |
| 42 | -#else | 40 | - if (uv__kernel_version() < /*6.1.51*/0x060133) |
| 43 | - /* Older kernels have a bug where the sqpoll thread uses 100% CPU. */ | 41 | - return 0; |
| 44 | - /* 5.10.186 */ 0x050ABA | ||
| 45 | -#endif | 42 | -#endif |
| 46 | - ? 1 : -1; | ||
| 47 | - | 43 | - |
| 48 | - /* But users can still enable it if they so desire. */ | 44 | - /* SQPOLL is all kinds of buggy but epoll batching should work fine. */ |
| 49 | - val = getenv("UV_USE_IO_URING"); | 45 | - if (0 == (flags & UV__IORING_SETUP_SQPOLL)) |
| 50 | - if (val != NULL) | 46 | - return 1; |
| 51 | - use = atoi(val) ? 1 : -1; | 47 | - |
| 48 | - /* Older kernels have a bug where the sqpoll thread uses 100% CPU. */ | ||
| 49 | - if (uv__kernel_version() < /*5.10.186*/0x050ABA) | ||
| 50 | - return 0; | ||
| 52 | - | 51 | - |
| 52 | - use = atomic_load_explicit(&use_io_uring, memory_order_relaxed); | ||
| 53 | - | ||
| 54 | - if (use == 0) { | ||
| 55 | - val = getenv("UV_USE_IO_URING"); | ||
| 56 | - use = val != NULL && atoi(val) > 0 ? 1 : -1; | ||
| 53 | - atomic_store_explicit(&use_io_uring, use, memory_order_relaxed); | 57 | - atomic_store_explicit(&use_io_uring, use, memory_order_relaxed); |
| 54 | - } | 58 | - } |
| 55 | - | 59 | - |
| 56 | - return use > 0; | 60 | - return use > 0; |
| 57 | + return 0; /* pseudo doesn't support io_uring https://bugzilla.yoctoproject.org/show_bug.cgi?id=15244 */ | 61 | +return 0; /* pseudo doesn't support io_uring https://bugzilla.yoctoproject.org/show_bug.cgi?id=15244 */ |
| 58 | #endif | 62 | #endif |
| 59 | } | 63 | } |
| 60 | 64 | ||
| 65 | |||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb b/meta-oe/recipes-devtools/nodejs/nodejs_22.18.0.bb index 0663e8c52e..d2e7874a9f 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_22.18.0.bb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" | 1 | DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" |
| 2 | HOMEPAGE = "http://nodejs.org" | 2 | HOMEPAGE = "http://nodejs.org" |
| 3 | LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0 & Apache-2.0" | 3 | LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0 & Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b4f41dcacabc8f07b9ca7dee2f188a00" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=0c50f40949c25ef1b63d51a6ae6c6cbe" |
| 5 | 5 | ||
| 6 | CVE_PRODUCT = "nodejs node.js" | 6 | CVE_PRODUCT = "nodejs node.js" |
| 7 | 7 | ||
| @@ -20,7 +20,7 @@ COMPATIBLE_HOST:riscv32 = "null" | |||
| 20 | COMPATIBLE_HOST:powerpc = "null" | 20 | COMPATIBLE_HOST:powerpc = "null" |
| 21 | COMPATIBLE_HOST:powerpc64le = "null" | 21 | COMPATIBLE_HOST:powerpc64le = "null" |
| 22 | 22 | ||
| 23 | SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ | 23 | SRC_URI = "https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ |
| 24 | file://0001-Do-not-use-glob-in-deps.patch \ | 24 | file://0001-Do-not-use-glob-in-deps.patch \ |
| 25 | file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ | 25 | file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ |
| 26 | file://0004-v8-don-t-override-ARM-CFLAGS.patch \ | 26 | file://0004-v8-don-t-override-ARM-CFLAGS.patch \ |
| @@ -39,7 +39,7 @@ SRC_URI:append:class-target = " \ | |||
| 39 | SRC_URI:append:toolchain-clang:powerpc64le = " \ | 39 | SRC_URI:append:toolchain-clang:powerpc64le = " \ |
| 40 | file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \ | 40 | file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \ |
| 41 | " | 41 | " |
| 42 | SRC_URI[sha256sum] = "720894f323e5c1ac24968eb2676660c90730d715cb7f090be71a668662a17c37" | 42 | SRC_URI[sha256sum] = "120e0f74419097a9fafae1fd80b9de7791a587e6f1c48c22b193239ccd0f7084" |
| 43 | 43 | ||
| 44 | S = "${UNPACKDIR}/node-v${PV}" | 44 | S = "${UNPACKDIR}/node-v${PV}" |
| 45 | 45 | ||
