From b32614eb18ae78e582f53c9b263297c27ff5492b Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 4 Feb 2020 13:42:55 +0100 Subject: [PATCH] blender: fix ppc64le build --- srcpkgs/blender/patches/ppc.patch | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 srcpkgs/blender/patches/ppc.patch diff --git a/srcpkgs/blender/patches/ppc.patch b/srcpkgs/blender/patches/ppc.patch new file mode 100644 index 00000000000..48b90ba0892 --- /dev/null +++ b/srcpkgs/blender/patches/ppc.patch @@ -0,0 +1,34 @@ +From c30453ca249ba1a49e761c5042ee0da939ea5b23 Mon Sep 17 00:00:00 2001 +From: q66 +Date: Tue, 4 Feb 2020 13:17:18 +0100 +Subject: [PATCH] fix broken endian check + +__LITTLE_ENDIAN is not a thing, only __LITTLE_ENDIAN__ is. It +also does not make sense to create a third case as there are +only two options. +--- + intern/numaapi/source/build_config.h | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/intern/numaapi/source/build_config.h b/intern/numaapi/source/build_config.h +index b8af51a..9725d8b 100644 +--- a/intern/numaapi/source/build_config.h ++++ b/intern/numaapi/source/build_config.h +@@ -311,12 +311,10 @@ + # define ARCH_CPU_PPC_FAMILY 1 + # define ARCH_CPU_PPC 1 + # define ARCH_CPU_64_BITS 1 +-# if defined(__BIG_ENDIAN__) +-# define ARCH_CPU_BIG_ENDIAN 1 +-# elif defined(__LITTLE_ENDIAN) ++# if defined(__LITTLE_ENDIAN__) + # define ARCH_CPU_LITTLE_ENDIAN 1 + # else +-# error Please define your endianness ++# define ARCH_CPU_BIG_ENDIAN 1 + # endif + #elif defined(__s390x__) + # define ARCH_CPU_S390_FAMILY 1 +-- +2.24.0 +