From 182c5841e3d07edebee099fb86b0c1332058dea1 Mon Sep 17 00:00:00 2001 From: weijin deng Date: Mon, 28 Feb 2022 10:00:11 +0800 Subject: [PATCH] delete -S git,Solve bug of PANIC --- ..._of-Lua_API_attempt_to_call_a_nil_value.patch | 16 ++++++++++++++++ grilo-plugins.spec | 14 +++++++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch diff --git a/0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch b/0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch new file mode 100644 index 0000000..b0d9b09 --- /dev/null +++ b/0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch @@ -0,0 +1,16 @@ +https://gitlab.gnome.org/GNOME/gnome-music/-/issues/473 +https://gitlab.gnome.org/GNOME/grilo-plugins/-/merge_requests/108 + +diff --git a/src/lua-factory/grl-lua-factory.c b/src/lua-factory/grl-lua-factory.c +index 4f37984..3a3b824 100644 +--- a/src/lua-factory/grl-lua-factory.c ++++ b/src/lua-factory/grl-lua-factory.c +@@ -1255,8 +1255,6 @@ table_to_tags (lua_State *L) + lua_pop (L, 1); + } + +- lua_pop (L, 1); +- + if (array->len == 0) { + g_ptr_array_free (array, TRUE); + return NULL; diff --git a/grilo-plugins.spec b/grilo-plugins.spec index 69c46ef..56db66f 100644 --- a/grilo-plugins.spec +++ b/grilo-plugins.spec @@ -1,16 +1,17 @@ Name: grilo-plugins Version: 0.3.13 -Release: 1 +Release: 3 Summary: Plugins for the Grilo framework License: LGPLv2+ URL: https://gitlab.gnome.org/GNOME/grilo-plugins Source0: https://download.gnome.org/sources/grilo-plugins/0.3/grilo-plugins-%{version}.tar.xz +Patch0001: 0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch BuildRequires: gcc meson avahi-gobject-devel avahi-gobject glib2-devel grilo-devel >= 0.3.8 BuildRequires: gom-devel gperf intltool gnome-online-accounts-devel >= 3.17.91 gettext BuildRequires: libgcrypt-devel libxml2-devel itstool libarchive-devel libmediaart-devel BuildRequires: libsoup-devel lua-devel rest-devel sqlite-devel libgdata-devel -BuildRequires: totem-pl-parser-devel tracker3-devel libdmapsharing-devel json-glib-devel git cmake liboauth-devel +BuildRequires: totem-pl-parser-devel tracker3-devel libdmapsharing-devel json-glib-devel cmake liboauth-devel Requires: dleyna-server gnome-online-accounts%{_isa} >= 3.17.91 grilo%{_isa} >= 0.3.8 %description @@ -21,7 +22,7 @@ iTunes Music Sharing,Jamendo,Last.fm,Local metadata,Metadata Store,Pocket,Podcas Radio France,Shoutcast,The Guardian Videos,Tracker,Vimeo,Youtube %prep -%autosetup -n grilo-plugins-%{version} -p1 -S git +%autosetup -n grilo-plugins-%{version} -p1 %build %meson -Denable-static=no -Denable-shoutcast=no -Denable-bookmarks=yes \ @@ -48,6 +49,13 @@ Radio France,Shoutcast,The Guardian Videos,Tracker,Vimeo,Youtube %exclude %{_bindir}/* %changelog +* Fri Feb 25 2022 weijin deng - 0.3.13-3 +- Solve bug of "PANIC: unprotected error in call to Lua API + (attempt to call a nil value) Aborted" + +* Fri Jul 30 2021 chenyanpanHW - 0.3.13-2 +- DESC: delete -S git from %autosetup, and delete BuildRequires git + * Thu Jun 17 2021 weijin deng - 0.3.13-1 - Upgrade to 0.3.13 - Change meson configurations -- Gitee