From 6701a91e69a1dd1d5afdf627565936cf7df5cf70 Mon Sep 17 00:00:00 2001 From: Nicolas Cavallari Date: Thu, 30 May 2024 09:52:16 +0200 Subject: [PATCH] package/libgit2: bump version to 1.8.1 Upstream notes that libhttp-parser is unmaintained and suggest llhttp as a replacement. This version bundles llhttp (and includes its license in COPYING) but still allows to use a system-provided libhttp-parser. llhttp (https://github.com/nodejs/llhttp) is a C library that depends on a nodejs interpreter and more than 10 npm dependencies to generate its parser code. The bundled version contains the generated sources and could be built without nodejs. But distributing this generated code as part of libgit2 would probably be legally dubious because of the GPL's original source code provision, even if llhttp is MIT-licensed. Packaging llhttp would be a daunting task and its build will require considerable time and space, so for now, keep using libhttp-parser. Signed-off-by: Nicolas Cavallari Signed-off-by: Arnout Vandecappelle --- package/libgit2/libgit2.hash | 4 ++-- package/libgit2/libgit2.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/libgit2/libgit2.hash b/package/libgit2/libgit2.hash index 20e6929265..c02a149a68 100644 --- a/package/libgit2/libgit2.hash +++ b/package/libgit2/libgit2.hash @@ -1,3 +1,3 @@ # Locally calculated -sha256 9e1d6a880d59026b675456fbb1593c724c68d73c34c0d214d6eb848e9bbd8ae4 libgit2-1.8.0.tar.gz -sha256 08041a7e9c4d0e5e84f9711c824a0bd0366ee782ec29c6d7275fdab73e2ca115 COPYING +sha256 8c1eaf0cf07cba0e9021920bfba9502140220786ed5d8a8ec6c7ad9174522f8e libgit2-1.8.1.tar.gz +sha256 e3712465634e97cfd850822a4eb5ac7d2f8a10f753189366d5a2060046f28288 COPYING diff --git a/package/libgit2/libgit2.mk b/package/libgit2/libgit2.mk index 3364841e8f..e817a5916a 100644 --- a/package/libgit2/libgit2.mk +++ b/package/libgit2/libgit2.mk @@ -4,7 +4,7 @@ # ################################################################################ -LIBGIT2_VERSION = 1.8.0 +LIBGIT2_VERSION = 1.8.1 LIBGIT2_SITE = $(call github,libgit2,libgit2,v$(LIBGIT2_VERSION)) LIBGIT2_LICENSE = \ GPL-2.0 with linking exception, \ @@ -22,7 +22,7 @@ LIBGIT2_CONF_OPTS = \ -DUSE_GSSAPI=OFF \ -DUSE_ICONV=ON \ -DREGEX_BACKEND=regcomp \ - -DUSE_HTTP_PARSER=system \ + -DUSE_HTTP_PARSER=http-parser \ -DUSE_NTLMCLIENT=OFF \ -DUSE_XDIFF=builtin \ -DUSE_THREADS=$(if $(BR2_TOOLCHAIN_HAS_THREADS),ON,OFF)