Package: zfs-linux / 0.6.5.9-5

1000-ppc64el-endian-support.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Fix endian build problem on ppc64el
  Drop endian override in powerpc architecture definition
  allowing both big and little endian builds.

  Upstream applied a different fix, simply removing the _BIG_ENDIAN test.
Author: Andy Whitcroft <apw@ubuntu.com>
Origin: ubuntu
Forwarded: no
Bug: https://github.com/zfsonlinux/zfs/pull/5856
Reviewed-By: Petter Reinholdtsen <pere@hungry.com>
Last-Update: 2016-05-12
Applied-Upstream: https://github.com/zfsonlinux/zfs/commit/fb963d33ee0dd350143ba1c9cd35d5f7d86910d2

Index: zfs-linux-0.6.5.3/lib/libspl/include/sys/isa_defs.h
===================================================================
--- zfs-linux-0.6.5.3.orig/lib/libspl/include/sys/isa_defs.h	2015-10-27 14:36:37.904604893 -0600
+++ zfs-linux-0.6.5.3/lib/libspl/include/sys/isa_defs.h	2015-10-27 14:36:58.008605392 -0600
@@ -98,8 +98,8 @@
 #endif
 #endif
 
-#if !defined(_BIG_ENDIAN)
-#define	_BIG_ENDIAN
+#if !defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN)
+#error powerpc no endian specified
 #endif
 
 #define	_SUNOS_VTOC_16