Bug#964680: ibus-pinyin: FTBFS: lmyoslib.c:68:36: error: expected ‘)’ before ‘LUA_QS’
control: tags -1 patch pending
Hello, I uploaded in deferred/5 the following debdiff (and submitted upstream)
Feel free to cancel/reschedule as you wish.
diff -Nru ibus-pinyin-1.5.0/debian/changelog ibus-pinyin-1.5.0/debian/changelog
--- ibus-pinyin-1.5.0/debian/changelog 2019-12-07 21:11:35.000000000 +0100
+++ ibus-pinyin-1.5.0/debian/changelog 2020-07-15 11:26:32.000000000 +0200
@@ -1,3 +1,11 @@
+ibus-pinyin (1.5.0-6.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix lua compatibility issue due to deprecated LUA_QS macro.
+ (Closes: #964680)
+
+ -- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 15 Jul 2020 11:26:32 +0200
+
ibus-pinyin (1.5.0-6) unstable; urgency=medium
* Team upload.
diff -Nru ibus-pinyin-1.5.0/debian/patches/lua-5.4.patch ibus-pinyin-1.5.0/debian/patches/lua-5.4.patch
--- ibus-pinyin-1.5.0/debian/patches/lua-5.4.patch 1970-01-01 01:00:00.000000000 +0100
+++ ibus-pinyin-1.5.0/debian/patches/lua-5.4.patch 2020-07-15 11:26:30.000000000 +0200
@@ -0,0 +1,19 @@
+Description: Fix lua 5.4 compatibility, due to deprecated LUA_QS macro
+See: https://polyrex.io/polyrex/dependencies/lua/-/commit/f97c64d7bf4c0f373711795d8faba0e8cd206761
+For reference.
+Author: Gianfranco Costamagna <locutusofborg@debian.org>
+Bug-Debian: https://bugs.debian.org/964680
+Forwarded: https://github.com/phuang/ibus-pinyin/pull/18
+Last-Update: 2020-07-15
+
+--- ibus-pinyin-1.5.0.orig/lua/lmyoslib.c
++++ ibus-pinyin-1.5.0/lua/lmyoslib.c
+@@ -65,7 +65,7 @@ static int getfield (lua_State *L, const
+ 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);
diff -Nru ibus-pinyin-1.5.0/debian/patches/series ibus-pinyin-1.5.0/debian/patches/series
--- ibus-pinyin-1.5.0/debian/patches/series 2019-12-07 21:11:35.000000000 +0100
+++ ibus-pinyin-1.5.0/debian/patches/series 2020-07-15 11:23:29.000000000 +0200
@@ -14,3 +14,4 @@
# python3 support
python3.patch
+lua-5.4.patch
Reply to: