forked from pool/lua-lgi
Accepting request 819727 from home:gmbr3:testing
- Added lua54.patch to fix building with Lua 5.4 OBS-URL: https://build.opensuse.org/request/show/819727 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lgi?expand=0&rev=22
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 9 13:23:34 UTC 2020 - Callum Farmer <callumjfarmer13@gmail.com>
|
||||
|
||||
- Added lua54.patch to fix building with Lua 5.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 6 19:04:01 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@@ -26,6 +26,7 @@ License: MIT
|
||||
Group: Development/Languages/Other
|
||||
URL: https://github.com/pavouk/lgi
|
||||
Source0: https://github.com/pavouk/%{mod_name}/archive/%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
||||
Patch: lua54.patch
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(gmodule-2.0)
|
||||
@@ -58,7 +59,7 @@ using gobject-introspection. Allows using GObject-based libraries
|
||||
directly from Lua.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
%autosetup -n %{mod_name}-%{version} -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} V=1 \
|
||||
|
16
lua54.patch
Normal file
16
lua54.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff --git a/lgi/callable.c b/lgi/callable.c
|
||||
index e96d3af..3234b64 100644
|
||||
--- a/lgi/callable.c
|
||||
+++ b/lgi/callable.c
|
||||
@@ -1355,7 +1355,10 @@ closure_callback (ffi_cif *cif, void *ret, void **args, void *closure_arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
-#if LUA_VERSION_NUM >= 502
|
||||
+#if LUA_VERSION_NUM >= 504
|
||||
+ int nresults;
|
||||
+ res = lua_resume (L, NULL, npos, &nresults);
|
||||
+#elif LUA_VERSION_NUM >= 502
|
||||
res = lua_resume (L, NULL, npos);
|
||||
#else
|
||||
res = lua_resume (L, npos);
|
Reference in New Issue
Block a user