import UBI nodejs-20.19.2-1.module+el8.10.0+23139+21ba74c5
This commit is contained in:
parent
52f3967b11
commit
8ca691334b
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,6 @@
|
|||||||
SOURCES/cjs-module-lexer-1.4.1.tar.gz
|
SOURCES/cjs-module-lexer-1.4.1.tar.gz
|
||||||
SOURCES/icu4c-76_1-src.tgz
|
SOURCES/icu4c-76_1-src.tgz
|
||||||
SOURCES/node-v20.19.1-stripped.tar.gz
|
SOURCES/node-v20.19.2-stripped.tar.gz
|
||||||
SOURCES/undici-6.21.2.tar.gz
|
SOURCES/undici-6.21.2.tar.gz
|
||||||
SOURCES/wasi-sdk-wasi-sdk-11.tar.gz
|
SOURCES/wasi-sdk-wasi-sdk-11.tar.gz
|
||||||
SOURCES/wasi-sdk-wasi-sdk-16.tar.gz
|
SOURCES/wasi-sdk-wasi-sdk-16.tar.gz
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
327c9c409bcda11ac331186b5eabb27bb78df43e SOURCES/cjs-module-lexer-1.4.1.tar.gz
|
327c9c409bcda11ac331186b5eabb27bb78df43e SOURCES/cjs-module-lexer-1.4.1.tar.gz
|
||||||
f7764341d196112573605881dbbf10e586d84841 SOURCES/icu4c-76_1-src.tgz
|
f7764341d196112573605881dbbf10e586d84841 SOURCES/icu4c-76_1-src.tgz
|
||||||
86617650fbe74b4fceff6314e88cee212f0e917a SOURCES/node-v20.19.1-stripped.tar.gz
|
6f455cb29e9506bc6a5434d3374401a272b75a89 SOURCES/node-v20.19.2-stripped.tar.gz
|
||||||
d97e6978c03859c4d8a2bad236cd9e9060ae6ae2 SOURCES/undici-6.21.2.tar.gz
|
d97e6978c03859c4d8a2bad236cd9e9060ae6ae2 SOURCES/undici-6.21.2.tar.gz
|
||||||
8979d177dd62e3b167a6fd7dc7185adb0128c439 SOURCES/wasi-sdk-wasi-sdk-11.tar.gz
|
8979d177dd62e3b167a6fd7dc7185adb0128c439 SOURCES/wasi-sdk-wasi-sdk-11.tar.gz
|
||||||
fbe01909bf0e8260fcc3696ec37c9f731b5e356a SOURCES/wasi-sdk-wasi-sdk-16.tar.gz
|
fbe01909bf0e8260fcc3696ec37c9f731b5e356a SOURCES/wasi-sdk-wasi-sdk-16.tar.gz
|
||||||
|
60
SOURCES/test-runner.sh
Executable file
60
SOURCES/test-runner.sh
Executable file
@ -0,0 +1,60 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NODE_BIN="$1"
|
||||||
|
PARENT_TEST_FOLDER="$2"
|
||||||
|
TEST_LIST_FILE="$3"
|
||||||
|
|
||||||
|
# At most 10 min per test
|
||||||
|
TIMEOUT_DURATION=600
|
||||||
|
# Exit code
|
||||||
|
FINAL_RESULT=0
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
|
||||||
|
echo "Started test run:"
|
||||||
|
# Run the list of test
|
||||||
|
while IFS= read -r test_line; do
|
||||||
|
# ignore commented lines
|
||||||
|
if [[ "$test_line" =~ ^# ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
# If test has specified ARCH which it should be skipped
|
||||||
|
# Extract it
|
||||||
|
TEST_PATH=$(echo "$test_line" | awk '{print $1}')
|
||||||
|
IGNORE_ARCHES=$(echo "$test_line" |\
|
||||||
|
awk '{for (i=2; i<=NF; i++) printf "%s ", $i; print ""}')
|
||||||
|
|
||||||
|
# Skip test for specified ARCH
|
||||||
|
for ARCH_IGNORE in $IGNORE_ARCHES; do
|
||||||
|
if [[ "$ARCH_IGNORE" == "$ARCH" ]]; then
|
||||||
|
continue 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Construct test path
|
||||||
|
TEST_SCRIPT="$PARENT_TEST_FOLDER/$TEST_PATH"
|
||||||
|
|
||||||
|
if [ ! -f "$TEST_SCRIPT" ]; then
|
||||||
|
echo "Test script not found: $TEST_SCRIPT"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
TEST_OUTPUT=$(timeout "$TIMEOUT_DURATION" "$NODE_BIN" "$TEST_SCRIPT" 2>&1)
|
||||||
|
TEST_RESULT=$?
|
||||||
|
|
||||||
|
# Handle test result
|
||||||
|
if [ $TEST_RESULT -ne 0 ]; then
|
||||||
|
FINAL_RESULT=1
|
||||||
|
if [ $TEST_RESULT -eq 124 ]; then
|
||||||
|
echo "Test timed out: $TEST_SCRIPT"
|
||||||
|
else
|
||||||
|
echo "Test failed: $TEST_SCRIPT"
|
||||||
|
fi
|
||||||
|
echo "Test failure message:"
|
||||||
|
echo "$TEST_OUTPUT"
|
||||||
|
fi
|
||||||
|
done < "$TEST_LIST_FILE"
|
||||||
|
|
||||||
|
if [ $FINAL_RESULT -eq 0 ]; then
|
||||||
|
echo "All tests succesfully passed."
|
||||||
|
fi
|
||||||
|
exit $FINAL_RESULT
|
3839
SOURCES/test-should-pass.txt
Normal file
3839
SOURCES/test-should-pass.txt
Normal file
File diff suppressed because it is too large
Load Diff
@ -45,7 +45,7 @@
|
|||||||
%global nodejs_epoch 1
|
%global nodejs_epoch 1
|
||||||
%global nodejs_major 20
|
%global nodejs_major 20
|
||||||
%global nodejs_minor 19
|
%global nodejs_minor 19
|
||||||
%global nodejs_patch 1
|
%global nodejs_patch 2
|
||||||
%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
|
||||||
%global nodejs_soversion 115
|
%global nodejs_soversion 115
|
||||||
@ -73,7 +73,7 @@
|
|||||||
%global c_ares_version 1.34.5
|
%global c_ares_version 1.34.5
|
||||||
|
|
||||||
# llhttp - from deps/llhttp/include/llhttp.h
|
# llhttp - from deps/llhttp/include/llhttp.h
|
||||||
%global llhttp_version 8.1.2
|
%global llhttp_version 9.2.1
|
||||||
|
|
||||||
# libuv - from deps/uv/include/uv/version.h
|
# libuv - from deps/uv/include/uv/version.h
|
||||||
%global libuv_version 1.46.0
|
%global libuv_version 1.46.0
|
||||||
@ -82,7 +82,7 @@
|
|||||||
%global nghttp2_version 1.61.0
|
%global nghttp2_version 1.61.0
|
||||||
|
|
||||||
# nghttp3 - from deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h
|
# nghttp3 - from deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h
|
||||||
%global nghttp3_version 0.11.8
|
%global nghttp3_version 0.7.0
|
||||||
|
|
||||||
# ngtcp2 from deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h
|
# ngtcp2 from deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h
|
||||||
%global ngtcp2_version 1.1.0
|
%global ngtcp2_version 1.1.0
|
||||||
@ -107,10 +107,10 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# simduft from deps/simdutf/simdutf.h
|
# simduft from deps/simdutf/simdutf.h
|
||||||
%global simduft_version 5.5.0
|
%global simduft_version 6.0.3
|
||||||
|
|
||||||
# ada from deps/ada/ada.h
|
# ada from deps/ada/ada.h
|
||||||
%global ada_version 2.9.0
|
%global ada_version 2.9.2
|
||||||
|
|
||||||
# OpenSSL minimum version
|
# OpenSSL minimum version
|
||||||
%global openssl_minimum 1:1.1.1
|
%global openssl_minimum 1:1.1.1
|
||||||
@ -133,7 +133,7 @@
|
|||||||
|
|
||||||
# Node.js 16.9.1 and later comes with an experimental package management tool
|
# Node.js 16.9.1 and later comes with an experimental package management tool
|
||||||
# corepack - from deps/corepack/package.json
|
# corepack - from deps/corepack/package.json
|
||||||
%global corepack_version 0.29.4
|
%global corepack_version 0.31.0
|
||||||
|
|
||||||
# uvwasi - from deps/uvwasi/include/uvwasi.h
|
# uvwasi - from deps/uvwasi/include/uvwasi.h
|
||||||
%global uvwasi_version 0.0.21
|
%global uvwasi_version 0.0.21
|
||||||
@ -190,6 +190,8 @@ Source111: undici-6.21.2.tar.gz
|
|||||||
# Version source: deps/undici/src/lib/llhttp/wasm_build_env.txt
|
# Version source: deps/undici/src/lib/llhttp/wasm_build_env.txt
|
||||||
# Also check (undici tarball): lib/llhttp/wasm_build_env.txt
|
# Also check (undici tarball): lib/llhttp/wasm_build_env.txt
|
||||||
Source112: https://github.com/WebAssembly/wasi-sdk/archive/wasi-sdk-16/wasi-sdk-wasi-sdk-16.tar.gz
|
Source112: https://github.com/WebAssembly/wasi-sdk/archive/wasi-sdk-16/wasi-sdk-wasi-sdk-16.tar.gz
|
||||||
|
Source300: test-runner.sh
|
||||||
|
Source301: test-should-pass.txt
|
||||||
|
|
||||||
# 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
|
||||||
@ -576,6 +578,13 @@ install -Dpm0644 -t %{buildroot}%{icudatadir} deps/icu/source/converted/*
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
#run unit test that should pass from list
|
||||||
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir} \
|
||||||
|
bash %{SOURCE300} \
|
||||||
|
%{buildroot}/%{_bindir}/node \
|
||||||
|
%{_builddir}/node-v%{nodejs_version}/test/ \
|
||||||
|
%{SOURCE301}
|
||||||
|
|
||||||
# Fail the build if the versions don't match
|
# Fail the build if the versions don't match
|
||||||
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.node, '%{nodejs_version}')"
|
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.node, '%{nodejs_version}')"
|
||||||
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.v8.replace(/-node\.\d+$/, ''), '%{v8_version}')"
|
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.v8.replace(/-node\.\d+$/, ''), '%{v8_version}')"
|
||||||
@ -667,6 +676,11 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} \
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 15 2025 Tomas Juhasz <tjuhasz@redhat.com> - 1:20.19.2-1
|
||||||
|
- Update to version 20.19.2
|
||||||
|
Fixes: CVE-2025-23166
|
||||||
|
Resolves: RHEL-91595 RHEL-89598 RHEL-92854
|
||||||
|
|
||||||
* Thu Apr 24 2025 Andrei Radchenko <aradchen@redhat.com> - 1:20.19.1-1
|
* Thu Apr 24 2025 Andrei Radchenko <aradchen@redhat.com> - 1:20.19.1-1
|
||||||
- Update to version 20.19.1
|
- Update to version 20.19.1
|
||||||
Resolves: RHEL-78763
|
Resolves: RHEL-78763
|
||||||
|
Loading…
Reference in New Issue
Block a user