diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2023-01-24 15:52:39 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-01-25 08:57:42 -0800 |
| commit | 75a836190adb7822da1ae71de076ddeb91b60db9 (patch) | |
| tree | 1c8ead33ca49d987538431e3a8fa0d8267bde11b | |
| parent | c3e6365aead260638f21231782209aea41509c00 (diff) | |
| download | meta-openembedded-75a836190adb7822da1ae71de076ddeb91b60db9.tar.gz | |
Nodejs: Upgrade to 18.12.1
Node-18 is the current LTS release, node-19 is a development release and
node-20 is scheduled to be released until 2023-04-18 which is too late for YP-4.2
https://github.com/nodejs/release
* Refresh below two patches
- 0001-Using-native-binaries.patch
- 0001-liftoff-Correct-function-signatures.patch
* Copy openssl.cnf from sysroot_native to nodejs-openssl.cnf
otherwise do_compile failed:
make[1]: *** No rule to make target '../deps/openssl/nodejs-openssl.cnf',
needed by 'Release/obj.target/deps/openssl/openssl.cnf'. Stop.
* Add initial ptest support using ctest only, it covered 20% of the nodejs tests.
There are some more tests exist to add but will require additional work.
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rwxr-xr-x | meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-18.12/oe-npm-cache (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-16.18/oe-npm-cache) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_18.12.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_16.18.bb) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch | 24 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch | 32 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_18.12.1.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb) | 15 |
5 files changed, 42 insertions, 29 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-16.18/oe-npm-cache b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-18.12/oe-npm-cache index f596207648..f596207648 100755 --- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-16.18/oe-npm-cache +++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-18.12/oe-npm-cache | |||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_16.18.bb b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_18.12.bb index a61dd5018f..a61dd5018f 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_16.18.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_18.12.bb | |||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch index 445aaf8398..feafe38fdb 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch | |||
| @@ -5,32 +5,24 @@ Subject: [PATCH] Using native binaries | |||
| 5 | 5 | ||
| 6 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | 6 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> |
| 7 | --- | 7 | --- |
| 8 | node.gyp | 2 ++ | 8 | node.gyp | 1 + |
| 9 | tools/v8_gypfiles/v8.gyp | 5 +++++ | 9 | tools/v8_gypfiles/v8.gyp | 5 +++++ |
| 10 | 2 files changed, 7 insertions(+) | 10 | 2 files changed, 6 insertions(+) |
| 11 | 11 | ||
| 12 | diff --git a/node.gyp b/node.gyp | 12 | diff --git a/node.gyp b/node.gyp |
| 13 | index 24505da7ba..7d41bd52db 100644 | 13 | index e8e1d9f9..e60ccc10 100644 |
| 14 | --- a/node.gyp | 14 | --- a/node.gyp |
| 15 | +++ b/node.gyp | 15 | +++ b/node.gyp |
| 16 | @@ -319,6 +319,7 @@ | 16 | @@ -320,6 +320,7 @@ |
| 17 | 'action_name': 'run_mkcodecache', | ||
| 18 | 'process_outputs_as_sources': 1, | ||
| 19 | 'inputs': [ | ||
| 20 | + '<(PRODUCT_DIR)/v8-qemu-wrapper.sh', | ||
| 21 | '<(mkcodecache_exec)', | ||
| 22 | ], | ||
| 23 | 'outputs': [ | ||
| 24 | @@ -366,6 +367,7 @@ | ||
| 25 | 'action_name': 'node_mksnapshot', | 17 | 'action_name': 'node_mksnapshot', |
| 26 | 'process_outputs_as_sources': 1, | 18 | 'process_outputs_as_sources': 1, |
| 27 | 'inputs': [ | 19 | 'inputs': [ |
| 28 | + '<(PRODUCT_DIR)/v8-qemu-wrapper.sh', | 20 | + '<(PRODUCT_DIR)/v8-qemu-wrapper.sh', |
| 29 | '<(node_mksnapshot_exec)', | 21 | '<(node_mksnapshot_exec)', |
| 22 | '<(node_snapshot_main)', | ||
| 30 | ], | 23 | ], |
| 31 | 'outputs': [ | ||
| 32 | diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp | 24 | diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp |
| 33 | index ed042f8829..371b8e02c2 100644 | 25 | index 42e26cd9..bc721991 100644 |
| 34 | --- a/tools/v8_gypfiles/v8.gyp | 26 | --- a/tools/v8_gypfiles/v8.gyp |
| 35 | +++ b/tools/v8_gypfiles/v8.gyp | 27 | +++ b/tools/v8_gypfiles/v8.gyp |
| 36 | @@ -68,6 +68,7 @@ | 28 | @@ -68,6 +68,7 @@ |
| @@ -57,7 +49,7 @@ index ed042f8829..371b8e02c2 100644 | |||
| 57 | '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)', | 49 | '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)', |
| 58 | ], | 50 | ], |
| 59 | 'outputs': [ | 51 | 'outputs': [ |
| 60 | @@ -395,6 +398,7 @@ | 52 | @@ -400,6 +403,7 @@ |
| 61 | ], | 53 | ], |
| 62 | }, | 54 | }, |
| 63 | 'inputs': [ | 55 | 'inputs': [ |
| @@ -65,7 +57,7 @@ index ed042f8829..371b8e02c2 100644 | |||
| 65 | '<(mksnapshot_exec)', | 57 | '<(mksnapshot_exec)', |
| 66 | ], | 58 | ], |
| 67 | 'outputs': [ | 59 | 'outputs': [ |
| 68 | @@ -1513,6 +1517,7 @@ | 60 | @@ -1539,6 +1543,7 @@ |
| 69 | { | 61 | { |
| 70 | 'action_name': 'run_gen-regexp-special-case_action', | 62 | 'action_name': 'run_gen-regexp-special-case_action', |
| 71 | 'inputs': [ | 63 | 'inputs': [ |
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch index d7005ae972..c9a522d2e2 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch | |||
| @@ -9,14 +9,20 @@ Fixes builds on mips where clang reports an error | |||
| 9 | ^~~~ | 9 | ^~~~ |
| 10 | 10 | ||
| 11 | Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/v8/v8/+/3235674] | 11 | Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/v8/v8/+/3235674] |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | |
| 13 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 13 | --- | 14 | --- |
| 14 | src/wasm/baseline/liftoff-assembler.h | 6 +++--- | 15 | deps/v8/src/wasm/baseline/liftoff-assembler.h | 6 +++--- |
| 15 | 1 file changed, 3 insertions(+), 3 deletions(-) | 16 | deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h | 2 +- |
| 17 | deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 2 +- | ||
| 18 | .../src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h | 2 +- | ||
| 19 | 4 files changed, 6 insertions(+), 6 deletions(-) | ||
| 16 | 20 | ||
| 21 | diff --git a/deps/v8/src/wasm/baseline/liftoff-assembler.h b/deps/v8/src/wasm/baseline/liftoff-assembler.h | ||
| 22 | index 22c7f73a..db4cb168 100644 | ||
| 17 | --- a/deps/v8/src/wasm/baseline/liftoff-assembler.h | 23 | --- a/deps/v8/src/wasm/baseline/liftoff-assembler.h |
| 18 | +++ b/deps/v8/src/wasm/baseline/liftoff-assembler.h | 24 | +++ b/deps/v8/src/wasm/baseline/liftoff-assembler.h |
| 19 | @@ -613,7 +613,7 @@ class LiftoffAssembler : public TurboAss | 25 | @@ -646,7 +646,7 @@ class LiftoffAssembler : public TurboAssembler { |
| 20 | void FinishCall(const ValueKindSig*, compiler::CallDescriptor*); | 26 | void FinishCall(const ValueKindSig*, compiler::CallDescriptor*); |
| 21 | 27 | ||
| 22 | // Move {src} into {dst}. {src} and {dst} must be different. | 28 | // Move {src} into {dst}. {src} and {dst} must be different. |
| @@ -25,7 +31,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 25 | 31 | ||
| 26 | // Parallel register move: For a list of tuples <dst, src, kind>, move the | 32 | // Parallel register move: For a list of tuples <dst, src, kind>, move the |
| 27 | // {src} register of kind {kind} into {dst}. If {src} equals {dst}, ignore | 33 | // {src} register of kind {kind} into {dst}. If {src} equals {dst}, ignore |
| 28 | @@ -759,8 +759,8 @@ class LiftoffAssembler : public TurboAss | 34 | @@ -795,8 +795,8 @@ class LiftoffAssembler : public TurboAssembler { |
| 29 | inline void MoveStackValue(uint32_t dst_offset, uint32_t src_offset, | 35 | inline void MoveStackValue(uint32_t dst_offset, uint32_t src_offset, |
| 30 | ValueKind); | 36 | ValueKind); |
| 31 | 37 | ||
| @@ -36,10 +42,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 36 | 42 | ||
| 37 | inline void Spill(int offset, LiftoffRegister, ValueKind); | 43 | inline void Spill(int offset, LiftoffRegister, ValueKind); |
| 38 | inline void Spill(int offset, WasmValue); | 44 | inline void Spill(int offset, WasmValue); |
| 45 | diff --git a/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h b/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h | ||
| 46 | index c76fd2f4..0fffe231 100644 | ||
| 39 | --- a/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h | 47 | --- a/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h |
| 40 | +++ b/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h | 48 | +++ b/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h |
| 41 | @@ -658,7 +658,7 @@ void LiftoffAssembler::Store(Register ds | 49 | @@ -661,7 +661,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, |
| 42 | pinned = pinned | LiftoffRegList::ForRegs(dst_op.rm(), src); | 50 | pinned = pinned | LiftoffRegList{dst_op.rm(), src}; |
| 43 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); | 51 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); |
| 44 | // Save original value. | 52 | // Save original value. |
| 45 | - Move(tmp, src, type.value_type()); | 53 | - Move(tmp, src, type.value_type()); |
| @@ -47,9 +55,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 47 | 55 | ||
| 48 | src = tmp; | 56 | src = tmp; |
| 49 | pinned.set(tmp); | 57 | pinned.set(tmp); |
| 58 | diff --git a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | ||
| 59 | index 36413545..48207337 100644 | ||
| 50 | --- a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 60 | --- a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h |
| 51 | +++ b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 61 | +++ b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h |
| 52 | @@ -596,7 +596,7 @@ void LiftoffAssembler::Store(Register ds | 62 | @@ -593,7 +593,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, |
| 53 | pinned.set(dst_op.rm()); | 63 | pinned.set(dst_op.rm()); |
| 54 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); | 64 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); |
| 55 | // Save original value. | 65 | // Save original value. |
| @@ -58,9 +68,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 58 | 68 | ||
| 59 | src = tmp; | 69 | src = tmp; |
| 60 | pinned.set(tmp); | 70 | pinned.set(tmp); |
| 71 | diff --git a/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h b/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h | ||
| 72 | index 642a7d2a..56ffcc2a 100644 | ||
| 61 | --- a/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h | 73 | --- a/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h |
| 62 | +++ b/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h | 74 | +++ b/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h |
| 63 | @@ -580,7 +580,7 @@ void LiftoffAssembler::Store(Register ds | 75 | @@ -589,7 +589,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, |
| 64 | pinned.set(dst_op.rm()); | 76 | pinned.set(dst_op.rm()); |
| 65 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); | 77 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); |
| 66 | // Save original value. | 78 | // Save original value. |
| @@ -69,3 +81,5 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 69 | 81 | ||
| 70 | src = tmp; | 82 | src = tmp; |
| 71 | pinned.set(tmp); | 83 | pinned.set(tmp); |
| 84 | -- | ||
| 85 | 2.34.1 | ||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_18.12.1.bb index a67948320d..e96913e563 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_18.12.1.bb | |||
| @@ -1,13 +1,13 @@ | |||
| 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" | 3 | LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6e54852cd826c41e80c6d80f6db00a85" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=dfd7ae796baf5326016a3865ee1dc632" |
| 5 | 5 | ||
| 6 | DEPENDS = "openssl" | 6 | DEPENDS = "openssl" |
| 7 | DEPENDS:append:class-target = " qemu-native" | 7 | DEPENDS:append:class-target = " qemu-native" |
| 8 | DEPENDS:append:class-native = " c-ares-native" | 8 | DEPENDS:append:class-native = " c-ares-native" |
| 9 | 9 | ||
| 10 | inherit pkgconfig python3native qemu | 10 | inherit pkgconfig python3native qemu ptest |
| 11 | 11 | ||
| 12 | COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*" | 12 | COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*" |
| 13 | COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*" | 13 | COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*" |
| @@ -26,6 +26,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ | |||
| 26 | file://0001-liftoff-Correct-function-signatures.patch \ | 26 | file://0001-liftoff-Correct-function-signatures.patch \ |
| 27 | file://0001-mips-Use-32bit-cast-for-operand-on-mips32.patch \ | 27 | file://0001-mips-Use-32bit-cast-for-operand-on-mips32.patch \ |
| 28 | " | 28 | " |
| 29 | |||
| 29 | SRC_URI:append:class-target = " \ | 30 | SRC_URI:append:class-target = " \ |
| 30 | file://0001-Using-native-binaries.patch \ | 31 | file://0001-Using-native-binaries.patch \ |
| 31 | " | 32 | " |
| @@ -35,7 +36,7 @@ SRC_URI:append:toolchain-clang:x86 = " \ | |||
| 35 | SRC_URI:append:toolchain-clang:powerpc64le = " \ | 36 | SRC_URI:append:toolchain-clang:powerpc64le = " \ |
| 36 | file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \ | 37 | file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \ |
| 37 | " | 38 | " |
| 38 | SRC_URI[sha256sum] = "1f8051a88f86f42064f4415fe7a980e59b0a502ecc8def583f6303bc4d445238" | 39 | SRC_URI[sha256sum] = "4fa406451bc52659a290e52cfdb2162a760bd549da4b8bbebe6a29f296d938df" |
| 39 | 40 | ||
| 40 | S = "${WORKDIR}/node-v${PV}" | 41 | S = "${WORKDIR}/node-v${PV}" |
| 41 | 42 | ||
| @@ -151,6 +152,7 @@ do_configure () { | |||
| 151 | 152 | ||
| 152 | do_compile () { | 153 | do_compile () { |
| 153 | export LD="${CXX}" | 154 | export LD="${CXX}" |
| 155 | install -D ${RECIPE_SYSROOT_NATIVE}/etc/ssl/openssl.cnf ${B}/deps/openssl/nodejs-openssl.cnf | ||
| 154 | install -D ${B}/v8-qemu-wrapper.sh ${B}/out/Release/v8-qemu-wrapper.sh | 156 | install -D ${B}/v8-qemu-wrapper.sh ${B}/out/Release/v8-qemu-wrapper.sh |
| 155 | oe_runmake BUILDTYPE=Release | 157 | oe_runmake BUILDTYPE=Release |
| 156 | } | 158 | } |
| @@ -159,10 +161,15 @@ do_install () { | |||
| 159 | oe_runmake install DESTDIR=${D} | 161 | oe_runmake install DESTDIR=${D} |
| 160 | } | 162 | } |
| 161 | 163 | ||
| 164 | do_install_ptest () { | ||
| 165 | cp -r ${B}/out/Release/cctest ${D}${PTEST_PATH}/ | ||
| 166 | cp -r ${B}/test ${D}${PTEST_PATH} | ||
| 167 | chown -R root:root ${D}${PTEST_PATH} | ||
| 168 | } | ||
| 169 | |||
| 162 | BINARIES = " \ | 170 | BINARIES = " \ |
| 163 | bytecode_builtins_list_generator \ | 171 | bytecode_builtins_list_generator \ |
| 164 | ${@bb.utils.contains('PACKAGECONFIG', 'icu', 'gen-regexp-special-case', '', d)} \ | 172 | ${@bb.utils.contains('PACKAGECONFIG', 'icu', 'gen-regexp-special-case', '', d)} \ |
| 165 | mkcodecache \ | ||
| 166 | node_mksnapshot \ | 173 | node_mksnapshot \ |
| 167 | torque \ | 174 | torque \ |
| 168 | " | 175 | " |
