Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-luacheck for openSUSE:Factory 
checked in at 2026-01-28 15:14:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-luacheck (Old)
 and      /work/SRC/openSUSE:Factory/.lua-luacheck.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-luacheck"

Wed Jan 28 15:14:28 2026 rev:4 rq:1328836 version:1.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-luacheck/lua-luacheck.changes        
2025-11-05 16:20:47.736360913 +0100
+++ /work/SRC/openSUSE:Factory/.lua-luacheck.new.1928/lua-luacheck.changes      
2026-01-28 15:17:26.103690143 +0100
@@ -1,0 +2,7 @@
+Thu Jan 22 15:20:04 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add luacheck-lua55.patch to make package buildable with Lua
+  5.5, because of changing cycle counters.
+  (gh#mpeterv/luacheck!238) 
+
+-------------------------------------------------------------------

New:
----
  luacheck-lua55.patch

----------(New B)----------
  New:
- Add luacheck-lua55.patch to make package buildable with Lua
  5.5, because of changing cycle counters.
----------(New E)----------

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

Other differences:
------------------
++++++ lua-luacheck.spec ++++++
--- /var/tmp/diff_new_pack.GzJNde/_old  2026-01-28 15:17:27.115732267 +0100
+++ /var/tmp/diff_new_pack.GzJNde/_new  2026-01-28 15:17:27.119732433 +0100
@@ -35,6 +35,9 @@
 Source:         
https://github.com/lunarmodules/luacheck/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE - silence rpmlint
 Patch0:         env.patch
+# PATCH-FIX-UPSTREAM luacheck-lua55.patch gh#mpeterv/luacheck!238 
[email protected]
+# Fix incompatibility with Lua 5.5 (changing of for cycle counters)
+Patch1:         luacheck-lua55.patch
 BuildRequires:  %{flavor}
 BuildRequires:  %{flavor}-argparse
 BuildRequires:  %{flavor}-luafilesystem

++++++ _multibuild ++++++
--- /var/tmp/diff_new_pack.GzJNde/_old  2026-01-28 15:17:27.215736429 +0100
+++ /var/tmp/diff_new_pack.GzJNde/_new  2026-01-28 15:17:27.219736596 +0100
@@ -2,5 +2,6 @@
 <package>luajit</package>
 <package>lua53</package>
 <package>lua54</package>
+<package>lua55</package>
 </multibuild>
 

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.GzJNde/_old  2026-01-28 15:17:27.263738427 +0100
+++ /var/tmp/diff_new_pack.GzJNde/_new  2026-01-28 15:17:27.283739259 +0100
@@ -1,6 +1,6 @@
-mtime: 1761317336
-commit: b975013bba02808bf7196b6e8a959591882637b9dc49609667890552ce15e855
+mtime: 1769096457
+commit: 280c7329793cfe8a60cf02e76804b9fa209bc4dc3137f185bc9d87518506a6da
 url: https://src.opensuse.org/lua/lua-luacheck.git
-revision: b975013bba02808bf7196b6e8a959591882637b9dc49609667890552ce15e855
+revision: 280c7329793cfe8a60cf02e76804b9fa209bc4dc3137f185bc9d87518506a6da
 projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git
 

++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-01-22 16:41:38.000000000 +0100
@@ -0,0 +1,6 @@
+.osc
+*.obscpio
+*.osc
+_build.*
+.pbuild
+lua*-luacheck-*-build/

++++++ luacheck-lua55.patch ++++++
---
 src/luacheck/standards.lua |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

Index: luacheck-1.1.0/src/luacheck/standards.lua
===================================================================
--- luacheck-1.1.0.orig/src/luacheck/standards.lua      2022-12-19 
18:51:56.000000000 +0100
+++ luacheck-1.1.0/src/luacheck/standards.lua   2026-01-22 16:17:00.555611296 
+0100
@@ -130,21 +130,25 @@
 
    for field_name, field_def in pairs(fields) do
       if type(field_name) == "string" or not ignore_array_part then
+
+         local actual_field_name = field_name
+         local actual_field_def = field_def
+
          if type(field_name) ~= "string" then
-            field_name = field_def
-            field_def = infinitely_indexable_def
+            actual_field_name = field_def
+            actual_field_def = infinitely_indexable_def
          end
 
          if not def.fields then
             def.fields = {}
          end
 
-         if not def.fields[field_name] then
-            def.fields[field_name] = {}
+         if not def.fields[actual_field_name] then
+            def.fields[actual_field_name] = {}
          end
 
-         local existing_field_def = def.fields[field_name]
-         local new_read_only = field_def.read_only
+         local existing_field_def = def.fields[actual_field_name]
+         local new_read_only = actual_field_def.read_only
 
          if new_read_only == nil then
             new_read_only = default_read_only
@@ -156,13 +160,13 @@
             end
          end
 
-         if field_def.other_fields ~= nil then
-            if overwrite or field_def.other_fields == true then
-               existing_field_def.other_fields = field_def.other_fields
+         if actual_field_def.other_fields ~= nil then
+            if overwrite or actual_field_def.other_fields == true then
+               existing_field_def.other_fields = actual_field_def.other_fields
             end
          end
 
-         add_fields(existing_field_def, field_def.fields, overwrite, false, 
nil)
+         add_fields(existing_field_def, actual_field_def.fields, overwrite, 
false, nil)
       end
    end
 end

Reply via email to