14
0
forked from pool/python-pygit2

Accepting request 1073520 from home:dgarcia:branches:devel:languages:python

- Add support-libgit2-1.6.patch to make it work with the latest
  libgit2 release gh#libgit2/pygit2#1200

OBS-URL: https://build.opensuse.org/request/show/1073520
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=75
This commit is contained in:
2023-03-21 20:35:02 +00:00
committed by Git OBS Bridge
parent e80915fa35
commit 017f481103
3 changed files with 26 additions and 3 deletions

15
support-libgit2-1.6.patch Normal file
View File

@@ -0,0 +1,15 @@
Index: pygit2-1.11.1/src/types.h
===================================================================
--- pygit2-1.11.1.orig/src/types.h
+++ pygit2-1.11.1/src/types.h
@@ -32,8 +32,8 @@
#include <Python.h>
#include <git2.h>
-#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 5)
-#error You need a compatible libgit2 version (1.5.x)
+#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 6)
+#error You need a compatible libgit2 version (1.6.x)
#endif
/*