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>
This commit is contained in:
Archana Polampalli authored and Khem Raj committed 2023-01-25 08:57:42 -08:00
1 parent c3e6365aea
commit 75a836190a
5 files changed
+43 -30

No files matched your search

@@ -5,32 +5,24 @@ Subject: [PATCH] Using native binaries
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
---
node.gyp | 2 ++
node.gyp | 1 +
tools/v8_gypfiles/v8.gyp | 5 +++++
2 files changed, 7 insertions(+)
2 files changed, 6 insertions(+)
diff --git a/node.gyp b/node.gyp
index 24505da7ba..7d41bd52db 100644
index e8e1d9f9..e60ccc10 100644
--- a/node.gyp
+++ b/node.gyp
@@ -319,6 +319,7 @@
'action_name': 'run_mkcodecache',
'process_outputs_as_sources': 1,
'inputs': [
+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
'<(mkcodecache_exec)',
],
'outputs': [
@@ -366,6 +367,7 @@
@@ -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)',
],
'outputs': [
diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
index ed042f8829..371b8e02c2 100644
index 42e26cd9..bc721991 100644
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -68,6 +68,7 @@
@@ -57,7 +49,7 @@ index ed042f8829..371b8e02c2 100644
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)',
],
'outputs': [
@@ -395,6 +398,7 @@
@@ -400,6 +403,7 @@
],
},
'inputs': [
@@ -65,7 +57,7 @@ index ed042f8829..371b8e02c2 100644
'<(mksnapshot_exec)',
],
'outputs': [
@@ -1513,6 +1517,7 @@
@@ -1539,6 +1543,7 @@
{
'action_name': 'run_gen-regexp-special-case_action',
'inputs': [