Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-compat-5.3 for openSUSE:Factory 
checked in at 2021-07-12 01:25:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-compat-5.3 (Old)
 and      /work/SRC/openSUSE:Factory/.lua-compat-5.3.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-compat-5.3"

Mon Jul 12 01:25:12 2021 rev:9 rq:905681 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-compat-5.3/lua-compat-5.3.changes    
2021-06-09 21:53:12.814572220 +0200
+++ /work/SRC/openSUSE:Factory/.lua-compat-5.3.new.2625/lua-compat-5.3.changes  
2021-07-12 01:25:33.896987574 +0200
@@ -1,0 +2,9 @@
+Sun Jul 11 14:10:00 UTC 2021 - Callum Farmer <[email protected]>
+
+- Use %lua_provides for bit32
+- Create bit32 for Lua 5.1
+- Use correct bit32 version
+- Update to version 0.10
+  * Fix bit32 conversion issues for Lua 5.1 on 32 bit
+
+-------------------------------------------------------------------

Old:
----
  lua-compat-5.3-0.9.tar.gz

New:
----
  lua-compat-5.3-0.10.tar.gz

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

Other differences:
------------------
++++++ lua-compat-5.3.spec ++++++
--- /var/tmp/diff_new_pack.AsLx4m/_old  2021-07-12 01:25:34.248984869 +0200
+++ /var/tmp/diff_new_pack.AsLx4m/_new  2021-07-12 01:25:34.252984837 +0200
@@ -21,13 +21,13 @@
 
 # bit32 (dropped in 5.4) is the native Lua 5.2 bit manipulation library, in 
the version
 # from Lua 5.3; it is compatible with Lua 5.1, 5.2 and 5.3.
-%if "%{lua_version}" >= "5.4" 
+%if "%{lua_version}" >= "5.4" || "%{lua_version}" < "5.2"
 %bcond_with bit32
 %else
 %bcond_without bit32
 %endif
-
-Version:        0.9
+%define mversion 0.10
+Version:        %{mversion}
 Release:        0
 Summary:        Lua-5.3-style APIs for Lua 5.2 and 5.1
 License:        MIT
@@ -54,8 +54,11 @@
 
 %if %{without bit32}
 %package -n %{flavor}-bit32
+Version:        5.3.5.1
+Release:        0
 Summary:        Lua bit manipulation library
 Group:          Development/Libraries/Other
+%lua_provides -n lua-bit32
 
 %description -n %{flavor}-bit32
 bit32 is the native Lua 5.2 bit manipulation library, in the version
@@ -63,7 +66,7 @@
 %endif
 
 %prep
-%autosetup -n %{mod_name}-%{version}
+%autosetup -n %{mod_name}-%{mversion}
 
 %build
 export CC="${COMPILER:-gcc}" DEF="" SRC="" CFLAGS="-Wall -Wextra $(pkg-config 
--cflags lua%{lua_version}) -Ic-api -O2 -fPIC"

++++++ lua-compat-5.3-0.9.tar.gz -> lua-compat-5.3-0.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-compat-5.3-0.9/lbitlib.c 
new/lua-compat-5.3-0.10/lbitlib.c
--- old/lua-compat-5.3-0.9/lbitlib.c    2020-07-09 01:27:24.000000000 +0200
+++ new/lua-compat-5.3-0.10/lbitlib.c   2020-10-10 16:43:46.000000000 +0200
@@ -19,8 +19,18 @@
 #if defined(LUA_COMPAT_BITLIB)         /* { */
 
 
-#define pushunsigned(L,n)      lua_pushinteger(L, (lua_Integer)(n))
-#define checkunsigned(L,i)     ((lua_Unsigned)luaL_checkinteger(L,i))
+#define pushunsigned(L,n)      (sizeof(lua_Integer) > 4 ? lua_pushinteger(L, 
(lua_Integer)(n)) : lua_pushnumber(L, (lua_Number)(n)))
+static lua_Unsigned checkunsigned(lua_State *L, int i) {
+  if (sizeof(lua_Integer) > 4)
+    return (lua_Unsigned)luaL_checkinteger(L, i);
+  else {
+    lua_Number d = luaL_checknumber(L, i);
+    if (d < 0)
+      d = (d + 1) + (~(lua_Unsigned)0);
+    luaL_argcheck(L, d >= 0 && d <= (~(lua_Unsigned)0), i, "value out of 
range");
+    return (lua_Unsigned)d;
+  }
+}
 
 
 /* number of bits to consider in a number */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-compat-5.3-0.9/rockspecs/bit32-scm-1.rockspec 
new/lua-compat-5.3-0.10/rockspecs/bit32-scm-1.rockspec
--- old/lua-compat-5.3-0.9/rockspecs/bit32-scm-1.rockspec       2020-07-09 
01:27:24.000000000 +0200
+++ new/lua-compat-5.3-0.10/rockspecs/bit32-scm-1.rockspec      2020-10-10 
16:43:46.000000000 +0200
@@ -2,7 +2,7 @@
 version = "scm-1"
 source = {
    url = "https://github.com/keplerproject/lua-compat-5.3/archive/master.zip";,
-   branch = "lua-compat-5.3-master",
+   dir = "lua-compat-5.3-master",
 }
 description = {
    summary = "Lua 5.2 bit manipulation library",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lua-compat-5.3-0.9/tests/test-bit32.lua 
new/lua-compat-5.3-0.10/tests/test-bit32.lua
--- old/lua-compat-5.3-0.9/tests/test-bit32.lua 2020-07-09 01:27:24.000000000 
+0200
+++ new/lua-compat-5.3-0.10/tests/test-bit32.lua        2020-10-10 
16:43:46.000000000 +0200
@@ -4,6 +4,7 @@
 
 
 assert(bit32.bnot(0) == 2^32-1)
+assert(bit32.bnot(-1) == 0)
 assert(bit32.band(1, 3, 5) == 1)
 assert(bit32.bor(1, 3, 5) == 7)
 

Reply via email to