Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-cosmo for openSUSE:Factory 
checked in at 2026-03-03 15:30:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-cosmo (Old)
 and      /work/SRC/openSUSE:Factory/.lua-cosmo.new.29461 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-cosmo"

Tue Mar  3 15:30:27 2026 rev:6 rq:1335533 version:16.06.04

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-cosmo/lua-cosmo.changes      2025-11-05 
16:20:19.995194993 +0100
+++ /work/SRC/openSUSE:Factory/.lua-cosmo.new.29461/lua-cosmo.changes   
2026-03-03 15:30:44.020555749 +0100
@@ -1,0 +2,9 @@
+Thu Jan 29 19:18:41 UTC 2026 - Matej Cepl <[email protected]>
+
+- Enable building with Lua 5.5.
+- Remove fix_test.patch, which incorrectly workaround unset
+  LUA_PATH variable.
+- Add lua55-build.patch to fix compatibility problems with Lua
+  5.5.
+
+-------------------------------------------------------------------

Old:
----
  fix_test.patch

New:
----
  lua55-build.patch

----------(Old B)----------
  Old:- Enable building with Lua 5.5.
- Remove fix_test.patch, which incorrectly workaround unset
  LUA_PATH variable.
----------(Old E)----------

----------(New B)----------
  New:  LUA_PATH variable.
- Add lua55-build.patch to fix compatibility problems with Lua
  5.5.
----------(New E)----------

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

Other differences:
------------------
++++++ lua-cosmo.spec ++++++
--- /var/tmp/diff_new_pack.8s6yrT/_old  2026-03-03 15:30:44.952594186 +0100
+++ /var/tmp/diff_new_pack.8s6yrT/_new  2026-03-03 15:30:44.956594351 +0100
@@ -22,10 +22,9 @@
 Release:        0
 Summary:        A “safe templates” engine for Lua
 License:        MIT
-Group:          Development/Languages/Other
 URL:            https://github.com/mascarenhas/cosmo
 Source:         cosmo-%{version}.tar.zst
-Patch0:         fix_test.patch
+Patch0:         lua55-build.patch
 BuildRequires:  %{flavor}-devel
 BuildRequires:  %{flavor}-lpeg
 BuildRequires:  %{flavor}-luarocks
@@ -59,6 +58,7 @@
 %{luarocks_install} %{mod_name}-%{rock_version}.*.rock
 
 %check
+export 
LUA_PATH="%{buildroot}%{lua_noarchdir}/?.lua;%{buildroot}%{lua_noarchdir}/?/init.lua;;"
 cd tests
 lua test_cosmo.lua
 

++++++ _multibuild ++++++
--- /var/tmp/diff_new_pack.8s6yrT/_old  2026-03-03 15:30:45.000596166 +0100
+++ /var/tmp/diff_new_pack.8s6yrT/_new  2026-03-03 15:30:45.004596331 +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.8s6yrT/_old  2026-03-03 15:30:45.028597320 +0100
+++ /var/tmp/diff_new_pack.8s6yrT/_new  2026-03-03 15:30:45.036597650 +0100
@@ -1,6 +1,6 @@
-mtime: 1761317259
-commit: 9e805e8aa85482ae27d189b0aec23513a75d4f447c4ab86c1fd0a25e6904c194
+mtime: 1769717850
+commit: 4381bcc53d6829dc1d1ff7c7392cb10b064e3b728e4cfcfa07b6d3cad6ea6ddb
 url: https://src.opensuse.org/lua/lua-cosmo.git
-revision: 9e805e8aa85482ae27d189b0aec23513a75d4f447c4ab86c1fd0a25e6904c194
+revision: 4381bcc53d6829dc1d1ff7c7392cb10b064e3b728e4cfcfa07b6d3cad6ea6ddb
 projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git
 

++++++ build.specials.obscpio ++++++
--- old/.gitignore      2025-10-24 16:47:50.000000000 +0200
+++ new/.gitignore      2026-01-29 21:18:04.000000000 +0100
@@ -4,3 +4,7 @@
 _build.*
 .pbuild
 lua*-cosmo-*-build/
+*.obscpio
+*.osc
+_build.*
+.pbuild

++++++ 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-29 21:18:04.000000000 +0100
@@ -0,0 +1,10 @@
+.osc
+*.obscpio
+*.osc
+_build.*
+.pbuild
+lua*-cosmo-*-build/
+*.obscpio
+*.osc
+_build.*
+.pbuild

++++++ lua55-build.patch ++++++
---
 src/cosmo.lua      |   13 ++++++++-----
 src/cosmo/fill.lua |   22 +++++++++++++---------
 2 files changed, 21 insertions(+), 14 deletions(-)

Index: cosmo-16.06.04/src/cosmo.lua
===================================================================
--- cosmo-16.06.04.orig/src/cosmo.lua   2016-06-04 20:59:21.000000000 +0200
+++ cosmo-16.06.04/src/cosmo.lua        2026-01-29 20:34:37.397380423 +0100
@@ -63,10 +63,11 @@
               end
               $if_args[===[
                   check_selector(selector_name, selector)
-                  for e, literal in wrap(selector), $args, true do
+                  for e_val, literal in wrap(selector), $args, true do
                     if literal then
-                      insert(out, tostring(e))
+                      insert(out, tostring(e_val))
                     else
+                      local e = e_val
                       if type(e) ~= "table" then
                         e = prepare_env({ it = tostring(e) }, env)
                       else
@@ -78,7 +79,8 @@
               ]===],
               [===[
                   if type(selector) == 'table' then
-                    for _, e in ipairs(selector) do
+                    for _, e_val in ipairs(selector) do
+                      local e = e_val
                       if type(e) ~= "table" then
                         e = prepare_env({ it = tostring(e) }, env)
                       else
@@ -88,10 +90,11 @@
                     end
                   else
                     check_selector(selector_name, selector)
-                    for e, literal in wrap(selector), nil, true do
+                    for e_val, literal in wrap(selector), nil, true do
                       if literal then
-                        insert(out, tostring(e))
+                        insert(out, tostring(e_val))
                       else
+                        local e = e_val
                         if type(e) ~= "table" then
                           e = prepare_env({ it = tostring(e) }, env)
                         else
Index: cosmo-16.06.04/src/cosmo/fill.lua
===================================================================
--- cosmo-16.06.04.orig/src/cosmo/fill.lua      2016-06-04 20:59:21.000000000 
+0200
+++ cosmo-16.06.04/src/cosmo/fill.lua   2026-01-29 20:19:31.069205449 +0100
@@ -79,6 +79,7 @@
     end
   else
     if args and args ~= "" and args ~= "{}" then
+      local proc_e
       check_selector(selector_name, selector)
       args = loadstring("local env = (...); return " .. args)(env)
       for e, literal in coroutine.wrap(selector), args, true do
@@ -86,22 +87,24 @@
           insert(out, tostring(e))
         else
           if type(e) ~= "table" then
-            e = prepare_env({ it = tostring(e) }, env)
+            proc_e = prepare_env({ it = tostring(e) }, env)
           else
-            e = prepare_env(e, env)
+            proc_e = prepare_env(e, env)
           end
-          interpreter.template({ env = e, out = out, opts = opts }, 
subtemplates[e.self._template or 1] or default)
+          interpreter.template({ env = proc_e, out = out, opts = opts },
+                               subtemplates[proc_e.self._template or 1] or 
default)
         end
       end
     else
       if type(selector) == 'table' then
         for _, e in ipairs(selector) do
           if type(e) ~= "table" then
-            e = prepare_env({ it = tostring(e) }, env)
+            proc_e = prepare_env({ it = tostring(e) }, env)
           else
-            e = prepare_env(e, env)
+            proc_e = prepare_env(e, env)
           end
-          interpreter.template({ env = e, out = out, opts = opts }, 
subtemplates[e.self._template or 1] or default)
+          interpreter.template({ env = proc_e, out = out, opts = opts },
+                               subtemplates[proc_e.self._template or 1] or 
default)
         end
       else
         check_selector(selector_name, selector)
@@ -110,11 +113,12 @@
             insert(out, tostring(e))
           else
             if type(e) ~= "table" then
-              e = prepare_env({ it = tostring(e) }, env)
+              proc_e = prepare_env({ it = tostring(e) }, env)
             else
-              e = prepare_env(e, env)
+              proc_e = prepare_env(e, env)
             end
-            interpreter.template({ env = e, out = out, opts = opts }, 
subtemplates[e.self._template or 1] or default)
+            interpreter.template({ env = proc_e, out = out, opts = opts },
+                                 subtemplates[proc_e.self._template or 1] or 
default)
           end
         end
       end

Reply via email to