- 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
This commit is contained in:
Tomáš Chvátal 2018-05-21 08:34:38 +00:00 committed by Git OBS Bridge
parent e265214141
commit 6f380ee367
3 changed files with 30 additions and 0 deletions

22
pygit2-i586.patch Normal file
View File

@ -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?= <jdavid.ibp@gmail.com>
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 {

View File

@ -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 Thu May 17 12:10:25 UTC 2018 - tchvatal@suse.com

View File

@ -25,6 +25,7 @@ License: GPL-2.0-only
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/libgit2/pygit2 URL: https://github.com/libgit2/pygit2
Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz
Patch0: pygit2-i586.patch
BuildRequires: %{python_module cffi} BuildRequires: %{python_module cffi}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@ -42,6 +43,7 @@ Bindings for libgit2, a linkable C library for the Git version-control system.
%prep %prep
%setup -q -n pygit2-%{version} %setup -q -n pygit2-%{version}
%patch0 -p1
%build %build
export CFLAGS="%{optflags} -fno-strict-aliasing" export CFLAGS="%{optflags} -fno-strict-aliasing"