Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lua-penlight for openSUSE:Factory checked in at 2026-01-28 15:14:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lua-penlight (Old) and /work/SRC/openSUSE:Factory/.lua-penlight.new.1928 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lua-penlight" Wed Jan 28 15:14:26 2026 rev:9 rq:1328813 version:1.14.0 Changes: -------- --- /work/SRC/openSUSE:Factory/lua-penlight/lua-penlight.changes 2025-11-05 16:21:15.197515269 +0100 +++ /work/SRC/openSUSE:Factory/.lua-penlight.new.1928/lua-penlight.changes 2026-01-28 15:17:23.523582751 +0100 @@ -1,0 +2,6 @@ +Fri Jan 23 01:22:28 UTC 2026 - Matej Cepl <[email protected]> + +- Add lua55-build.patch to fix Lua 5.5 compatibility issues + (gh#lunarmodules/Penlight!512) + +------------------------------------------------------------------- New: ---- lua55-build.patch ----------(New B)---------- New: - Add lua55-build.patch to fix Lua 5.5 compatibility issues (gh#lunarmodules/Penlight!512) ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lua-penlight.spec ++++++ --- /var/tmp/diff_new_pack.ARcM9k/_old 2026-01-28 15:17:24.547625375 +0100 +++ /var/tmp/diff_new_pack.ARcM9k/_new 2026-01-28 15:17:24.551625541 +0100 @@ -30,6 +30,9 @@ Group: Development/Languages/Other URL: https://lunarmodules.github.io/Penlight/ Source0: https://github.com/lunarmodules/Penlight/archive/%{version}/%{rname}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM lua55-build.patch gh#lunarmodules/Penlight!512 [email protected] +# Make the package working with Lua 5.5 +Patch0: lua55-build.patch BuildRequires: %{flavor}-devel BuildRequires: %{flavor}-ldoc BuildRequires: %{flavor}-luafilesystem ++++++ _multibuild ++++++ --- /var/tmp/diff_new_pack.ARcM9k/_old 2026-01-28 15:17:24.615628205 +0100 +++ /var/tmp/diff_new_pack.ARcM9k/_new 2026-01-28 15:17:24.619628372 +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.ARcM9k/_old 2026-01-28 15:17:24.651629703 +0100 +++ /var/tmp/diff_new_pack.ARcM9k/_new 2026-01-28 15:17:24.663630203 +0100 @@ -1,6 +1,6 @@ -mtime: 1761317447 -commit: f43eb9acbf674b519544a906ec38f389e94bbd05972efc4720315f19dbe38768 +mtime: 1769131413 +commit: 819a3317ab824ac313b913ef93aa2864375fd299848b19be7434c906caad60b1 url: https://src.opensuse.org/lua/lua-penlight.git -revision: f43eb9acbf674b519544a906ec38f389e94bbd05972efc4720315f19dbe38768 +revision: 819a3317ab824ac313b913ef93aa2864375fd299848b19be7434c906caad60b1 projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git ++++++ build.specials.obscpio ++++++ --- old/.gitignore 2025-10-24 16:50:57.000000000 +0200 +++ new/.gitignore 2026-01-23 02:24:18.000000000 +0100 @@ -1 +1,5 @@ -.osc +*.obscpio +*.osc +_build.* +.pbuild +lua*-penlight-*-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-01-23 02:24:18.000000000 +0100 @@ -0,0 +1,5 @@ +*.obscpio +*.osc +_build.* +.pbuild +lua*-penlight-*-build/ ++++++ lua55-build.patch ++++++ --- lua/pl/app.lua | 21 ++++++++++++--------- lua/pl/lapp.lua | 4 ++-- lua/pl/seq.lua | 30 +++++++++++++++++++----------- lua/pl/tablex.lua | 6 +++--- lua/pl/test.lua | 2 +- 5 files changed, 37 insertions(+), 26 deletions(-) Index: Penlight-1.14.0/lua/pl/app.lua =================================================================== --- Penlight-1.14.0.orig/lua/pl/app.lua 2024-04-15 13:37:20.000000000 +0200 +++ Penlight-1.14.0/lua/pl/app.lua 2026-01-23 01:30:34.957259286 +0100 @@ -194,9 +194,10 @@ local with_values = {} for k,v in pairs(flags_with_values or {}) do if type(k) == "number" then - k = v + with_values[v] = true + else + with_values[k] = true end - with_values[k] = true end local valid @@ -207,19 +208,21 @@ else valid = {} for k,aliases in pairs(flags_valid) do + local idx_k = k + local idx_aliases = aliases if type(k) == "number" then -- array/list entry - k = aliases + idx_k = aliases end - if type(aliases) == "string" then -- single alias - aliases = { aliases } + if type(idx_aliases) == "string" then -- single alias + idx_aliases = { aliases } end - if type(aliases) == "table" then -- list of aliases + if type(idx_aliases) == "table" then -- list of aliases -- it's the alternate name, so add the proper mappings - for i, alias in ipairs(aliases) do - valid[alias] = k + for i, alias in ipairs(idx_aliases) do + valid[alias] = idx_k end end - valid[k] = k + valid[idx_k] = idx_k end do local new_with_values = {} -- needed to prevent "invalid key to 'next'" error Index: Penlight-1.14.0/lua/pl/lapp.lua =================================================================== --- Penlight-1.14.0.orig/lua/pl/lapp.lua 2024-04-15 13:37:20.000000000 +0200 +++ Penlight-1.14.0/lua/pl/lapp.lua 2026-01-23 02:08:58.549364202 +0100 @@ -215,10 +215,10 @@ end - for line in lines(str) do + for l in lines(str) do local res = {} local optparm,defval,vtype,constraint,rest - line = lstrip(line) + local line = lstrip(l) local function check(str) return match(str,line,res) end Index: Penlight-1.14.0/lua/pl/seq.lua =================================================================== --- Penlight-1.14.0.orig/lua/pl/seq.lua 2024-04-15 13:37:20.000000000 +0200 +++ Penlight-1.14.0/lua/pl/seq.lua 2026-01-23 01:57:01.301108040 +0100 @@ -67,9 +67,9 @@ if not nexti then nexti = ipairs{} end - local key,value = 0 + local key, value = 0 return function() - key,value = nexti(t,key) + key, value = nexti(t,key) return value end end @@ -126,9 +126,9 @@ function seq.minmax(iter) local vmin,vmax = 1e70,-1e70 for v in default_iter(iter) do - v = tonumber(v) - if v < vmin then vmin = v end - if v > vmax then vmax = v end + local idx_v = tonumber(v) + if idx_v < vmin then vmin = idx_v end + if idx_v > vmax then vmax = idx_v end end return vmin,vmax end @@ -140,8 +140,11 @@ local s = 0 local i = 0 for v in default_iter(iter) do - if fn then v = fn(v) end - s = s + v + local idx_v = v + if fn then + idx_v = fn(v) + end + s = s + idx_v i = i + 1 end return s,i @@ -263,7 +266,9 @@ function seq.unique(iter,returns_table) local t = seq.count_map(iter) local res,k = {},1 - for key in pairs(t) do res[k] = key; k = k + 1 end + for key in pairs(t) do + res[k] = key; k = k + 1 + end table.sort(res) if returns_table then return res @@ -290,12 +295,15 @@ end local k = 1 for v in default_iter(iter) do - if fmt then v = fmt(v) end + local idx_v = v + if fmt then + idx_v = fmt(v) + end if k < nfields then - write(v,sep) + write(idx_v,sep) k = k + 1 else - write(v,'\n') + write(idx_v,'\n') k = 1 end end Index: Penlight-1.14.0/lua/pl/tablex.lua =================================================================== --- Penlight-1.14.0.orig/lua/pl/tablex.lua 2024-04-15 13:37:20.000000000 +0200 +++ Penlight-1.14.0/lua/pl/tablex.lua 2026-01-23 01:10:27.187737257 +0100 @@ -103,9 +103,9 @@ cache[t] = res local mt = getmetatable(t) for k,v in pairs(t) do - k = cycle_aware_copy(k, cache) - v = cycle_aware_copy(v, cache) - res[k] = v + local new_k = cycle_aware_copy(k, cache) + local new_v = cycle_aware_copy(v, cache) + res[new_k] = new_v end setmetatable(res,mt) return res Index: Penlight-1.14.0/lua/pl/test.lua =================================================================== --- Penlight-1.14.0.orig/lua/pl/test.lua 2024-04-15 13:37:20.000000000 +0200 +++ Penlight-1.14.0/lua/pl/test.lua 2026-01-23 02:02:22.968585922 +0100 @@ -91,7 +91,7 @@ else ok, err = pcall(fn) end - if ok or err:match(e)==nil then + if ok or (e and err:match(e)==nil) then complain (err,e,"these errors did not match",where) end end
