[Pkg-zfsonlinux-devel] [SCM] zfs branch, master, updated. debian/0.6.5.6-2-2-g7b21177

Petter Reinholdtsen pere at hungry.com
Wed May 25 19:55:53 UTC 2016


The following commit has been merged in the master branch:
commit 7b211777933d1d7793bab0328f02e09f0bd82819
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Wed May 25 21:55:22 2016 +0200

    Fix build problem on mips*.
    
    Patch from YunQiang Su.
    
    Closes: #824190.

diff --git a/debian/patches/1002-fix-mips-build.patch b/debian/patches/1002-fix-mips-build.patch
new file mode 100644
index 0000000..a160605
--- /dev/null
+++ b/debian/patches/1002-fix-mips-build.patch
@@ -0,0 +1,52 @@
+Description: Fix build problem on mips*
+  Make sure required defines are set on mips.
+Author: YunQiang Su <wzssyqa at gmail.com>
+Debian-Bug: https://bugs.debian.org/824190
+Forwarded: no
+Reviewed-By: Petter Reinholdtsen <pere at hungry.com>
+Last-Update: 2016-05-25
+
+Index: zfs-linux-0.6.5.6/lib/libspl/include/sys/isa_defs.h
+===================================================================
+--- zfs-linux-0.6.5.6.orig/lib/libspl/include/sys/isa_defs.h
++++ zfs-linux-0.6.5.6/lib/libspl/include/sys/isa_defs.h
+@@ -172,7 +172,24 @@ extern "C" {
+ #define	_BIG_ENDIAN
+ #define	_SUNOS_VTOC_16
+ 
+-#else /* Currently x86_64, i386, arm, powerpc, s390, and sparc are supported */
++/* MIPS arch specific defines */
++#elif defined(__mips__)
++
++#if defined(__MIPSEB__)
++#define	_BIG_ENDIAN
++#elif defined(__MIPSEL__)
++#define	_LITTLE_ENDIAN
++#else
++#error MIPS no endian specified
++#endif
++
++#ifndef _LP64
++#define _ILP32
++#endif
++
++#define	_SUNOS_VTOC_16
++
++#else /* Currently x86_64, i386, arm, powerpc, s390, sparc and mips are supported */
+ #error "Unsupported ISA type"
+ #endif
+ 
+Index: zfs-linux-0.6.5.6/lib/libefi/rdwr_efi.c
+===================================================================
+--- zfs-linux-0.6.5.6.orig/lib/libefi/rdwr_efi.c
++++ zfs-linux-0.6.5.6/lib/libefi/rdwr_efi.c
+@@ -88,7 +88,8 @@ struct dk_map2  default_vtoc_map[NDKMAP]
+ #if defined(_SUNOS_VTOC_16)
+ 
+ #if defined(i386) || defined(__amd64) || defined(__arm) || \
+-    defined(__powerpc) || defined(__sparc) || defined(__s390__)
++    defined(__powerpc) || defined(__sparc) || defined(__s390__) || \
++    defined(__mips__)
+ 	{	V_BOOT,		V_UNMNT	},		/* i - 8 */
+ 	{	V_ALTSCTR,	0	},		/* j - 9 */
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 378760c..fe66a3b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-Prevent-manual-builds-in-the-DKMS-source.patch
 1000-ppc64el-endian-support.patch
 1001-Fix-aarch64-compilation.patch
+1002-fix-mips-build.patch

-- 
OpenZFS on Linux



More information about the Pkg-zfsonlinux-devel mailing list