[packages/nghttp2] up to 1.68.0
atler
atler at pld-linux.org
Sat Oct 25 11:16:20 CEST 2025
commit 6bb9eb52224a77d0525c18c9584e5622daabc6ed
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Oct 25 11:13:31 2025 +0200
up to 1.68.0
add fix for llhttp build failure on armv7hnl - submitted upstream:
https://github.com/nodejs/llparse/pull/79
but it does not look like it's gonna be merged any time soon
llhttp-neon.patch | 32 ++++++++++++++++++++++++++++++++
nghttp2.spec | 12 +++++++-----
2 files changed, 39 insertions(+), 5 deletions(-)
---
diff --git a/nghttp2.spec b/nghttp2.spec
index ada5c51..dfb73f5 100644
--- a/nghttp2.spec
+++ b/nghttp2.spec
@@ -12,13 +12,14 @@
Summary: HTTP/2.0 C library
Summary(pl.UTF-8): Biblioteka C HTTP/2.0
Name: nghttp2
-Version: 1.67.1
+Version: 1.68.0
Release: 1
License: MIT
Group: Libraries
#Source0Download: https://github.com/nghttp2/nghttp2/releases
Source0: https://github.com/nghttp2/nghttp2/releases/download/v%{version}/%{name}-%{version}.tar.xz
-# Source0-md5: 87083f18d6b44c38a4b21a887faa3e86
+# Source0-md5: d5ba082629f15c67e72b4c26f7935500
+Patch0: llhttp-neon.patch
URL: https://nghttp2.org/
BuildRequires: autoconf >= 2.61
BuildRequires: automake
@@ -39,9 +40,9 @@ BuildRequires: libev-devel
BuildRequires: libevent-devel >= 2.0.8
BuildRequires: libstdc++-devel >= 6:12
BuildRequires: libxml2-devel >= 1:2.6.26
-%{?with_http3:BuildRequires: nghttp3-devel >= 1.11.0}
-%{?with_http3:BuildRequires: ngtcp2-devel >= 1.15.0}
-#%{?with_http3:BuildRequires: ngtcp2-crypto-quictls >= 1.15.0 or ngtcp2-crypto-boringssl}
+%{?with_http3:BuildRequires: nghttp3-devel >= 1.12.0}
+%{?with_http3:BuildRequires: ngtcp2-devel >= 1.16.0}
+#%{?with_http3:BuildRequires: ngtcp2-crypto-quictls >= 1.16.0 or ngtcp2-crypto-boringssl}
BuildRequires: openssl-devel >= 1.1.1
%{?with_http3:BuildRequires: openssl-devel(quic)}
%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
@@ -107,6 +108,7 @@ Statyczna biblioteka libnghttp2.
%prep
%setup -q
+%patch -P0 -p1
%build
%{__libtoolize}
diff --git a/llhttp-neon.patch b/llhttp-neon.patch
new file mode 100644
index 0000000..107b538
--- /dev/null
+++ b/llhttp-neon.patch
@@ -0,0 +1,32 @@
+--- nghttp2-1.68.0/third-party/llhttp/src/llhttp.c.orig 2025-10-25 10:47:53.011444055 +0200
++++ nghttp2-1.68.0/third-party/llhttp/src/llhttp.c 2025-10-25 11:07:50.499898539 +0200
+@@ -2639,17 +2639,17 @@
+ /* Find first character that does not match `ranges` */
+ single = vceqq_u8(input, vdupq_n_u8(0x9));
+ mask = single;
+- single = vandq_u16(
++ single = vandq_u8(
+ vcgeq_u8(input, vdupq_n_u8(' ')),
+ vcleq_u8(input, vdupq_n_u8('~'))
+ );
+- mask = vorrq_u16(mask, single);
+- single = vandq_u16(
++ mask = vorrq_u8(mask, single);
++ single = vandq_u8(
+ vcgeq_u8(input, vdupq_n_u8(0x80)),
+ vcleq_u8(input, vdupq_n_u8(0xff))
+ );
+- mask = vorrq_u16(mask, single);
+- narrow = vshrn_n_u16(mask, 4);
++ mask = vorrq_u8(mask, single);
++ narrow = vshrn_n_u16(vreinterpretq_u16_u8(mask), 4);
+ match_mask = ~vget_lane_u64(vreinterpret_u64_u8(narrow), 0);
+ match_len = __builtin_ctzll(match_mask) >> 2;
+ if (match_len != 16) {
+@@ -10096,4 +10096,4 @@
+ }
+
+ return 0;
+-}
+\ No newline at end of file
++}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nghttp2.git/commitdiff/6bb9eb52224a77d0525c18c9584e5622daabc6ed
More information about the pld-cvs-commit
mailing list