From fd42ee1fbebaa29695bf8ce42810b1de738d9126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Wed, 30 Aug 2017 20:37:41 +0200 Subject: [PATCH] - fix build on big endians --- efl-1.20.2-endian.patch | 11 +++++++++++ efl.spec | 11 ++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 efl-1.20.2-endian.patch diff --git a/efl-1.20.2-endian.patch b/efl-1.20.2-endian.patch new file mode 100644 index 0000000..faf803b --- /dev/null +++ b/efl-1.20.2-endian.patch @@ -0,0 +1,11 @@ +diff -up efl-1.20.2/src/lib/eina/eina_debug.c.orig efl-1.20.2/src/lib/eina/eina_debug.c +--- efl-1.20.2/src/lib/eina/eina_debug.c.orig 2017-08-30 18:09:56.823901819 +0200 ++++ efl-1.20.2/src/lib/eina/eina_debug.c 2017-08-30 18:10:09.023901819 +0200 +@@ -60,6 +60,7 @@ + #endif + + #include "eina_debug.h" ++#include "eina_cpu.h" + #include "eina_types.h" + #include "eina_list.h" + #include "eina_mempool.h" diff --git a/efl.spec b/efl.spec index fc03eb2..a9afa69 100644 --- a/efl.spec +++ b/efl.spec @@ -46,11 +46,12 @@ Source0: http://download.enlightenment.org/rel/libs/efl/efl-%{version}.tar.xz Patch1: efl-1.17.1-old-nomodifier-in-drm_mode_fb_cmd2.patch # If luaL_reg is not defined, define it. Patch2: efl-1.19.0-luajitfix.patch -# s390x and ppc64 does not build (but ppc64le does) -# maybe endian? +# fix build on big endians # lib/eina/.libs/libeina.so: undefined reference to `eina_swap32' -ExcludeArch: s390x ppc64 +Patch3: efl-1.20.2-endian.patch +%ifnarch s390 s390x BuildRequires: libunwind-devel +%endif BuildRequires: bullet-devel libpng-devel libjpeg-devel gstreamer1-devel zlib-devel BuildRequires: gstreamer1-plugins-base-devel libtiff-devel openssl-devel BuildRequires: curl-devel dbus-devel glibc-devel fontconfig-devel freetype-devel @@ -206,6 +207,7 @@ Development files for EFL. %patch1 -p1 -b .old %endif %patch2 -p1 -b .luajitfix +%patch3 -p1 -b .endian autoreconf -ifv # This is why hardcoding paths is bad. @@ -564,6 +566,9 @@ fi %{_libdir}/pkgconfig/evas*.pc %changelog +* Wed Aug 30 2017 Dan HorĂ¡k - 1.20.2-2 +- fix build on big endians + * Fri Aug 11 2017 Tom Callaway - 1.20.2-1 - update to 1.20.2 - BR: libunwind-devel