fix luajit build where luaL_reg is undef
This commit is contained in:
parent
17e4f00187
commit
555ae1de22
|
@ -0,0 +1,39 @@
|
||||||
|
diff -up efl-1.19.0/src/lib/edje/edje_private.h.luajitfix efl-1.19.0/src/lib/edje/edje_private.h
|
||||||
|
--- efl-1.19.0/src/lib/edje/edje_private.h.luajitfix 2017-05-15 09:53:45.314265022 -0400
|
||||||
|
+++ efl-1.19.0/src/lib/edje/edje_private.h 2017-05-15 09:55:13.508048012 -0400
|
||||||
|
@@ -33,6 +33,9 @@
|
||||||
|
#include <lua.h>
|
||||||
|
#include <lualib.h>
|
||||||
|
#include <lauxlib.h>
|
||||||
|
+#ifndef luaL_reg
|
||||||
|
+# define luaL_reg luaL_Reg
|
||||||
|
+#endif
|
||||||
|
#include <setjmp.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_EVIL
|
||||||
|
diff -up efl-1.19.0/src/lib/elua/elua_private.h.luajitfix efl-1.19.0/src/lib/elua/elua_private.h
|
||||||
|
--- efl-1.19.0/src/lib/elua/elua_private.h.luajitfix 2017-05-15 09:56:03.481791776 -0400
|
||||||
|
+++ efl-1.19.0/src/lib/elua/elua_private.h 2017-05-15 09:56:14.867505561 -0400
|
||||||
|
@@ -27,6 +27,9 @@
|
||||||
|
#include <lua.h>
|
||||||
|
#include <lualib.h>
|
||||||
|
#include <lauxlib.h>
|
||||||
|
+#ifndef luaL_reg
|
||||||
|
+# define luaL_reg luaL_Reg
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#include "Elua.h"
|
||||||
|
|
||||||
|
diff -up efl-1.19.0/src/lib/evas/filters/evas_filter_parser.c.luajitfix efl-1.19.0/src/lib/evas/filters/evas_filter_parser.c
|
||||||
|
--- efl-1.19.0/src/lib/evas/filters/evas_filter_parser.c.luajitfix 2017-05-15 09:56:44.449766382 -0400
|
||||||
|
+++ efl-1.19.0/src/lib/evas/filters/evas_filter_parser.c 2017-05-15 09:57:00.786361265 -0400
|
||||||
|
@@ -13,6 +13,9 @@
|
||||||
|
#include <lua.h>
|
||||||
|
#include <lualib.h>
|
||||||
|
#include <lauxlib.h>
|
||||||
|
+#ifndef luaL_reg
|
||||||
|
+# define luaL_reg luaL_Reg
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define FILTERS_LEGACY_COMPAT
|
||||||
|
|
3
efl.spec
3
efl.spec
|
@ -38,6 +38,8 @@ Source0: http://download.enlightenment.org/rel/libs/efl/efl-%{version}.tar.xz
|
||||||
# There is probably a way to conditionalize this in the code that could go upstream
|
# There is probably a way to conditionalize this in the code that could go upstream
|
||||||
# but this works for now.
|
# but this works for now.
|
||||||
Patch1: efl-1.17.1-old-nomodifier-in-drm_mode_fb_cmd2.patch
|
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
|
||||||
BuildRequires: bullet-devel libpng-devel libjpeg-devel gstreamer1-devel zlib-devel
|
BuildRequires: bullet-devel libpng-devel libjpeg-devel gstreamer1-devel zlib-devel
|
||||||
BuildRequires: gstreamer1-plugins-base-devel libtiff-devel openssl-devel
|
BuildRequires: gstreamer1-plugins-base-devel libtiff-devel openssl-devel
|
||||||
BuildRequires: curl-devel dbus-devel glibc-devel fontconfig-devel freetype-devel
|
BuildRequires: curl-devel dbus-devel glibc-devel fontconfig-devel freetype-devel
|
||||||
|
@ -190,6 +192,7 @@ Development files for EFL.
|
||||||
%if 0%{?fedora} <= 22
|
%if 0%{?fedora} <= 22
|
||||||
%patch1 -p1 -b .old
|
%patch1 -p1 -b .old
|
||||||
%endif
|
%endif
|
||||||
|
%patch2 -p1 -b .luajitfix
|
||||||
autoreconf -ifv
|
autoreconf -ifv
|
||||||
|
|
||||||
# This is why hardcoding paths is bad.
|
# This is why hardcoding paths is bad.
|
||||||
|
|
Loading…
Reference in New Issue