From 2ec1a0503b06cda6f7dfe1ca0fe13d1e479c2a79 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 17 Feb 2023 10:50:42 -0500 Subject: [PATCH] Update to v18.14.1 - https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#18.14.1 - packaging: Drop vestigial package.cfg file. - packaging: Fix spec template - packaging: Make nodejs-sources.sh clean up after itself Signed-off-by: Stephen Gallagher --- 0001-Disable-running-gyp-on-shared-deps.patch | 25 +++++++++++++------ nodejs-sources.sh | 2 ++ nodejs18.spec | 10 ++++---- package.cfg | 2 -- packaging/nodejs.spec.in | 2 +- sources | 6 ++--- 6 files changed, 28 insertions(+), 19 deletions(-) delete mode 100644 package.cfg diff --git a/0001-Disable-running-gyp-on-shared-deps.patch b/0001-Disable-running-gyp-on-shared-deps.patch index 842a5b8..611a745 100644 --- a/0001-Disable-running-gyp-on-shared-deps.patch +++ b/0001-Disable-running-gyp-on-shared-deps.patch @@ -1,16 +1,16 @@ -From f850686d1442e6c4f409f8e24ef461e29710277b Mon Sep 17 00:00:00 2001 +From 0164079f84aae90d0f61d84b90dd6e05bca8890c Mon Sep 17 00:00:00 2001 From: Zuzana Svetlikova Date: Fri, 17 Apr 2020 12:59:44 +0200 Subject: [PATCH] Disable running gyp on shared deps Signed-off-by: rpm-build --- - Makefile | 2 +- + Makefile | 4 ++-- node.gyp | 17 ----------------- - 2 files changed, 1 insertion(+), 18 deletions(-) + 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile -index 05fdc1509844ad616e1ae1490bb0f244627fcda9..46816fe1bc7108bd4f0abd6277b2a4f9b4283f95 100644 +index 94013466239e9c43ddce5cebc7a8d0a4dc56db4f..8577570c95d20dcf8d3dfe5d9fe82c1f67b2d70a 100644 --- a/Makefile +++ b/Makefile @@ -169,7 +169,7 @@ with-code-cache test-code-cache: @@ -19,14 +19,23 @@ index 05fdc1509844ad616e1ae1490bb0f244627fcda9..46816fe1bc7108bd4f0abd6277b2a4f9 out/Makefile: config.gypi common.gypi node.gyp \ - deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \ + deps/llhttp/llhttp.gyp \ + deps/simdutf/simdutf.gyp \ tools/v8_gypfiles/toolchain.gypi tools/v8_gypfiles/features.gypi \ tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp - $(PYTHON) tools/gyp_node.py -f make +@@ -1550,7 +1550,7 @@ CONFLICT_RE=^>>>>>>> [[:xdigit:]]+|^<<<<<<< [[:alpha:]]+ + + # Related CI job: node-test-linter + lint-ci: lint-js-ci lint-cpp lint-py lint-md lint-addon-docs lint-yaml-build lint-yaml +- @if ! ( grep -IEqrs "$(CONFLICT_RE)" --exclude="error-message.js" --exclude="merge-conflict.json" benchmark deps doc lib src test tools ) \ ++ @if ! ( grep -IEqrs "$(CONFLICT_RE)" --exclude="error-message.js" benchmark deps doc lib src test tools ) \ + && ! ( $(FIND) . -maxdepth 1 -type f | xargs grep -IEqs "$(CONFLICT_RE)" ); then \ + exit 0 ; \ + else \ diff --git a/node.gyp b/node.gyp -index 1885a8d1ecb983fe8fd1ce3cc8cd53ee48e241d2..917eeb73d20791625e71b3e921b2fa9a68fd6133 100644 +index cec24aed034362530cfbe833f4f52098f3fbaf2e..13af00f40d006fa75bfc5f656b505d29abf5038e 100644 --- a/node.gyp +++ b/node.gyp -@@ -428,23 +428,6 @@ +@@ -429,23 +429,6 @@ ], }, ], @@ -51,5 +60,5 @@ index 1885a8d1ecb983fe8fd1ce3cc8cd53ee48e241d2..917eeb73d20791625e71b3e921b2fa9a ], }, # node_core_target_name -- -2.39.0 +2.39.1 diff --git a/nodejs-sources.sh b/nodejs-sources.sh index a6da118..a7add5e 100755 --- a/nodejs-sources.sh +++ b/nodejs-sources.sh @@ -159,6 +159,7 @@ rm -f ${LEXER_VERSION}.tar.gz LEXER_WASI_MAJOR=$(grep -oP '(?<=^\W../wasi-sdk-)\d+\.\d+' cjs-module-lexer-${LEXER_VERSION}/Makefile | cut -d'.' -f1) LEXER_WASI_MINOR=$(grep -oP '(?<=^\W../wasi-sdk-)\d+\.\d+' cjs-module-lexer-${LEXER_VERSION}/Makefile | cut -d'.' -f2) wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${LEXER_WASI_MAJOR}/wasi-sdk-${LEXER_WASI_MAJOR}.${LEXER_WASI_MINOR}-linux.tar.gz +rm -rf cjs-module-lexer-${LEXER_VERSION}/ # Download the undici sources UNDICI_VERSION=$(jq -r '.version' node-v${version}/deps/undici/src/package.json) @@ -172,6 +173,7 @@ rm -f v${UNDICI_VERSION}.tar.gz UNDICI_WASI_MAJOR=$(grep -oP '(?<=WASI_SDK_VERSION_MAJOR=).*' undici-${UNDICI_VERSION}/build/Dockerfile) UNDICI_WASI_MINOR=$(grep -oP '(?<=WASI_SDK_VERSION_MINOR=).*' undici-${UNDICI_VERSION}/build/Dockerfile) wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${UNDICI_WASI_MAJOR}/wasi-sdk-${UNDICI_WASI_MAJOR}.${UNDICI_WASI_MINOR}-linux.tar.gz +rm -rf undici-${UNDICI_VERSION}/ ICU_MAJOR=$(jq -r '.[0].url' node-v${version}/tools/icu/current_ver.dep | sed --expression='s/.*release-\([[:digit:]]\+\)-\([[:digit:]]\+\).*/\1/g') ICU_MINOR=$(jq -r '.[0].url' node-v${version}/tools/icu/current_ver.dep | sed --expression='s/.*release-\([[:digit:]]\+\)-\([[:digit:]]\+\).*/\2/g') diff --git a/nodejs18.spec b/nodejs18.spec index 35baad3..81fd5e3 100644 --- a/nodejs18.spec +++ b/nodejs18.spec @@ -44,8 +44,8 @@ # than a Fedora release lifecycle. %global nodejs_epoch 1 %global nodejs_major 18 -%global nodejs_minor 13 -%global nodejs_patch 0 +%global nodejs_minor 14 +%global nodejs_patch 1 %global nodejs_abi %{nodejs_major}.%{nodejs_minor} # nodejs_soversion - from NODE_MODULE_VERSION in src/node_version.h %global nodejs_soversion 108 @@ -111,7 +111,7 @@ # npm - from deps/npm/package.json %global npm_epoch 1 -%global npm_version 8.19.3 +%global npm_version 9.3.1 # In order to avoid needing to keep incrementing the release version for the # main package forever, we will just construct one for npm that is guaranteed @@ -124,7 +124,7 @@ %global npm_obsoletes 1:8.19.2-1.18.12.1.3 # uvwasi - from deps/uvwasi/include/uvwasi.h -%global uvwasi_version 0.0.13 +%global uvwasi_version 0.0.14 # histogram_c - assumed from timestamps %global histogram_version 0.9.7 @@ -158,7 +158,7 @@ Source100: nodejs-sources.sh # These are generated by nodejs-sources.sh Source101: cjs-module-lexer-1.2.2-stripped.tar.gz Source102: wasi-sdk-11.0-linux.tar.gz -Source111: undici-5.13.0-stripped.tar.gz +Source111: undici-5.19.1-stripped.tar.gz Source112: wasi-sdk-14.0-linux.tar.gz # Disable running gyp on bundled deps we don't use diff --git a/package.cfg b/package.cfg deleted file mode 100644 index d8d71e6..0000000 --- a/package.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[koji] -targets = rawhide f37 diff --git a/packaging/nodejs.spec.in b/packaging/nodejs.spec.in index 844609b..c9a4a71 100644 --- a/packaging/nodejs.spec.in +++ b/packaging/nodejs.spec.in @@ -57,7 +57,7 @@ # Determine if this should be the default version for this Fedora release # The default version will own /usr/bin/node and friends -%if 0%{?fedora} == 37 || 0%{?fedora} == 38 +%if 0%{?fedora} == 37 || 0%{?fedora} == 38 || 0%{?rhel} == 10 %global nodejs_default %{nodejs_major} %endif %global nodejs_private_sitelib %{nodejs_sitelib}_%{nodejs_major} diff --git a/sources b/sources index 7b29603..207b3a3 100644 --- a/sources +++ b/sources @@ -1,7 +1,7 @@ -SHA512 (node-v18.13.0-stripped.tar.gz) = 1f634aaf11902cd9462d8192bf538e2269d1935e0a5fc933a6aeef2eec04c8db1577cb2ee7f8bac9592585912164664b9731bfb4f9687cb5d929f92ba3565c0a +SHA512 (node-v18.14.1-stripped.tar.gz) = 89f5a5a582918e4fdfac99b985ce280b9f18618046c89969a3f2466730877c6c96db24bf7ea7415f9dc6a7f695c211a7c64573cbf2871f72bcd0c7ea09ba3e11 SHA512 (icu4c-72_1-data-bin-b.zip) = ed0ce3ebd02f81cca7b3808abc72dc99962eb36bd123ebdf45c578b307b674566491191b6f7d261c679b2b5662b7084c61452b98968b35df3f749d413d5d7663 SHA512 (icu4c-72_1-data-bin-l.zip) = cc9a8cf2a89dacde4fab4a68ca7a7ba1fd106b71ebc23318fb9293ab96001be825bf89b1daf3da02958ba201ca4f714a67a26db3a51dc03653b9970ebdd5ff56 -SHA512 (cjs-module-lexer-1.2.2-stripped.tar.gz) = e49c8f1a206dcf7c7b740e9ca4998e5d9b74d0016a701ddb0ea02e4f21eec763c58bf0c91dea4167401f604721027100d39d7c5c2b85025bb687c83c33c9728f +SHA512 (cjs-module-lexer-1.2.2-stripped.tar.gz) = ba37ac0e46a89efa4a61d10f0e1273d30798931864168b9dd77fbd0aa1d87c468c328c90240e92fffe05b9a4c6920152f39e13d491f685dca32ab7272362cec0 SHA512 (wasi-sdk-11.0-linux.tar.gz) = e3ed4597f7f2290967eef6238e9046f60abbcb8633a4a2a51525d00e7393df8df637a98a5b668217d332dd44fcbf2442ec7efd5e65724e888d90611164451e20 -SHA512 (undici-5.13.0-stripped.tar.gz) = ee10bec72ac61bed8de8fff49fc13a8d4c7796594ef4409c06b28d9331fa9656f282c79e143e43a4534df0409d7354ce09b2c7314664837dacb0a8b1cba80e64 +SHA512 (undici-5.19.1-stripped.tar.gz) = f1409474559fd8a5fa46c203fe6ea3b892220b0bcc144e6707703e088a911c83abe6cb89081d2f8539f9641d8c9cd463a718a0fa4530e347086d1d321028b227 SHA512 (wasi-sdk-14.0-linux.tar.gz) = 288a367e051f5b3f5853de97fabaedd3acf2255819d50c24f48f573897518500ea808342fd9aea832b2a5717089807bf1cbcf6d46b156b4eb60cc6b3c02ee997