- fix build on big endians

This commit is contained in:
Dan Horák 2017-08-30 20:37:41 +02:00
parent 631fb6eba1
commit fd42ee1fbe
2 changed files with 19 additions and 3 deletions

11
efl-1.20.2-endian.patch Normal file
View File

@ -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"

View File

@ -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 <dan[at]danny.cz> - 1.20.2-2
- fix build on big endians
* Fri Aug 11 2017 Tom Callaway <spot@fedoraproject.org> - 1.20.2-1
- update to 1.20.2
- BR: libunwind-devel