@ -30,7 +30,7 @@
# This is used by both the nodejs package and the npm subpackage that
# This is used by both the nodejs package and the npm subpackage that
# has a separate version - the name is special so that rpmdev-bumpspec
# has a separate version - the name is special so that rpmdev-bumpspec
# will bump this rather than adding .1 to the end.
# will bump this rather than adding .1 to the end.
%global baserelease 3
%global baserelease 1
%{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
%{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
@ -41,7 +41,7 @@
# than a Fedora release lifecycle.
# than a Fedora release lifecycle.
%global nodejs_epoch 1
%global nodejs_epoch 1
%global nodejs_major 16
%global nodejs_major 16
%global nodejs_minor 18
%global nodejs_minor 19
%global nodejs_patch 1
%global nodejs_patch 1
%global nodejs_abi %{nodejs_major}.%{nodejs_minor}
%global nodejs_abi %{nodejs_major}.%{nodejs_minor}
# nodejs_soversion - from NODE_MODULE_VERSION in src/node_version.h
# nodejs_soversion - from NODE_MODULE_VERSION in src/node_version.h
@ -118,7 +118,7 @@
# npm - from deps/npm/package.json
# npm - from deps/npm/package.json
%global npm_epoch 1
%global npm_epoch 1
%global npm_version 8.19.2
%global npm_version 8.19.3
# In order to avoid needing to keep incrementing the release version for the
# 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
# main package forever, we will just construct one for npm that is guaranteed
@ -170,16 +170,19 @@ Source101: cjs-module-lexer-1.2.2.tar.gz
Source102: https://github.com/WebAssembly/wasi-sdk/archive/wasi-sdk-11/wasi-sdk-wasi-sdk-11.tar.gz
Source102: https://github.com/WebAssembly/wasi-sdk/archive/wasi-sdk-11/wasi-sdk-wasi-sdk-11.tar.gz
# Version: jq '.version' deps/undici/src/package.json
# Version: jq '.version' deps/undici/src/package.json
# Original: https://github.com/nodejs/undici/archive/refs/tags/v5.10.0 .tar.gz
# Original: https://github.com/nodejs/undici/archive/refs/tags/v5.19.1 .tar.gz
# Adjustments: rm -f undici-5.10.0 /lib/llhttp/llhttp*.wasm*
# Adjustments: rm -f undici-5.19.1 /lib/llhttp/llhttp*.wasm*
Source111: undici-5.10.0 .tar.gz
Source111: undici-5.19.1 .tar.gz
# The WASM blob was made using wasi-sdk v14; compiler libraries are linked in.
# The WASM blob was made using wasi-sdk v14; compiler libraries are linked in.
# Version source: build/Dockerfile
# Version source: build/Dockerfile
Source112: https://github.com/WebAssembly/wasi-sdk/archive/wasi-sdk-14/wasi-sdk-wasi-sdk-14.tar.gz
Source112: https://github.com/WebAssembly/wasi-sdk/archive/wasi-sdk-14/wasi-sdk-wasi-sdk-14.tar.gz
# Disable running gyp on bundled deps we don't use
# Disable running gyp on bundled deps we don't use
Patch1: 0001-Disable-running-gyp-on-shared-deps.patch
Patch1: 0001-Disable-running-gyp-on-shared-deps.patch
Patch2: 0002-install-keep-installing-dtrace-and-systemtap-files.patch
# CVE-2022-25881
Patch2: 0002-deps-http-cache-semantics-Don-t-use-regex-to-trim-wh.patch
# CVE-2022-4904
Patch3: 0003-deps-cares-Add-str-len-check-in-config_sortlist-to-a.patch
BuildRequires: make
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3-devel
@ -205,14 +208,14 @@ BuildRequires: systemtap-sdt-devel
Provides: bundled(libuv) = %{libuv_version}
Provides: bundled(libuv) = %{libuv_version}
%else
%else
BuildRequires: libuv-devel >= 1:%{libuv_version}
BuildRequires: libuv-devel >= 1:%{libuv_version}
Requires: libuv-devel >= 1:%{libuv_version}
Requires: libuv >= 1:%{libuv_version}
%endif
%endif
%if %{with bundled} || !(0%{?fedora} || 0%{?rhel} >= 9)
%if %{with bundled} || !(0%{?fedora} || 0%{?rhel} >= 9)
Provides: bundled(nghttp2) = %{nghttp2_version}
Provides: bundled(nghttp2) = %{nghttp2_version}
%else
%else
BuildRequires: libnghttp2-devel >= %{nghttp2_version}
BuildRequires: libnghttp2-devel >= %{nghttp2_version}
Requires: libnghttp2-devel >= %{nghttp2_version}
Requires: libnghttp2 >= %{nghttp2_version}
%endif
%endif
# Temporarily bundle llhttp because the upstream doesn't
# Temporarily bundle llhttp because the upstream doesn't
@ -694,10 +697,12 @@ end
%doc %{_mandir}/man1/npx.1*
%doc %{_mandir}/man1/npx.1*
%doc %{_mandir}/man5/folders.5*
%doc %{_mandir}/man5/folders.5*
%doc %{_mandir}/man5/install.5*
%doc %{_mandir}/man5/install.5*
%doc %{_mandir}/man5/npm-global.5*
%doc %{_mandir}/man5/npm-json.5*
%doc %{_mandir}/man5/npm-shrinkwrap-json.5*
%doc %{_mandir}/man5/npmrc.5*
%doc %{_mandir}/man5/npmrc.5*
%doc %{_mandir}/man5/package-json.5*
%doc %{_mandir}/man5/package-json.5*
%doc %{_mandir}/man5/package-lock-json.5*
%doc %{_mandir}/man5/package-lock-json.5*
%doc %{_mandir}/man5/npm-shrinkwrap-json.5*
%doc %{_mandir}/man7/config.7*
%doc %{_mandir}/man7/config.7*
%doc %{_mandir}/man7/dependency-selectors.7*
%doc %{_mandir}/man7/dependency-selectors.7*
%doc %{_mandir}/man7/developers.7*
%doc %{_mandir}/man7/developers.7*
@ -719,6 +724,12 @@ end
%changelog
%changelog
* Mon Mar 27 2023 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.19.1-1
- Rebase to 16.19.1
- Resolves: rhbz#2153714
- Resolves: CVE-2023-23918 CVE-2023-23919 CVE-2023-23936 CVE-2023-24807 CVE-2023-23920
- Resolves: CVE-2022-25881 CVE-2022-4904
* Wed Dec 07 2022 Jan Staněk <jstanek@redhat.com> - 1:16.18.1-3
* Wed Dec 07 2022 Jan Staněk <jstanek@redhat.com> - 1:16.18.1-3
- Update sources of undici WASM blobs
- Update sources of undici WASM blobs
Resolves: rhbz#2151617
Resolves: rhbz#2151617