Replace http-parser with llhttp

Backported upstream patch from https://github.com/libgit2/libgit2/pull/6713

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2024-04-26 09:19:28 -04:00
parent 71e7114a4f
commit 34d9fba81d
2 changed files with 15036 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -13,10 +13,14 @@ License: GPLv2 with exceptions
URL: https://libgit2.org/
Source0: https://github.com/libgit2/libgit2/archive/refs/tags/v%{version}.tar.gz#/libgit2-%{version}.tar.gz
# Patches
# Backported patch from https://github.com/libgit2/libgit2/pull/6713
Patch: 0001-Replace-http-parser-with-llhttp.patch
BuildRequires: gcc
BuildRequires: cmake >= 3.5.1
BuildRequires: ninja-build
BuildRequires: http-parser-devel
BuildRequires: llhttp-devel
BuildRequires: krb5-devel
BuildRequires: libcurl-devel
%if %{with libssh2}
@ -79,7 +83,7 @@ popd
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DREGEX_BACKEND=pcre2 \
-DBUILD_CLI=OFF \
-DUSE_HTTP_PARSER=system \
-DUSE_HTTP_PARSER=llhttp \
-DUSE_SHA1=HTTPS \
-DUSE_HTTPS=OpenSSL \
-DUSE_NTLMCLIENT=OFF \