From 6f380ee3675c2f47a64fcc25ab495fd2781560041e0d2630f77272d82c154e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 21 May 2018 08:34:38 +0000 Subject: [PATCH] - Add patch to fix issues on i586 arch: * pygit2-i586.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=42 --- pygit2-i586.patch | 22 ++++++++++++++++++++++ python-pygit2.changes | 6 ++++++ python-pygit2.spec | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 pygit2-i586.patch 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"