Fixes Lua compile
This commit is contained in:
parent
de86aec281
commit
f51fbc1a72
19
ibus-libpinyin-1.11.92-fixes-lua-compile.patch
Normal file
19
ibus-libpinyin-1.11.92-fixes-lua-compile.patch
Normal 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);
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user