Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-lgi for openSUSE:Factory checked 
in at 2026-11-30 14:25:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-lgi (Old)
 and      /work/SRC/openSUSE:Factory/.lua-lgi.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-lgi"

Mon Nov 30 14:25:42 2026 rev:14 rq:1401367 version:0.9.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-lgi/lua-lgi.changes  2026-05-19 
17:51:50.192273564 +0200
+++ /work/SRC/openSUSE:Factory/.lua-lgi.new.1340718/lua-lgi.changes     
2026-11-30 14:27:55.787792606 +0100
@@ -1,0 +2,11 @@
+Sat Oct 24 16:30:38 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add lua55.patch: use locals instead of assigning to generic
+  for-loop variables, which are constant in Lua 5.5. Fix loading
+  component, GObject and Gtk modules and the test-suite startup.
+- Build against GTK 3, which these overrides and tests require,
+  rather than GTK 4. Run tests under Xvfb to provide a display.
+- Set G_FILENAME_ENCODING=UTF-8 for the filename regression test.
+- Keep test failures fatal. All 197 tests pass with Lua 5.5.
+
+-------------------------------------------------------------------

New:
----
  lua55.patch

----------(New B)----------
  New:
- Add lua55.patch: use locals instead of assigning to generic
  for-loop variables, which are constant in Lua 5.5. Fix loading
----------(New E)----------

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

Other differences:
------------------
++++++ lua-lgi.spec ++++++
--- /var/tmp/diff_new_pack.kG9WgS/_old  2026-11-30 14:27:57.371859558 +0100
+++ /var/tmp/diff_new_pack.kG9WgS/_new  2026-11-30 14:27:57.373859643 +0100
@@ -40,6 +40,8 @@
 Patch4:         network_metered-property.patch
 # PATCH-FIX-UPSTREAM 002-Fix-GLib-2.87-regressions.patch gh#lgi-devs/lgi!352 
[email protected]
 Patch5:         002-Fix-GLib-2.87-regressions.patch
+# PATCH-FIX-UPSTREAM lua55.patch -- avoid assigning to Lua 5.5 const loop 
variables
+Patch6:         lua55.patch
 BuildRequires:  lua-macros
 BuildRequires:  %{flavor}-devel
 BuildRequires:  pkgconfig
@@ -47,7 +49,8 @@
 BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 0.10.8
 BuildRequires:  pkgconfig(libffi)
 BuildRequires:  pkgconfig(pango)
-BuildRequires:  pkgconfig(gtk4)
+BuildRequires:  pkgconfig(gtk+-3.0)
+BuildRequires:  xvfb-run
 BuildRequires:  pkgconfig(cairo)
 Requires:       %{flavor}
 %lua_provides
@@ -90,7 +93,9 @@
   LUA_SHAREDIR=%{lua_noarchdir}
 
 %check
-make check || true
+# The filename regression test contains non-ASCII UTF-8 filenames.
+export G_FILENAME_ENCODING=UTF-8
+xvfb-run -a make check
 
 %files
 %if 0%{?suse_version} >= 1500

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.kG9WgS/_old  2026-11-30 14:27:57.437862348 +0100
+++ /var/tmp/diff_new_pack.kG9WgS/_new  2026-11-30 14:27:57.440862475 +0100
@@ -1,6 +1,6 @@
-mtime: 1779188136
-commit: b4bd02c170e9a6dd0409a1e6f5479654490c9f8d6a65736f76eda5972beb373c
+mtime: 1792860651
+commit: 83577f4768d522873dddb2b7867ea2119b6c4e9447ddee18660793b0b4a6656c
 url: https://src.opensuse.org/lua/lua-lgi
-revision: b4bd02c170e9a6dd0409a1e6f5479654490c9f8d6a65736f76eda5972beb373c
+revision: 83577f4768d522873dddb2b7867ea2119b6c4e9447ddee18660793b0b4a6656c
 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-10-24 18:50:51.000000000 +0200
@@ -0,0 +1,8 @@
+.assets
+_build.*
+*.obscpio
+*.obsinfo
+.osc
+.pbuild
+_service:*
+lua*-lgi-*-build/

++++++ lua55.patch ++++++
Subject: Fix Lua 5.5 compatibility with read-only loop variables

Lua 5.5 makes generic for-loop variables constant.  Use local
variables for transformed names and column indices instead of
assigning to the loop variables.  This fixes loading lgi and the
GObject and Gtk overrides, allowing the test suite to start.
Index: lgi-0.9.2/lgi/component.lua
===================================================================
--- lgi-0.9.2.orig/lgi/component.lua    2026-10-24 18:23:30.093225253 +0200
+++ lgi-0.9.2/lgi/component.lua 2026-10-24 18:30:27.553436717 +0200
@@ -65,7 +65,7 @@
       -- Load all known indices.
       for en, idx in pairs(index) do
         val = xvalue(children[idx])
-        en = not xform_name_reverse and en or xform_name_reverse(en)
+        local en = not xform_name_reverse and en or xform_name_reverse(en)
         if en then category[en] = val end
       end
 
Index: lgi-0.9.2/lgi/override/GObject-Object.lua
===================================================================
--- lgi-0.9.2.orig/lgi/override/GObject-Object.lua      2026-10-24 
18:23:30.096069497 +0200
+++ lgi-0.9.2/lgi/override/GObject-Object.lua   2026-10-24 18:30:27.553436717 
+0200
@@ -76,7 +76,7 @@
         local argtype = self[name]
         if gi.isinfo(argtype) and argtype.is_property then
            local parameter = core.record.new(parameter_repo)
-           name = argtype.name
+           local name = argtype.name
            local value = parameter.value
 
            -- Store the name string in some safe Lua place ('safe'
Index: lgi-0.9.2/lgi/override/GObject-Value.lua
===================================================================
--- lgi-0.9.2.orig/lgi/override/GObject-Value.lua       2026-10-24 
18:23:30.096483669 +0200
+++ lgi-0.9.2/lgi/override/GObject-Value.lua    2026-10-24 18:30:27.553436717 
+0200
@@ -84,7 +84,7 @@
 
 local value_marshallers = {}
 for name, gtype in pairs(Type) do
-   name = core.downcase(name)
+   local name = core.downcase(name)
    local get = Value['get_' .. name]
    local set = Value['set_' .. name]
    if get and set then
@@ -113,7 +113,7 @@
 -- Override marshallers for enums and bitmaps, marshal them as strings
 -- or sets of string flags.
 for name, gtype in pairs { ENUM = Type.ENUM, FLAGS = Type.FLAGS } do
-   name = core.downcase(name)
+   local name = core.downcase(name)
    local get = Value._method['get_' .. name]
    local set = Value._method['set_' .. name]
    value_marshallers[gtype] = function(value, params, ...)
Index: lgi-0.9.2/lgi/override/Gtk.lua
===================================================================
--- lgi-0.9.2.orig/lgi/override/Gtk.lua 2026-10-24 18:23:30.097585527 +0200
+++ lgi-0.9.2/lgi/override/Gtk.lua      2026-10-24 18:30:27.557436792 +0200
@@ -326,7 +326,7 @@
 local function treemodel_prepare_values(model, values)
    local cols, vals = {}, {}
    for column, value in pairs(values) do
-      column = column - 1
+      local column = column - 1
       cols[#cols + 1] = column
       vals[#vals + 1] = GObject.Value(model:get_column_type(column), value)
    end

Reply via email to