From 2ddfba9856578ff2213cc03da08ce5908a11370e Mon Sep 17 00:00:00 2001 From: tjuhasz Date: Wed, 12 Nov 2025 11:55:13 +0100 Subject: [PATCH 1/5] Rebuild for nodejs-packaging Recently, Node.js changed the way node modules are installed to allow for better parallel functionality and easier unbundling of certain parts of Node.js. Previously, Node.js was using a symlink, %{_libdir}/node_modules, which pointed to a versioned path, e.g., %{_libdir}/node_modules_22. This has changed to using a global %{_libdir}/node_modules static shared folder for generic modules and %{_libdir}/node_modules_XX for version-specific modules. This change is better described in the Fedora change proposal wiki: https://fedoraproject.org/wiki/Changes/NodejsNodeModulesPath. This also needed to be reflected in nodejs-packaging macros, which forces a rebuild of dependent packages. From ab24531a352b1ad6fe362e0ef98ed48deede0aca Mon Sep 17 00:00:00 2001 From: tjuhasz Date: Wed, 12 Nov 2025 12:57:42 +0100 Subject: [PATCH 2/5] Update to version 24.11.1 (rhbz#2414318) --- nodejs24.spec | 42 +++++++++++++++++++++--------------------- sources | 2 +- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/nodejs24.spec b/nodejs24.spec index 9ca5d38..5ec0403 100644 --- a/nodejs24.spec +++ b/nodejs24.spec @@ -3,7 +3,7 @@ %{load:%{_sourcedir}/nodejs.srpm.macros} # === Versions of any software shipped in the main nodejs tarball -%nodejs_define_version node 1:24.11.0-%{autorelease} -p +%nodejs_define_version node 1:24.11.1-%{autorelease} -p # Special release for sub-packages with their own version string. # The complex release string ensures that the subpackage release is always increasing, @@ -15,44 +15,44 @@ # expect anything between the markers to be overwritten on any update. # BEGIN automatic-version-macros # DO NOT REMOVE THIS LINE! -# Version from node-v24.11.0/src/node_version.h +# Version from node-v24.11.1/src/node_version.h %global node_soversion 137 -# Version from node-v24.11.0/deps/ada/ada.h +# Version from node-v24.11.1/deps/ada/ada.h %nodejs_define_version ada 3.3.0 -# Version from node-v24.11.0/deps/brotli/c/common/version.h +# Version from node-v24.11.1/deps/brotli/c/common/version.h %nodejs_define_version brotli 1.1.0 -# Version from node-v24.11.0/deps/cares/include/ares_version.h +# Version from node-v24.11.1/deps/cares/include/ares_version.h %nodejs_define_version c_ares 1.34.5 -# Version from node-v24.11.0/deps/histogram/include/hdr/hdr_histogram_version.h +# Version from node-v24.11.1/deps/histogram/include/hdr/hdr_histogram_version.h %nodejs_define_version histogram 0.11.9 -# Version from node-v24.11.0/tools/icu/current_ver.dep +# Version from node-v24.11.1/tools/icu/current_ver.dep %nodejs_define_version icu 77.1 -p -# Version from node-v24.11.0/deps/uv/include/uv/version.h +# Version from node-v24.11.1/deps/uv/include/uv/version.h %nodejs_define_version libuv 1.51.0 -# Version from node-v24.11.0/deps/llhttp/include/llhttp.h +# Version from node-v24.11.1/deps/llhttp/include/llhttp.h %nodejs_define_version llhttp 9.3.0 -# Version from node-v24.11.0/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h +# Version from node-v24.11.1/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h %nodejs_define_version nghttp2 1.66.0 -# Version from node-v24.11.0/deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h +# Version from node-v24.11.1/deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h %nodejs_define_version nghttp3 1.6.0 -# Version from node-v24.11.0/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h +# Version from node-v24.11.1/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h %nodejs_define_version ngtcp2 1.11.0 -# Version from node-v24.11.0/deps/cjs-module-lexer/src/package.json +# Version from node-v24.11.1/deps/cjs-module-lexer/src/package.json %nodejs_define_version nodejs-cjs-module-lexer 2.1.0 -# Version from node-v24.11.0/lib/punycode.js +# Version from node-v24.11.1/lib/punycode.js %nodejs_define_version nodejs-punycode 2.1.0 -# Version from node-v24.11.0/deps/undici/src/package.json +# Version from node-v24.11.1/deps/undici/src/package.json %nodejs_define_version nodejs-undici 7.16.0 -# Version from node-v24.11.0/deps/npm/package.json -%nodejs_define_version npm 1:11.6.1-%{nodejs_subpackage_release} -# Version from node-v24.11.0/deps/sqlite/sqlite3.h +# Version from node-v24.11.1/deps/npm/package.json +%nodejs_define_version npm 1:11.6.2-%{nodejs_subpackage_release} +# Version from node-v24.11.1/deps/sqlite/sqlite3.h %nodejs_define_version sqlite 3.50.4 -# Version from node-v24.11.0/deps/uvwasi/include/uvwasi.h +# Version from node-v24.11.1/deps/uvwasi/include/uvwasi.h %nodejs_define_version uvwasi 0.0.23 -# Version from node-v24.11.0/deps/v8/include/v8-version.h +# Version from node-v24.11.1/deps/v8/include/v8-version.h %nodejs_define_version v8 3:13.6.233.10-%{nodejs_subpackage_release} -p -# Version from node-v24.11.0/deps/zlib/zlib.h +# Version from node-v24.11.1/deps/zlib/zlib.h %nodejs_define_version zlib 1.3.1 # END automatic-version-macros # DO NOT REMOVE THIS LINE! diff --git a/sources b/sources index c322219..f5407c1 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -SHA512 (node-v24.11.0-stripped.tar.gz) = 0c96f321a97b430fb58163c7bf45792aed703762b0f628e1c268122143d96348bbec4bb7ea71f43cb81c25980abd99931ffdc896263bd410f09f14d57c1f9336 +SHA512 (node-v24.11.1-stripped.tar.gz) = a39d6bcfbe2e255fe8989c7064ad84cd0c8d914b4dfdbc4299b6b47b71ba9fd6f6408643eba2870b5d415c507858d3b63302e482d33974faed8938d3c8dcae38 SHA512 (icu4c-77_1-data-bin-b.zip) = 93b4c8228a059546e7c3e337f1f837db255c0046c15f50a31a7bd20daf361174edab05b01faaac1dd4f515ca3c1f1d7fb0f61e4177eb5631833ad1450e252c4e SHA512 (icu4c-77_1-data-bin-l.zip) = 3de15bb5925956b8e51dc6724c2114a1009ec471a2241b09ae09127f1760f44d02cc29cfbeed6cbaac6ee880553ac8395c61c6043c00ddba3277233e19e6490e SHA512 (packaging-scripts.tar.gz) = bd466853842a59205ef4017cd3a989c3412ed60e10b04569c041e25683030c218781ef98002ac0ecc62a2ed33040bdef9e622aaadbfca54a10bb4cffc8f3e3fd From b46e53504be0d66ec77411f0a62f0b1ba55fe368 Mon Sep 17 00:00:00 2001 From: tjuhasz Date: Tue, 2 Dec 2025 09:17:41 +0100 Subject: [PATCH 3/5] Fix name collision of the COMPRESS variable in spec file. Fix name collision created by a change in the redhat-rpm-config (https://src.fedoraproject.org/rpms/redhat-rpm-config/c/1c4cf98ca7e0d4188565ae192143146ff8775409\?branch\=rawhide), by removing the COMPRESS variable and replacing it with the newly provided macro `%{_man_info_compress}`, provided by the same redhat-rpm-config change. Without this change build fails with: `/var/tmp/rpm-tmp.G6OCdP: line 253: COMPRESS: readonly variable` --- nodejs24.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nodejs24.spec b/nodejs24.spec index 5ec0403..5eb0446 100644 --- a/nodejs24.spec +++ b/nodejs24.spec @@ -494,8 +494,7 @@ mkdir -p "${VERSIONED_MANDIR}" mv -t "${VERSIONED_MANDIR}" "${RPM_BUILD_ROOT}%{_mandir}"/man? # - compress the man-pages manually so that rpm will (re-)create valid symlinks # FIXME: This should probably be replaced with ading /usr/share/node-*/man dir to /usr/lib/rpm/brp-compress -readonly COMPRESS=${COMPRESS:-gzip -9 -n} -find "${VERSIONED_MANDIR}" -type f -name '*.[123456789]' -execdir ${COMPRESS} '{}' + +find "${VERSIONED_MANDIR}" -type f -name '*.[123456789]' -execdir %{_man_info_compress} '{}' + # – update npm man symlink ln -srfn "${VERSIONED_MANDIR}" "${NPM_DIR}/man" # - create symlinks for the versioned binaries From 2a7983550d0da425407c7db43b492fc0da5cc600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Mon, 12 Jan 2026 15:10:40 +0100 Subject: [PATCH 4/5] Run version checks only on bundled components --- nodejs24.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nodejs24.spec b/nodejs24.spec index 5eb0446..78eb6e9 100644 --- a/nodejs24.spec +++ b/nodejs24.spec @@ -521,8 +521,12 @@ npm() { # === Sanity check for important versions node -e 'require("assert").equal(process.versions.node, "%{node_version}")' node -e 'require("assert").equal(process.versions.v8.replace(/-node\.\d+$/, ""), "%{v8_version}")' +%if %{with bundled_c_ares} node -e 'require("assert").equal(process.versions.ares.replace(/-DEV$/, ""), "%{c_ares_version}")' +%endif +%if %{with bundled_punycode} node --no-deprecation -e 'require("assert").equal(require("punycode").version, "%{nodejs_punycode_version}")' +%endif npm version --json | jq --exit-status '.npm == "%{npm_version}"' From 3efa1d6f4f18418371ca810ab3ae1bbd480ecdaf Mon Sep 17 00:00:00 2001 From: tjuhasz Date: Tue, 13 Jan 2026 15:29:47 +0100 Subject: [PATCH 5/5] Update to version 24.13.0 (rhbz#2421027) --- nodejs24.spec | 48 ++++++++++++++++++++++++------------------------ sources | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/nodejs24.spec b/nodejs24.spec index 78eb6e9..8bf0681 100644 --- a/nodejs24.spec +++ b/nodejs24.spec @@ -3,7 +3,7 @@ %{load:%{_sourcedir}/nodejs.srpm.macros} # === Versions of any software shipped in the main nodejs tarball -%nodejs_define_version node 1:24.11.1-%{autorelease} -p +%nodejs_define_version node 1:24.13.0-%{autorelease} -p # Special release for sub-packages with their own version string. # The complex release string ensures that the subpackage release is always increasing, @@ -15,44 +15,44 @@ # expect anything between the markers to be overwritten on any update. # BEGIN automatic-version-macros # DO NOT REMOVE THIS LINE! -# Version from node-v24.11.1/src/node_version.h +# Version from node-v24.13.0/src/node_version.h %global node_soversion 137 -# Version from node-v24.11.1/deps/ada/ada.h +# Version from node-v24.13.0/deps/ada/ada.h %nodejs_define_version ada 3.3.0 -# Version from node-v24.11.1/deps/brotli/c/common/version.h +# Version from node-v24.13.0/deps/brotli/c/common/version.h %nodejs_define_version brotli 1.1.0 -# Version from node-v24.11.1/deps/cares/include/ares_version.h -%nodejs_define_version c_ares 1.34.5 -# Version from node-v24.11.1/deps/histogram/include/hdr/hdr_histogram_version.h +# Version from node-v24.13.0/deps/cares/include/ares_version.h +%nodejs_define_version c_ares 1.34.6 +# Version from node-v24.13.0/deps/histogram/include/hdr/hdr_histogram_version.h %nodejs_define_version histogram 0.11.9 -# Version from node-v24.11.1/tools/icu/current_ver.dep +# Version from node-v24.13.0/tools/icu/current_ver.dep %nodejs_define_version icu 77.1 -p -# Version from node-v24.11.1/deps/uv/include/uv/version.h +# Version from node-v24.13.0/deps/uv/include/uv/version.h %nodejs_define_version libuv 1.51.0 -# Version from node-v24.11.1/deps/llhttp/include/llhttp.h +# Version from node-v24.13.0/deps/llhttp/include/llhttp.h %nodejs_define_version llhttp 9.3.0 -# Version from node-v24.11.1/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h -%nodejs_define_version nghttp2 1.66.0 -# Version from node-v24.11.1/deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h +# Version from node-v24.13.0/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h +%nodejs_define_version nghttp2 1.67.1 +# Version from node-v24.13.0/deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h %nodejs_define_version nghttp3 1.6.0 -# Version from node-v24.11.1/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h +# Version from node-v24.13.0/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h %nodejs_define_version ngtcp2 1.11.0 -# Version from node-v24.11.1/deps/cjs-module-lexer/src/package.json +# Version from node-v24.13.0/deps/cjs-module-lexer/src/package.json %nodejs_define_version nodejs-cjs-module-lexer 2.1.0 -# Version from node-v24.11.1/lib/punycode.js +# Version from node-v24.13.0/lib/punycode.js %nodejs_define_version nodejs-punycode 2.1.0 -# Version from node-v24.11.1/deps/undici/src/package.json -%nodejs_define_version nodejs-undici 7.16.0 -# Version from node-v24.11.1/deps/npm/package.json +# Version from node-v24.13.0/deps/undici/src/package.json +%nodejs_define_version nodejs-undici 7.18.2 +# Version from node-v24.13.0/deps/npm/package.json %nodejs_define_version npm 1:11.6.2-%{nodejs_subpackage_release} -# Version from node-v24.11.1/deps/sqlite/sqlite3.h +# Version from node-v24.13.0/deps/sqlite/sqlite3.h %nodejs_define_version sqlite 3.50.4 -# Version from node-v24.11.1/deps/uvwasi/include/uvwasi.h +# Version from node-v24.13.0/deps/uvwasi/include/uvwasi.h %nodejs_define_version uvwasi 0.0.23 -# Version from node-v24.11.1/deps/v8/include/v8-version.h -%nodejs_define_version v8 3:13.6.233.10-%{nodejs_subpackage_release} -p -# Version from node-v24.11.1/deps/zlib/zlib.h +# Version from node-v24.13.0/deps/v8/include/v8-version.h +%nodejs_define_version v8 3:13.6.233.17-%{nodejs_subpackage_release} -p +# Version from node-v24.13.0/deps/zlib/zlib.h %nodejs_define_version zlib 1.3.1 # END automatic-version-macros # DO NOT REMOVE THIS LINE! diff --git a/sources b/sources index f5407c1..c1dce58 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -SHA512 (node-v24.11.1-stripped.tar.gz) = a39d6bcfbe2e255fe8989c7064ad84cd0c8d914b4dfdbc4299b6b47b71ba9fd6f6408643eba2870b5d415c507858d3b63302e482d33974faed8938d3c8dcae38 +SHA512 (node-v24.13.0-stripped.tar.gz) = 8b889de5cec7080d970a7ad86ce1b6a0bab5e28d349b09555b8b7723bf5769f3837c22d15ad95faac5832fbd0c1bef35e0034befbb7377b7ad11d2985cdf0e01 SHA512 (icu4c-77_1-data-bin-b.zip) = 93b4c8228a059546e7c3e337f1f837db255c0046c15f50a31a7bd20daf361174edab05b01faaac1dd4f515ca3c1f1d7fb0f61e4177eb5631833ad1450e252c4e SHA512 (icu4c-77_1-data-bin-l.zip) = 3de15bb5925956b8e51dc6724c2114a1009ec471a2241b09ae09127f1760f44d02cc29cfbeed6cbaac6ee880553ac8395c61c6043c00ddba3277233e19e6490e SHA512 (packaging-scripts.tar.gz) = bd466853842a59205ef4017cd3a989c3412ed60e10b04569c041e25683030c218781ef98002ac0ecc62a2ed33040bdef9e622aaadbfca54a10bb4cffc8f3e3fd