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-05-19 17:51:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lua-lgi (Old) and /work/SRC/openSUSE:Factory/.lua-lgi.new.1966 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lua-lgi" Tue May 19 17:51:06 2026 rev:13 rq:1354006 version:0.9.2 Changes: -------- --- /work/SRC/openSUSE:Factory/lua-lgi/lua-lgi.changes 2026-03-04 21:07:34.010266208 +0100 +++ /work/SRC/openSUSE:Factory/.lua-lgi.new.1966/lua-lgi.changes 2026-05-19 17:51:50.192273564 +0200 @@ -1,0 +2,6 @@ +Tue May 19 09:05:29 UTC 2026 - Dominik Heidler <[email protected]> + +- Add 002-Fix-GLib-2.87-regressions.patch for bsc#1261931 + to fix problems with fromarray in GLib 2.87.0 + +------------------------------------------------------------------- New: ---- 002-Fix-GLib-2.87-regressions.patch ----------(New B)---------- New: - Add 002-Fix-GLib-2.87-regressions.patch for bsc#1261931 to fix problems with fromarray in GLib 2.87.0 ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lua-lgi.spec ++++++ --- /var/tmp/diff_new_pack.SUiGkp/_old 2026-05-19 17:51:51.728337114 +0200 +++ /var/tmp/diff_new_pack.SUiGkp/_new 2026-05-19 17:51:51.732337280 +0200 @@ -38,6 +38,8 @@ # PATCH-FIX-UPSTREAM network_metered-property.patch gh#lgi-devs/lgi!215 [email protected] # support for network_metered property 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 BuildRequires: lua-macros BuildRequires: %{flavor}-devel BuildRequires: pkgconfig ++++++ 002-Fix-GLib-2.87-regressions.patch ++++++ >From c9361c6e8f6b101c78aa7ca5ea8ca8d86176bcd0 Mon Sep 17 00:00:00 2001 From: Victoria Lacroix <[email protected]> Date: Wed, 4 Feb 2026 14:12:03 -0500 Subject: [PATCH] ffi: conform load_enum to GLib 2.87.0 GLib 2.87.0 includes a fix (https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4803) to how enum values are handled, causing the value to be read as a Lua table instead of a GLib array. This requires some slightly tweaked code when loading an enum. --- lgi/ffi.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lgi/ffi.lua b/lgi/ffi.lua index b382a97e..f1aa61d1 100644 --- a/lgi/ffi.lua +++ b/lgi/ffi.lua @@ -89,9 +89,15 @@ end local enum_class = core.record.cast( type_class, is_flags and GObject.FlagsClass or GObject.EnumClass) - for i = 0, enum_class.n_values - 1 do - local val = core.record.fromarray(enum_class.values, i) - enum_component[core.upcase(val.value_nick):gsub('%-', '_')] = val.value + if GLib.check_version(2, 87, 0) then + for i = 0, enum_class.n_values - 1 do + local val = core.record.fromarray(enum_class.values, i) + enum_component[core.upcase(val.value_nick):gsub('%-', '_')] = val.value + end + else + for _, val in ipairs(enum_class.values) do + enum_component[core.upcase(val.value_nick):gsub('%-', '_')] = val.value + end end -- For GLib versions below 2.86, type_class was ref'd and needs to be unref'd if GLib.check_version(2, 86, 0) then ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.SUiGkp/_old 2026-05-19 17:51:51.888343734 +0200 +++ /var/tmp/diff_new_pack.SUiGkp/_new 2026-05-19 17:51:51.892343900 +0200 @@ -1,6 +1,6 @@ -mtime: 1769204297 -commit: 0ed47212b35735649bbdfadc6fb7f38aa9cc3bc84d83a42e114667b95e781f5d -url: https://src.opensuse.org/lua/lua-lgi.git -revision: 0ed47212b35735649bbdfadc6fb7f38aa9cc3bc84d83a42e114667b95e781f5d +mtime: 1779188136 +commit: b4bd02c170e9a6dd0409a1e6f5479654490c9f8d6a65736f76eda5972beb373c +url: https://src.opensuse.org/lua/lua-lgi +revision: b4bd02c170e9a6dd0409a1e6f5479654490c9f8d6a65736f76eda5972beb373c projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git ++++++ build.specials.obscpio ++++++ --- old/.gitignore 2026-01-23 22:38:33.000000000 +0100 +++ new/.gitignore 2026-05-19 12:55:36.000000000 +0200 @@ -1 +1,8 @@ +.assets +_build.* +*.obscpio +*.obsinfo .osc +.pbuild +_service:* +lua*-lgi-*-build/ ++++++ 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-05-19 12:55:36.000000000 +0200 @@ -0,0 +1,8 @@ +.assets +_build.* +*.obscpio +*.obsinfo +.osc +.pbuild +_service:* +lua*-lgi-*-build/
