[packages/python-llfuse] - fix build on x32

baggins baggins at pld-linux.org
Mon Jul 9 00:00:47 CEST 2018


commit 55c197505d809b3fa21d2edae95236539b16e28e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Jul 9 00:00:05 2018 +0200

    - fix build on x32

 python-llfuse.spec |  7 +++++++
 x32.patch          | 24 ++++++++++++++++++++++++
 2 files changed, 31 insertions(+)
---
diff --git a/python-llfuse.spec b/python-llfuse.spec
index 32b42f4..746af6a 100644
--- a/python-llfuse.spec
+++ b/python-llfuse.spec
@@ -14,10 +14,12 @@ Group:		Libraries/Python
 Source0:	https://bitbucket.org/nikratio/python-llfuse/downloads/%{module}-%{version}.tar.bz2
 # Source0-md5:	43a123c46d5438f15cd6bcafa16a0094
 Patch0:		build.patch
+Patch1:		x32.patch
 URL:		https://github.com/python-llfuse/python-llfuse
 BuildRequires:	rpmbuild(macros) >= 1.710
 BuildRequires:	libfuse-devel >= 2.8.0
 BuildRequires:	rpm-pythonprov
+BuildRequires:	python-Cython
 %if %{with python2}
 BuildRequires:	python-devel
 BuildRequires:	python-distribute
@@ -55,8 +57,13 @@ Dokumentacja API %{module}.
 %prep
 %setup -q -n %{module}-%{version}
 %patch0 -p1
+%ifarch x32
+%patch1 -p1
+%endif
 
 %build
+./setup.py build_cython
+
 %if %{with python2}
 %py_build %{?with_tests:test}
 %endif
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..061ec83
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,24 @@
+--- llfuse-1.3.4/src/llfuse.pyx~	2017-11-13 12:31:35.000000000 +0100
++++ llfuse-1.3.4/src/llfuse.pyx	2018-07-08 23:51:52.219640162 +0200
+@@ -52,15 +52,15 @@
+ 
+ cdef extern from "macros.c" nogil:
+     long GET_BIRTHTIME(struct_stat* buf)
+-    long GET_ATIME_NS(struct_stat* buf)
+-    long GET_CTIME_NS(struct_stat* buf)
+-    long GET_MTIME_NS(struct_stat* buf)
++    long long GET_ATIME_NS(struct_stat* buf)
++    long long GET_CTIME_NS(struct_stat* buf)
++    long long GET_MTIME_NS(struct_stat* buf)
+     long GET_BIRTHTIME_NS(struct_stat* buf)
+ 
+     void SET_BIRTHTIME(struct_stat* buf, long val)
+-    void SET_ATIME_NS(struct_stat* buf, long val)
+-    void SET_CTIME_NS(struct_stat* buf, long val)
+-    void SET_MTIME_NS(struct_stat* buf, long val)
++    void SET_ATIME_NS(struct_stat* buf, long long val)
++    void SET_CTIME_NS(struct_stat* buf, long long val)
++    void SET_MTIME_NS(struct_stat* buf, long long val)
+     void SET_BIRTHTIME_NS(struct_stat* buf, long val)
+ 
+     void ASSIGN_DARWIN(void*, void*)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-llfuse.git/commitdiff/8cc64e1fd48448ad7deeb5da49a58046bf787fda



More information about the pld-cvs-commit mailing list