14
0
forked from pool/python-pygit2

- Add patch support-libgit-1.5.patch:

* Suppot libgit 1.5.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=68
This commit is contained in:
2022-07-21 14:45:28 +00:00
committed by Git OBS Bridge
parent f911a1ee67
commit 2792e03e4c
3 changed files with 20 additions and 1 deletions

15
support-libgit-1.5.patch Normal file
View File

@@ -0,0 +1,15 @@
diff --git a/src/types.h b/src/types.h
index 78023e28..e851eacb 100644
--- a/src/types.h
+++ b/src/types.h
@@ -32,8 +32,8 @@
#include <Python.h>
#include <git2.h>
-#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 4)
-#error You need a compatible libgit2 version (1.4.x)
+#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 4 && LIBGIT2_VER_MINOR <= 5)
+#error You need a compatible libgit2 version (1.4.x or 1.5.x)
#endif
/*