import UBI nodejs-20.19.2-1.module+el9.6.0+23146+be9976bd
This commit is contained in:
parent
173d104cb7
commit
abb1ab1810
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,6 @@
|
||||
SOURCES/cjs-module-lexer-1.4.1.tar.gz
|
||||
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/wasi-sdk-12.tar.gz
|
||||
SOURCES/wasi-sdk-20.tar.gz
|
||||
|
@ -1,6 +1,6 @@
|
||||
327c9c409bcda11ac331186b5eabb27bb78df43e SOURCES/cjs-module-lexer-1.4.1.tar.gz
|
||||
f7764341d196112573605881dbbf10e586d84841 SOURCES/icu4c-76_1-src.tgz
|
||||
86617650fbe74b4fceff6314e88cee212f0e917a SOURCES/node-v20.19.1-stripped.tar.gz
|
||||
6132b5ebb4d8b517894c0ed53fdc79d2a2b80b35 SOURCES/node-v20.19.2-stripped.tar.gz
|
||||
097218619f01200e237b6b93d0ddcb10f34883d7 SOURCES/undici-6.21.2.tar.gz
|
||||
5ea3a1deb65a52a36ceb41324da690f54b2a4805 SOURCES/wasi-sdk-12.tar.gz
|
||||
da40abcb73a6dddafced6174d24ed49e414cda3c SOURCES/wasi-sdk-20.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
@ -44,7 +44,7 @@
|
||||
%global nodejs_epoch 1
|
||||
%global nodejs_major 20
|
||||
%global nodejs_minor 19
|
||||
%global nodejs_patch 1
|
||||
%global nodejs_patch 2
|
||||
%global nodejs_abi %{nodejs_major}.%{nodejs_minor}
|
||||
# nodejs_soversion - from NODE_MODULE_VERSION in src/node_version.h
|
||||
%global nodejs_soversion 115
|
||||
@ -71,7 +71,7 @@
|
||||
%global c_ares_version 1.34.5
|
||||
|
||||
# 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
|
||||
%global libuv_version 1.46.0
|
||||
@ -80,7 +80,7 @@
|
||||
%global nghttp2_version 1.61.0
|
||||
|
||||
# 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
|
||||
%global ngtcp2_version 1.1.0
|
||||
@ -105,10 +105,10 @@
|
||||
%endif
|
||||
|
||||
# simduft from deps/simdutf/simdutf.h
|
||||
%global simduft_version 5.5.0
|
||||
%global simdutf_version 6.0.3
|
||||
|
||||
# ada from deps/ada/ada.h
|
||||
%global ada_version 2.9.0
|
||||
%global ada_version 2.9.2
|
||||
|
||||
# OpenSSL minimum version
|
||||
%global openssl_minimum 1:1.1.1
|
||||
@ -131,7 +131,7 @@
|
||||
|
||||
# Node.js 16.9.1 and later comes with an experimental package management tool
|
||||
# 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
|
||||
%global uvwasi_version 0.0.21
|
||||
@ -185,6 +185,8 @@ Source111: https://github.com/WebAssembly/wasi-sdk/archive/refs/tags/wasi-sdk-12
|
||||
# wasi-sdk version can be found in lib/llhttp/wasm_build_env.txt
|
||||
Source102: undici-6.21.2.tar.gz
|
||||
Source112: https://github.com/WebAssembly/wasi-sdk/archive/refs/tags/wasi-sdk-20.tar.gz
|
||||
Source300: test-runner.sh
|
||||
Source301: test-should-pass.txt
|
||||
|
||||
# Disable running gyp on bundled deps we don't use
|
||||
Patch1: 0001-Disable-running-gyp-on-shared-deps.patch
|
||||
@ -289,7 +291,7 @@ Provides: bundled(histogram) = %{histogram_version}
|
||||
%if %{with corepack}
|
||||
Provides: bundled(corepack) = %{corepack_version}
|
||||
%endif
|
||||
Provides: bundled(simduft) = %{simduft_version}
|
||||
Provides: bundled(simdutf) = %{simdutf_version}
|
||||
Provides: bundled(ada) = %{ada_version}
|
||||
|
||||
# Make sure we keep NPM up to date when we update Node.js
|
||||
@ -553,6 +555,13 @@ install -Dpm0644 -t %{buildroot}%{icudatadir} deps/icu/source/converted/*
|
||||
|
||||
|
||||
%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
|
||||
%{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}')"
|
||||
@ -639,6 +648,10 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} \
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu May 15 2025 Andrei Radchenko <aradchen@redhat.com> - 1:20.19.2-1
|
||||
- Update to version 20.19.2
|
||||
Resolves: RHEL-92867 RHEL-92395 RHEL-89594
|
||||
|
||||
* Thu Apr 24 2025 Andrei Radchenko <aradchen@redhat.com> - 1:20.19.1-1
|
||||
- Update to version 20.19.1
|
||||
Resolves: RHEL-88577
|
||||
|
Loading…
Reference in New Issue
Block a user