From f8a274732f3e315121b485e3629d3e14ee737aa9 Mon Sep 17 00:00:00 2001 From: Zoltán Böszörményi Date: Wed, 2 Mar 2022 10:27:36 +0100 Subject: nodejs: Upgrade to 16.14.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove two upstreamed patches. Signed-off-by: Zoltán Böszörményi Signed-off-by: Khem Raj --- .../0001-crypto-fix-build-without-scrypt.patch | 38 ----- .../0005-add-openssl-legacy-provider-option.patch | 165 ------------------ meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb | 185 --------------------- meta-oe/recipes-devtools/nodejs/nodejs_16.14.0.bb | 183 ++++++++++++++++++++ 4 files changed, 183 insertions(+), 388 deletions(-) delete mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-crypto-fix-build-without-scrypt.patch delete mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0005-add-openssl-legacy-provider-option.patch delete mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_16.14.0.bb diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-crypto-fix-build-without-scrypt.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-crypto-fix-build-without-scrypt.patch deleted file mode 100644 index 3a2719af34..0000000000 --- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-crypto-fix-build-without-scrypt.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 048203c97009c907ff3891f6ffa8f375fcf1045c Mon Sep 17 00:00:00 2001 -From: Martin Jansa -Date: Tue, 26 Oct 2021 08:34:39 -0700 -Subject: [PATCH] crypto: fix build without scrypt - -* add missing semicolon to fix: - In file included from ../src/node_crypto.h:47, - from ../src/node.cc:46: - ../src/crypto/crypto_scrypt.h:80:2: - error: expected ';' after struct definition - 80 | } - | ^ - | ; - - and fix typo in the comment - -Signed-off-by: Martin Jansa -Upstream-Status: Submitted [https://github.com/nodejs/node/pull/40613] - ---- - src/crypto/crypto_scrypt.h | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/crypto/crypto_scrypt.h b/src/crypto/crypto_scrypt.h -index 4ca888e31d..3d185637f4 100644 ---- a/src/crypto/crypto_scrypt.h -+++ b/src/crypto/crypto_scrypt.h -@@ -77,8 +77,8 @@ struct ScryptJob { - static void Initialize( - Environment* env, - v8::Local target) {} --} --#endif // !OPENSSL_NO_SCRIPT -+}; -+#endif // !OPENSSL_NO_SCRYPT - - } // namespace crypto - } // namespace node diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0005-add-openssl-legacy-provider-option.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0005-add-openssl-legacy-provider-option.patch deleted file mode 100644 index 2e66a02828..0000000000 --- a/meta-oe/recipes-devtools/nodejs/nodejs/0005-add-openssl-legacy-provider-option.patch +++ /dev/null @@ -1,165 +0,0 @@ -From 86d1c0cc6a5dcf57e413a1cc1c29203e87cf9a14 Mon Sep 17 00:00:00 2001 -From: Daniel Bevenius -Date: Sat, 16 Oct 2021 08:50:16 +0200 -Subject: [PATCH] src: add --openssl-legacy-provider option - -This commit adds an option to Node.js named --openssl-legacy-provider -and if specified will load OpenSSL 3.0 Legacy provider. - -$ ./node --help -... ---openssl-legacy-provider enable OpenSSL 3.0 legacy provider - -Example usage: - -$ ./node --openssl-legacy-provider -p 'crypto.createHash("md4")' -Hash { - _options: undefined, - [Symbol(kHandle)]: Hash {}, - [Symbol(kState)]: { [Symbol(kFinalized)]: false } -} - -Co-authored-by: Richard Lau - -Refs: https://github.com/nodejs/node/issues/40455 ---- - doc/api/cli.md | 10 ++++++++++ - src/crypto/crypto_util.cc | 10 ++++++++++ - src/node_options.cc | 10 ++++++++++ - src/node_options.h | 7 +++++++ - .../test-process-env-allowed-flags-are-documented.js | 5 +++++ - 5 files changed, 42 insertions(+) - -diff --git a/doc/api/cli.md b/doc/api/cli.md -index 74057706bf8d..608b9cdeddf1 100644 ---- a/doc/api/cli.md -+++ b/doc/api/cli.md -@@ -652,6 +652,14 @@ Load an OpenSSL configuration file on startup. Among other uses, this can be - used to enable FIPS-compliant crypto if Node.js is built - against FIPS-enabled OpenSSL. - -+### `--openssl-legacy-provider` -+ -+ -+Enable OpenSSL 3.0 legacy provider. For more information please see -+[providers readme][]. -+ - ### `--pending-deprecation` -