Compare commits

...
Sign in to create a new pull request.

19 commits

Author SHA1 Message Date
Jan Staněk
8c0f6a1beb
Update to version 7.16.0 (rhbz#2394131) 2025-09-10 15:46:13 +02:00
Jan Staněk
489405ac35
Update to version 7.15.0 (rhbz#2390419) 2025-08-26 14:01:31 +02:00
Jan Staněk
62acc5dbed
Update to version 7.14.0 (rhbz#2389037) 2025-08-18 15:54:27 +02:00
Jan Staněk
986aeb515b
Upgrade to version 7.13.0 (rhbz#2385689) 2025-08-01 12:17:55 +02:00
Jan Staněk
f7ec042721
Disable test/pool.js which fails in Koji 2025-07-28 13:43:07 +02:00
Fedora Release Engineering
49d1e8cddc Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 22:54:26 +00:00
Jan Staněk
afed9a5992
Update to version 7.12.0 (rhbz#2358841) 2025-07-22 12:51:58 +02:00
Jan Staněk
e97598fc6f
Update to version 7.11.0 (rhbz#2358841) 2025-06-27 14:01:57 +02:00
Andrei Radchenko
0dd109af86 Update to version 7.9.0
Resolves: rhbz#2358841
2025-05-14 14:23:39 +02:00
Andrei Radchenko
fe416df6d4 Update to version 7.7.0
Resolves: rhbz:2356884
2025-04-02 15:23:47 +02:00
Andrei Radchenko
f9f4ae54fe Native test run during build 2025-04-01 13:48:41 +00:00
Andrei Radchenko
576e206f6d Update to version 7.6.0
Resolves: rhbz#2351723
2025-03-28 12:58:53 +01:00
Andrei Radchenko
bcd92966d7 Update to version 7.4.0
Resolves: rhbz#2349028
2025-03-03 10:27:01 +01:00
Andrei Radchenko
066a30b58d Update to 7.3.0 (rhbz#2339422) 2025-01-22 13:16:25 +01:00
Andrei Radchenko
76c1e7f335 update to 7.2.3 (rhbz#2307492) 2025-01-20 15:17:13 +01:00
Fedora Release Engineering
0b4ca1662c Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 20:16:23 +00:00
Andrei Radchenko
b3978353b3 Update to 7.2.0 (rhbz#2307492) 2024-12-19 15:09:44 +01:00
Andrei Radchenko
2f7cfce698 Update to 7.2.0 (rhbz#2307492) 2024-12-19 15:08:59 +01:00
Andrei Radchenko
5d7b39057f Update to version 7.1.0 (rhbz#2307492) 2024-12-10 13:15:04 +01:00
5 changed files with 48 additions and 63 deletions

3
.gitignore vendored
View file

@ -2,3 +2,6 @@
/undici-*-nm-prod.tgz
/undici-*-nm-dev.tgz
/undici-*-bundled-licenses.txt
#untared package folders
/undici*

View file

@ -1,52 +0,0 @@
From 72a1eb42a3126f498fd23758e81a3a8883e8b7fa Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Tue, 13 Aug 2024 13:18:53 +0200
Subject: [PATCH] use system wasm-opt if available
Signed-off-by: rpm-build <rpm-build>
---
build/wasm.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/build/wasm.js b/build/wasm.js
index 2f65c0e..1880ce3 100644
--- a/build/wasm.js
+++ b/build/wasm.js
@@ -14,6 +14,7 @@ const WASM_CC = process.env.WASM_CC || 'clang'
let WASM_CFLAGS = process.env.WASM_CFLAGS || '--sysroot=/usr/share/wasi-sysroot -target wasm32-unknown-wasi'
let WASM_LDFLAGS = process.env.WASM_LDFLAGS || ''
const WASM_LDLIBS = process.env.WASM_LDLIBS || ''
+const WASM_OPT = process.env.WASM_OPT || './wasm-opt'
// For compatibility with Node.js' `configure --shared-builtin-undici/undici-path ...`
const EXTERNAL_PATH = process.env.EXTERNAL_PATH
@@ -77,7 +78,7 @@ const hasApk = (function () {
try { execSync('command -v apk'); return true } catch (error) { return false }
})()
const hasOptimizer = (function () {
- try { execSync('./wasm-opt --version'); return true } catch (error) { return false }
+ try { execSync(`${WASM_OPT} --version`); return true } catch (error) { return false }
})()
if (hasApk) {
// Gather information about the tools used for the build
@@ -97,7 +98,7 @@ ${join(WASM_SRC, 'src')}/*.c \
${WASM_LDLIBS}`, { stdio: 'inherit' })
if (hasOptimizer) {
- execSync(`./wasm-opt ${WASM_OPT_FLAGS} -o ${join(WASM_OUT, 'llhttp.wasm')} ${join(WASM_OUT, 'llhttp.wasm')}`, { stdio: 'inherit' })
+ execSync(`${WASM_OPT} ${WASM_OPT_FLAGS} -o ${join(WASM_OUT, 'llhttp.wasm')} ${join(WASM_OUT, 'llhttp.wasm')}`, { stdio: 'inherit' })
}
writeWasmChunk('llhttp.wasm', 'llhttp-wasm.js')
@@ -109,7 +110,7 @@ ${join(WASM_SRC, 'src')}/*.c \
${WASM_LDLIBS}`, { stdio: 'inherit' })
if (hasOptimizer) {
- execSync(`./wasm-opt ${WASM_OPT_FLAGS} --enable-simd -o ${join(WASM_OUT, 'llhttp_simd.wasm')} ${join(WASM_OUT, 'llhttp_simd.wasm')}`, { stdio: 'inherit' })
+ execSync(`${WASM_OPT} ${WASM_OPT_FLAGS} --enable-simd -o ${join(WASM_OUT, 'llhttp_simd.wasm')} ${join(WASM_OUT, 'llhttp_simd.wasm')}`, { stdio: 'inherit' })
}
writeWasmChunk('llhttp_simd.wasm', 'llhttp_simd-wasm.js')
--
2.46.0

View file

@ -8,13 +8,13 @@
# Adjust as needed.
%bcond wasm_opt %[0%{?fedora} > 39]
%global llhttp_version_major 8
%global llhttp_version_minor 1
%global llhttp_version_major 9
%global llhttp_version_minor 3
%global llhttp_version_patch 0
Name: nodejs-%{npm_name}
Summary: An HTTP/1.1 client, written from scratch for Node.js
Version: 6.19.7
Version: 7.16.0
Release: %autorelease
License: MIT
@ -25,8 +25,7 @@ Source1: %{npm_name}-%{version}-nm-prod.tgz
Source2: %{npm_name}-%{version}-nm-dev.tgz
Source3: %{npm_name}-%{version}-bundled-licenses.txt
Source4: %{npm_name}-sources.sh
Patch: 0001-use-system-wasm-opt-if-available.patch
Source5: test-runner.sh
# Binary artifacts in this package are aimed at the wasm32-wasi "architecture".
%global _binaries_in_noarch_packages_terminate_build 0
@ -94,8 +93,10 @@ install -p -Dt %{buildroot}%{nodejs_sitelib}/%{npm_name}/ loader.js
tar -xzf %{S:2}
ln -fsrt node_modules/ node_modules_dev/*
ln -fsrt node_modules/.bin/ node_modules_dev/.bin/*
# Depends on the environment/OpenSSL version, etc. Informational only.
npm --offline run test || :
# Built-in test run using borp. Some tests are ignored on purpose.
# See Source5 aka test-runner.sh for details.
bash %{S:5} || exit
%files
%doc README.md

View file

@ -1,4 +1,4 @@
SHA512 (undici-6.19.7-stripped.tar.gz) = 5bf9c64cb511229f15a7d39cfe8dfe605ebfb375bd15325cecbb32ab24b59b4bec0cc0551d3784851861f7422ce6b0eca406d5301fdde6ac9cef83c1749e8f43
SHA512 (undici-6.19.7-nm-prod.tgz) = 2cbee320d05fda35a88324bb6d1dd668e5aa73d978ffd7ab0c56117606032a035738b138de567883a500f2924fb87ee010a94a69a47eef61a4d913f7a2459d05
SHA512 (undici-6.19.7-nm-dev.tgz) = 086dfb64853974a713825d022ea6053d87ab6085fb6118b220f1c09fde97ab4f07284cb66a9b7c11289123f4ab7df3f07bafc217847903ba1cc11871394294be
SHA512 (undici-6.19.7-bundled-licenses.txt) = 3e591adb16e09b1c6fb75eb97a6ac51cd06e0aeae2bd5950a15902346e2c9626cb50203bfd0e15c7e8c98af8f24b81c1ce6617c359e7c0e7d0a6366457c844ba
SHA512 (undici-7.16.0-stripped.tar.gz) = 6ed7e439cc3241089137c9e9e420764cd659337d71c4fbaeec7214df6df31d1d7f0d799215b8ded7dddd7556b80fa5e60b66beeed17136db507d1c0ebd9e354a
SHA512 (undici-7.16.0-nm-prod.tgz) = 53d709c53a27eaca553515246106385c29d27993af969903c14cc6bef26826ea78f84e6b31753ccf06fef0d6e5b5830d53352451e75cc3b68ff51362a3f812ce
SHA512 (undici-7.16.0-nm-dev.tgz) = 0263dcb0ad3e64c8e798e03b4aebb07c265dc03fa538dc58c44fcea818bfbc71928adf38bc1a89696bed699423b30225101ba3f9fb214da177061a8a660813d7
SHA512 (undici-7.16.0-bundled-licenses.txt) = 3e591adb16e09b1c6fb75eb97a6ac51cd06e0aeae2bd5950a15902346e2c9626cb50203bfd0e15c7e8c98af8f24b81c1ce6617c359e7c0e7d0a6366457c844ba

33
test-runner.sh Executable file
View file

@ -0,0 +1,33 @@
#!/bin/bash
set -e
# Comment out for full error trace
declare -a ignored_tests=(
"test/http2.js" # Some issue with custom openSSL engine in nodejs we pack. Error:0A00018F:SSL routines::ee key too small
"test/https.js" # -/-
"test/https2.js" # -/-
"test/connect-pre-shared-session.js" # -/-
"test/h2c-client.js" # -/-
"test/connect-timeout.js" # Nodejs side issue. AssertionError [ERR_ASSERTION]: Failed
"test/pool.js" # @jstanek: fails in Koji, works on my laptop. ¯\_(ツ)_/¯
)
# Conditional architecture-specific ignores
ARCH=$(uname -m)
# Add architecture-specific ignores (when any)
#if [ "$ARCH" == "x86_64" ]; then
# ignored_tests+=("test/arch-specific/x86_64/*.js") # Example: Arch-specific test for x86_64
#elif [ "$ARCH" == "armv7l" ]; then
# ignored_tests+=("test/arch-specific/armv7l/*.js") # Example: Arch-specific test for armv7l
#fi
# Run borp command with the ignored tests
echo "Running tests with exclusions..."
IGNORE_ARGS=""
for test in "${ignored_tests[@]}"; do
IGNORE_ARGS="$IGNORE_ARGS --ignore $test"
done
# Run borp with the specified ignores
exec npx borp --expose-gc -p "test/*.js" $IGNORE_ARGS