libgit2: Update to 1.9.1 (#5439)

0001-missing-alloca.patch: fixed upstream
This commit is contained in:
Christoph Reiter 2025-06-06 22:59:10 +02:00 committed by GitHub
parent f09cada746
commit 1075592119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 20 deletions

View File

@ -1,11 +0,0 @@
--- libgit2-1.9.0/src/cli/opt.c.orig 2025-04-21 08:09:38.615653200 +0200
+++ libgit2-1.9.0/src/cli/opt.c 2025-04-21 08:09:48.209524900 +0200
@@ -19,7 +19,7 @@
#include <limits.h>
#include <assert.h>
-#if defined(__sun) || defined(__illumos__)
+#if defined(__sun) || defined(__illumos__) || defined(__CYGWIN__)
# include <alloca.h>
#endif

View File

@ -2,8 +2,8 @@
pkgbase=libgit2
pkgname=('libgit2' 'libgit2-devel')
pkgver=1.9.0
pkgrel=2
pkgver=1.9.1
pkgrel=1
pkgdesc="A linkable library for Git"
arch=('i686' 'x86_64')
url='https://libgit2.org/'
@ -24,18 +24,13 @@ makedepends=(
'zlib-devel'
'openssl-devel'
)
source=("https://github.com/libgit2/libgit2/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz"
"0001-missing-alloca.patch")
sha256sums=('75b27d4d6df44bd34e2f70663cfd998f5ec41e680e1e593238bbe517a84c7ed2'
'1b4bc2fe1e380374b760d24a73f719249d6bf048ad0305d777f2714609991b3e')
source=("https://github.com/libgit2/libgit2/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz")
sha256sums=('14cab3014b2b7ad75970ff4548e83615f74d719afe00aa479b4a889c1e13fc00')
validpgpkeys=('4EF4AC63455FC9F4545D9B7DEF8FE99528B52FFD')
noextract=("${pkgbase}-${pkgver}.tar.gz")
prepare() {
tar -xzf "${pkgbase}-${pkgver}.tar.gz" 2> /dev/null || tar -xzf "${pkgbase}-${pkgver}.tar.gz"
cd "${pkgbase}-${pkgver}"
patch -p1 < "../0001-missing-alloca.patch"
}
build() {