Fixes Lua compile

This commit is contained in:
Peng Wu 2020-07-13 17:33:59 +08:00
parent de86aec281
commit f51fbc1a72
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,19 @@
commit f3faeeff3fbe3bf9e30ed4461c2c8d0466966e56
Author: Peng Wu <alexepico@gmail.com>
Date: Mon Jul 6 09:59:05 2020 +0800
fixes lmyoslib.c
diff --git a/lua/lmyoslib.c b/lua/lmyoslib.c
index 868fc56..fc6a24b 100644
--- a/lua/lmyoslib.c
+++ b/lua/lmyoslib.c
@@ -57,7 +57,7 @@ static int getfield (lua_State *L, const char *key, int d) {
res = (int)lua_tointeger(L, -1);
else {
if (d < 0)
- return luaL_error(L, "field " LUA_QS " missing in date table", key);
+ return luaL_error(L, "field '%s' missing in date table", key);
res = d;
}
lua_pop(L, 1);

View File

@ -10,6 +10,7 @@ Source0: http://downloads.sourceforge.net/libpinyin/ibus-libpinyin/%{name}-%{
%if %snapshot
Patch0: ibus-libpinyin-1.12.x-head.patch
%endif
Patch1: ibus-libpinyin-1.11.92-fixes-lua-compile.patch
Requires: python3-gobject
Requires: ibus >= 1.5.11
@ -40,6 +41,7 @@ input method based on libpinyin for IBus.
%if %snapshot
%patch0 -p1 -b .head
%endif
%patch1 -p1 -b .lua
%build
%configure --disable-static \