Hello community,

here is the log from the commit of package libquvi for openSUSE:Factory checked 
in at 2015-08-15 11:38:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libquvi (Old)
 and      /work/SRC/openSUSE:Factory/.libquvi.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libquvi"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libquvi/libquvi.changes  2015-07-05 
18:00:24.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libquvi.new/libquvi.changes     2015-08-15 
11:38:44.000000000 +0200
@@ -1,0 +2,7 @@
+Sat Jul 18 02:45:31 UTC 2015 - [email protected]
+
+- add patch: libquvi-0.9.4-lua-5.2.patch
+  * compatibility w/ lua 5.2+
+  * luaL_register replaced by luaL_newlib 
+
+-------------------------------------------------------------------

New:
----
  libquvi-0.9.4-lua-5.2.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libquvi.spec ++++++
--- /var/tmp/diff_new_pack.p2FYAN/_old  2015-08-15 11:38:44.000000000 +0200
+++ /var/tmp/diff_new_pack.p2FYAN/_new  2015-08-15 11:38:44.000000000 +0200
@@ -29,6 +29,8 @@
 Source1:        %{name}.rpmlintrc
 # PATCH-FEATURE-OPENSUSE libquvi-stable-build-date.patch [email protected] -- 
Don't embed build date. Triggers rebuild.
 Patch0:         %{name}-stable-build-date.patch
+# PATCH-FIX-UPSTREAM [email protected] -- compatibility for lua 5.2+
+Patch1:         %{name}-%{version}-lua-5.2.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libtool
@@ -74,6 +76,7 @@
 echo "timestamp for BUILD_TIME" >stamp-build-time
 touch -d "$(sed -n '2s/ - .*$//p' <%{_sourcedir}/%{name}.changes)" 
stamp-build-time
 fi
+%patch1 -p1
 
 %build
 export CFLAGS="%{optflags} -DLUA_COMPAT_MODULE"

++++++ libquvi-0.9.4-lua-5.2.patch ++++++
Index: libquvi-0.9.4/src/lua/init.c
===================================================================
--- libquvi-0.9.4.orig/src/lua/init.c
+++ libquvi-0.9.4/src/lua/init.c
@@ -80,10 +80,17 @@ QuviError l_init(_quvi_t q)
     return (QUVI_ERROR_LUA_INIT);
 
   luaL_openlibs(q->handle.lua);
+#if LUA_VERSION_NM < 502
   luaL_register(q->handle.lua, "quvi", quvi_reg_meth);
   luaL_register(q->handle.lua, "quvi.http", quvi_http_reg_meth);
   luaL_register(q->handle.lua, "quvi.crypto", quvi_crypto_reg_meth);
   luaL_register(q->handle.lua, "quvi.base64", quvi_base64_reg_meth);
+#else
+  luaL_newlib(q->handle.lua, quvi_reg_meth);
+  luaL_newlib(q->handle.lua, quvi_http_reg_meth);
+  luaL_newlib(q->handle.lua, quvi_crypto_reg_meth);
+  luaL_newlib(q->handle.lua, quvi_base64_reg_meth);
+#endif
 
   return (QUVI_OK);
 }

Reply via email to