diff --git a/pygit2-i586.patch b/pygit2-i586.patch new file mode 100644 index 0000000..661a302 --- /dev/null +++ b/pygit2-i586.patch @@ -0,0 +1,22 @@ +From 1d11fa171b56114f181ac022715baba9581d36e7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= +Date: Sun, 20 May 2018 17:52:34 +0200 +Subject: [PATCH] Update git_time decl + +Should fix #795 +--- + pygit2/decl.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/pygit2/decl.h b/pygit2/decl.h +index 9cdea8a0..53451583 100644 +--- a/pygit2/decl.h ++++ b/pygit2/decl.h +@@ -77,6 +77,7 @@ typedef struct { + typedef struct git_time { + git_time_t time; + int offset; ++ char sign; + } git_time; + + typedef struct git_signature { diff --git a/python-pygit2.changes b/python-pygit2.changes index 188fb77..7a638a8 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 21 08:33:07 UTC 2018 - tchvatal@suse.com + +- Add patch to fix issues on i586 arch: + * pygit2-i586.patch + ------------------------------------------------------------------- Thu May 17 12:10:25 UTC 2018 - tchvatal@suse.com diff --git a/python-pygit2.spec b/python-pygit2.spec index fd05f4d..2f916d2 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -25,6 +25,7 @@ License: GPL-2.0-only Group: Development/Languages/Python URL: https://github.com/libgit2/pygit2 Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz +Patch0: pygit2-i586.patch BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} @@ -42,6 +43,7 @@ Bindings for libgit2, a linkable C library for the Git version-control system. %prep %setup -q -n pygit2-%{version} +%patch0 -p1 %build export CFLAGS="%{optflags} -fno-strict-aliasing"