[Python-modules-commits] r34292 - in packages/python-llfuse/trunk/debian/patches (1 file)

nikratio-guest at users.alioth.debian.org nikratio-guest at users.alioth.debian.org
Wed Sep 16 21:21:19 UTC 2015


    Date: Wednesday, September 16, 2015 @ 21:21:18
  Author: nikratio-guest
Revision: 34292

Made patch conditional on actually compiling for mips

Modified:
  packages/python-llfuse/trunk/debian/patches/mips_dev_t.diff

Modified: packages/python-llfuse/trunk/debian/patches/mips_dev_t.diff
===================================================================
--- packages/python-llfuse/trunk/debian/patches/mips_dev_t.diff	2015-09-16 21:03:41 UTC (rev 34291)
+++ packages/python-llfuse/trunk/debian/patches/mips_dev_t.diff	2015-09-16 21:21:18 UTC (rev 34292)
@@ -8,23 +8,37 @@
 (cf. https://sourceware.org/bugzilla/show_bug.cgi?id=17786).
 
 To work around the issue, we change the definition of struct stat that
-is used by Cython. Upstream is not interested in this change.
+is used by Cython when we are compiling under mips. Note that this
+requires the Cython compilation to run under mips, and that the
+resulting C file will be mips specific (without the patch, the
+generated C file is suitable for any architecture). 
 
+Upstream is not interested in this change for obvious reasons.
+
 --- a/Include/libc/sys/stat.pxd
 +++ b/Include/libc/sys/stat.pxd
-@@ -17,13 +17,13 @@
+@@ -16,7 +16,23 @@
+         S_IFMT
          S_IFDIR
  
-     struct stat:
--        dev_t     st_dev
+-    struct stat:
++IF UNAME_MACHINE.startswith('mips64'):
++    cdef struct stat:
 +        int       st_dev
++        ino_t     st_ino
++        mode_t    st_mode
++        nlink_t   st_nlink
++        uid_t     st_uid
++        gid_t     st_gid
++        int       st_rdev
++        off_t     st_size
++        blksize_t st_blksize
++        blkcnt_t  st_blocks
++        time_t    st_atime
++        time_t    st_mtime
++        time_t    st_ctime
++ELSE:
++    cdef struct stat:
+         dev_t     st_dev
          ino_t     st_ino
          mode_t    st_mode
-         nlink_t   st_nlink
-         uid_t     st_uid
-         gid_t     st_gid
--        dev_t     st_rdev
-+        int       st_rdev
-         off_t     st_size
-         blksize_t st_blksize
-         blkcnt_t  st_blocks




More information about the Python-modules-commits mailing list