1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00

testing/perl-git-raw: rebuild against libgit2 1.8.2

This commit is contained in:
Will Sinatra 2024-11-18 22:24:35 -05:00 committed by Natanael Copa
parent 7048513bf9
commit f98a225ff5
2 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,30 @@
From cec39e5efebba62e7464aa88ee0cbe296d1c6d9b Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Mon, 14 Oct 2024 19:32:09 +0100
Subject: [PATCH] S_git_check_error: adapt to libgit2 1.8.0 change
giterr_last() no longer returns NULL for no error since
https://github.com/libgit2/libgit2/commit/3618a2aa45893a88fbb2d1e0eb97d530c7dc4f4d
Bug-Debian: https://bugs.debian.org/1084214
---
Raw.xs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Raw.xs b/Raw.xs
index bb17ff0d..1e67a7ae 100644
--- a/Raw.xs
+++ b/Raw.xs
@@ -308,7 +308,7 @@ STATIC void S_git_check_error(int err, const char *file, int line) {
e = create_error_obj(err, GITERR_NONE, NULL);
- if ((error = giterr_last()) != NULL) {
+ if ((error = giterr_last()) != NULL && error->klass != GIT_ERROR_NONE) {
e -> category = error -> klass;
e -> message = newSVpv(error -> message, 0);
} else if (SvTRUE(ERRSV)) {
--
2.45.2

View file

@ -3,7 +3,7 @@
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-git-raw
pkgver=0.90
pkgrel=1
pkgrel=2
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Git-Raw
pkgdesc="Perl bindings to the Git linkable library (libgit2)"
@ -19,6 +19,7 @@ source="https://cpan.metacpan.org/authors/id/J/JA/JACQUESG/Git-Raw-$pkgver.tar.g
libgit2-version-tests.patch
libgit2-1.7.1-tests.patch
libgit2-riscv64-tests.patch
0001-S_git_check_error-adapt-to-libgit2-1.8.0-change.patch
"
builddir="$srcdir/$_pkgreal-$pkgver"
@ -53,4 +54,5 @@ sha512sums="
54334d2758671b62f1852c68b23b2a33ecc76f8127ace636c8cd04c2712c005bc03e075357aa7becbd3a343a342c36ba977a288826c84d69686f5c9e9dd3d341 libgit2-version-tests.patch
b43710476f3e1ee86f382f29a198635ce0e4715840d4b6e79135f5ce3cedd17ef3a3a95adf9609ee324158e698ffa1eff2f3ad23cef2fd46f22bdb2265edcc84 libgit2-1.7.1-tests.patch
1a11cddecaf7991fa7a4a4b37754e22c0e39645e27afc775040b6d9b9f79b1be805b08c1e5642ad1d03ce1566e0efb8d0577041a4b127dfb072ed3afa9a2635f libgit2-riscv64-tests.patch
1c02f3ef602ca5615d7f378eeeed1b9bf75a04b382060a99e8d82683d3ad048f0cb891efae1fcc0130ab64801568d4b4be5d4c7957e0cf8fb7a7e9fca9671f98 0001-S_git_check_error-adapt-to-libgit2-1.8.0-change.patch
"