diff --git a/efl-1.21.1-khrplatform.patch b/efl-1.21.1-khrplatform.patch new file mode 100644 index 0000000..922d8d5 --- /dev/null +++ b/efl-1.21.1-khrplatform.patch @@ -0,0 +1,15 @@ +diff -up efl-1.21.1/src/lib/evas/Evas_GL.h.khrplatform efl-1.21.1/src/lib/evas/Evas_GL.h +--- efl-1.21.1/src/lib/evas/Evas_GL.h.khrplatform 2019-02-15 19:58:49.927937159 -0500 ++++ efl-1.21.1/src/lib/evas/Evas_GL.h 2019-02-15 19:58:55.970818084 -0500 +@@ -4273,8 +4273,9 @@ typedef signed int GLfixed; / + #ifndef GL_ES_VERSION_2_0 + /* GL types for handling large vertex buffer objects */ + #include +-typedef ptrdiff_t GLintptr; // Changed khronos_intptr_t +-typedef ptrdiff_t GLsizeiptr; // Changed khronos_ssize_t ++#include ++typedef khronos_intptr_t GLintptr; ++typedef khronos_ssize_t GLsizeiptr; + #endif + + /* Some definitions from GLES 3.0. diff --git a/efl.spec b/efl.spec index d77b3c4..2fe1ca4 100644 --- a/efl.spec +++ b/efl.spec @@ -41,6 +41,8 @@ Patch1: efl-1.17.1-old-nomodifier-in-drm_mode_fb_cmd2.patch Patch2: efl-1.21.0-luajitfix.patch # This printf is safe even if format-security disagrees Patch3: efl-1.21.0-use-pragma-to-ignore-safe-printf.patch +# Use khrplatform defines +Patch4: efl-1.21.1-khrplatform.patch %ifnarch s390 s390x BuildRequires: libunwind-devel @@ -199,6 +201,7 @@ Development files for EFL. %endif %patch2 -p1 -b .luajitfix %patch3 -p1 -b .pragma +%patch4 -p1 -b .khrplatform autoreconf -ifv # This is why hardcoding paths is bad. @@ -206,8 +209,6 @@ sed -i -e 's|/opt/efl-%{version}/share/|%{_datadir}/|' \ data/libeo.so.%{version}-gdb.py %build - -export CFLAGS="%{optflags} -DGL_GLEXT_LEGACY" # The arm-wide disablement of neon is not right # but i'm not sure which targets allow for neon at compile. %configure \ @@ -553,7 +554,7 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %changelog * Fri Feb 15 2019 Tom Callaway - 1.21.1-4 -- use -DGL_GLEXT_LEGACY to deal with duplicate typedefs on some arches +- use khrplatform.h defines everywhere, because ptrdiff_t is not signed long int on 32bit arches * Thu Jan 31 2019 Fedora Release Engineering - 1.21.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild