From 08dff128be982af14f63051c158e3f47b7566b634737af69a0d2f5f3147c6e99 Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Tue, 8 Oct 2024 21:23:16 +0000 Subject: [PATCH 1/6] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua54?expand=0&rev=29 --- _aggregate | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 _aggregate diff --git a/_aggregate b/_aggregate new file mode 100644 index 0000000..0787838 --- /dev/null +++ b/_aggregate @@ -0,0 +1,6 @@ + + + lua54 + + + -- 2.51.1 From 26482ae0881140fd82a6d51bddff146b24db8458bd5dc8ae760cdabda4d631ac Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Tue, 8 Oct 2024 21:26:50 +0000 Subject: [PATCH 2/6] restore packaging OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua54?expand=0&rev=30 --- _aggregate | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 _aggregate diff --git a/_aggregate b/_aggregate deleted file mode 100644 index 0787838..0000000 --- a/_aggregate +++ /dev/null @@ -1,6 +0,0 @@ - - - lua54 - - - -- 2.51.1 From c1ae7e2e87f9adcb27ad2a900a15439b59791ba5453d442f7f56c50428259466 Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Fri, 25 Apr 2025 20:18:02 +0000 Subject: [PATCH 3/6] Accepting request 1272084 from devel:languages:lua - Fix license: it is MIT, not GPL-3.0-or-later. OBS-URL: https://build.opensuse.org/request/show/1272084 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua54?expand=0&rev=31 --- _scmsync.obsinfo | 5 +++++ build.specials.obscpio | 3 +++ lua54.changes | 5 +++++ lua54.spec | 2 +- 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..03a6da9 --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,5 @@ +mtime: 1745395177 +commit: b832770e086a5a1e39f71042603b98727463be28832c176b66ffaa599bc495a2 +url: https://src.opensuse.org/lua/lua54.git +revision: b832770e086a5a1e39f71042603b98727463be28832c176b66ffaa599bc495a2 +projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..eb6105c --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b4a2f01273673da657827529d53e019abdbd5a0f699649c50ed1069854b2c49 +size 304 diff --git a/lua54.changes b/lua54.changes index 83c61e9..347e137 100644 --- a/lua54.changes +++ b/lua54.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 23 07:55:24 UTC 2025 - Matej Cepl + +- Fix license: it is MIT, not GPL-3.0-or-later. + ------------------------------------------------------------------- Wed Jul 24 11:26:59 UTC 2024 - Callum Farmer diff --git a/lua54.spec b/lua54.spec index 8173b1e..bc19a70 100644 --- a/lua54.spec +++ b/lua54.spec @@ -29,7 +29,7 @@ Name: lua54%{name_ext} Version: 5.4.7 Release: 0 Summary: Small Embeddable Language with Procedural Syntax -License: GPL-3.0-or-later +License: MIT Group: Development/Languages/Other URL: https://www.lua.org Source: https://www.lua.org/ftp/lua-%{version}.tar.gz -- 2.51.1 From 8105372df555bad33d8e3bbfea35798c703381bcafd6a706549c72394906e0e8 Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Tue, 15 Jul 2025 14:42:40 +0000 Subject: [PATCH 4/6] Accepting request 1292454 from devel:languages:lua 5.4.8 OBS-URL: https://build.opensuse.org/request/show/1292454 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua54?expand=0&rev=32 --- _scmsync.obsinfo | 6 ++--- build.specials.obscpio | 2 +- lua-5.4.7-tests.tar.gz | 3 --- lua-5.4.7.tar.gz | 3 --- lua-5.4.8-tests.tar.gz | 3 +++ lua-5.4.8.tar.gz | 3 +++ lua54.changes | 7 ++++++ lua54.spec | 3 ++- upstream1.patch | 53 ++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 72 insertions(+), 11 deletions(-) delete mode 100644 lua-5.4.7-tests.tar.gz delete mode 100644 lua-5.4.7.tar.gz create mode 100644 lua-5.4.8-tests.tar.gz create mode 100644 lua-5.4.8.tar.gz create mode 100644 upstream1.patch diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 03a6da9..3897e45 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,5 +1,5 @@ -mtime: 1745395177 -commit: b832770e086a5a1e39f71042603b98727463be28832c176b66ffaa599bc495a2 +mtime: 1752346359 +commit: a815e81e871e1d8075894cf0ba9f282ec29dbcfa31de38778d86de75c55c98bc url: https://src.opensuse.org/lua/lua54.git -revision: b832770e086a5a1e39f71042603b98727463be28832c176b66ffaa599bc495a2 +revision: a815e81e871e1d8075894cf0ba9f282ec29dbcfa31de38778d86de75c55c98bc projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git diff --git a/build.specials.obscpio b/build.specials.obscpio index eb6105c..8acce0e 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8b4a2f01273673da657827529d53e019abdbd5a0f699649c50ed1069854b2c49 +oid sha256:65f113525f636234debd1059b75e665c945b7d260368247077dd8544f7521bcd size 304 diff --git a/lua-5.4.7-tests.tar.gz b/lua-5.4.7-tests.tar.gz deleted file mode 100644 index 021231c..0000000 --- a/lua-5.4.7-tests.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8a4898ffe4c7613c8009327a0722db7a41ef861d526c77c5b46114e59ebf811e -size 136602 diff --git a/lua-5.4.7.tar.gz b/lua-5.4.7.tar.gz deleted file mode 100644 index b3ae162..0000000 --- a/lua-5.4.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30 -size 374097 diff --git a/lua-5.4.8-tests.tar.gz b/lua-5.4.8-tests.tar.gz new file mode 100644 index 0000000..eedeb45 --- /dev/null +++ b/lua-5.4.8-tests.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9581d5a7c39ffbf29b8ccde2709083c380f7bbddbd968dcb15712d2f2e33f4e5 +size 137066 diff --git a/lua-5.4.8.tar.gz b/lua-5.4.8.tar.gz new file mode 100644 index 0000000..1e53b0f --- /dev/null +++ b/lua-5.4.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f18ddae154e793e46eeab727c59ef1c0c0c2b744e7b94219710d76f530629ae +size 374332 diff --git a/lua54.changes b/lua54.changes index 347e137..c042fb8 100644 --- a/lua54.changes +++ b/lua54.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jul 12 18:38:52 UTC 2025 - Callum Farmer + +- Update to version 5.4.8: + * Fixed 8 bugs from 5.4.7 +- Add upstream1.patch: Numbered upstream patch + ------------------------------------------------------------------- Wed Apr 23 07:55:24 UTC 2025 - Matej Cepl diff --git a/lua54.spec b/lua54.spec index bc19a70..52bedfa 100644 --- a/lua54.spec +++ b/lua54.spec @@ -26,7 +26,7 @@ %define major_version 5.4 %define libname liblua5_4-5 Name: lua54%{name_ext} -Version: 5.4.7 +Version: 5.4.8 Release: 0 Summary: Small Embeddable Language with Procedural Syntax License: MIT @@ -45,6 +45,7 @@ Patch3: main_test.patch Patch6: shared_link.patch # PATCH-FIX-UPSTREAM inspect errno only after failure Patch8: execresult.patch +Patch100: upstream1.patch Requires(post): update-alternatives Requires(postun):update-alternatives Provides: lua = %{version} diff --git a/upstream1.patch b/upstream1.patch new file mode 100644 index 0000000..8b88db1 --- /dev/null +++ b/upstream1.patch @@ -0,0 +1,53 @@ +From 1b0f943da7dfb25987456a77259edbeea0b94edc Mon Sep 17 00:00:00 2001 +From: Roberto Ierusalimschy +Date: Mon, 16 Jun 2025 16:33:02 -0300 +Subject: [PATCH] Bug: new metatable in weak table can fool the GC + +All-weak tables are not being revisited after being visited during +propagation; if it gets a new metatable after that, the new metatable +may not be marked. +--- + lgc.c | 8 ++++++-- + testes/gc.lua | 10 ++++++++++ + 2 files changed, 16 insertions(+), 2 deletions(-) + +diff --git a/lgc.c b/lgc.c +index 5817f9eec3..c01660abc5 100644 +--- a/src/lgc.c ++++ b/src/lgc.c +@@ -553,8 +553,12 @@ static lu_mem traversetable (global_State *g, Table *h) { + traverseweakvalue(g, h); + else if (!weakvalue) /* strong values? */ + traverseephemeron(g, h, 0); +- else /* all weak */ +- linkgclist(h, g->allweak); /* nothing to traverse now */ ++ else { /* all weak */ ++ if (g->gcstate == GCSpropagate) ++ linkgclist(h, g->grayagain); /* must visit again its metatable */ ++ else ++ linkgclist(h, g->allweak); /* must clear collected entries */ ++ } + } + else /* not weak */ + traversestrongtable(g, h); +diff --git a/testes/gc.lua b/testes/gc.lua +index 03093e34ff..f017f33056 100644 +--- a/testes/gc.lua ++++ b/testes/gc.lua +@@ -301,6 +301,16 @@ collectgarbage() + assert(next(a) == string.rep('$', 11)) + + ++if T then -- bug since 5.3: all-weak tables are not being revisited ++ T.gcstate("propagate") ++ local t = setmetatable({}, {__mode = "kv"}) ++ T.gcstate("atomic") -- 't' was visited ++ setmetatable(t, {__mode = "kv"}) ++ T.gcstate("pause") -- its new metatable is not being visited ++ assert(getmetatable(t).__mode == "kv") ++end ++ ++ + -- 'bug' in 5.1 + a = {} + local t = {x = 10} -- 2.51.1 From de8bc59cb3818f7f2774325f5b5d06217dc629ccc3dca1dc1ac0d351cbae4862 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Sun, 3 Aug 2025 11:35:52 +0000 Subject: [PATCH 5/6] Accepting request 1296995 from devel:languages:lua - Switch from update-alternatives to libalternatives (and dependency on lua-interpreter) - improve .gitignore and overall improve the packaging. - this package also provides devel symlink directly and conflicts other -devel packages - fix update-alternatives * Stack overflow in vararg functions with many fixed parameters called with few arguments. * Wrong assert when reporting concatenation errors (manifests only when Lua is compiled in debug mode). * Wrong error message in some short-cut expressions. * luac listings choke on long strings. - export luaU_dump in order to fix linking of luac binary * LUA_IFUNC must be defined as upstream but without "extern", * LUA_API must be defined as visibility default would not work because LUA_CDIR constant is wrong in x86_64 - devel package must require libluaver = %{version} or scripts [lua_pushstring] and pushlstring return string * too many variables in an assignment may cause a C stack overflow * an error in a module loaded through the '-l' option shows no * gsub may go wild when wrongly called without its third argument and with a large subject * table.remove removes last element of a table when given an out-of-bound index * stand-alone interpreter shows incorrect error message when * debug.sethook/gethook may overflow the thread's stack - Switch from update-alternatives to libalternatives (and OBS-URL: https://build.opensuse.org/request/show/1296995 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua54?expand=0&rev=33 --- _scmsync.obsinfo | 6 ++-- build.specials.obscpio | 4 +-- execresult.patch | 12 ++++--- lua54.changes | 55 +++++++++++++++++------------ lua54.spec | 80 +++++++++++++++++++++++++++--------------- main_test.patch | 10 +++--- shared_link.patch | 22 +++++++----- 7 files changed, 116 insertions(+), 73 deletions(-) diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 3897e45..a28002e 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,5 +1,5 @@ -mtime: 1752346359 -commit: a815e81e871e1d8075894cf0ba9f282ec29dbcfa31de38778d86de75c55c98bc +mtime: 1754036263 +commit: 0fa5783653f81957fb929e456b70215c8cdf0e1d2ca6e83c48b987518f33bd78 url: https://src.opensuse.org/lua/lua54.git -revision: a815e81e871e1d8075894cf0ba9f282ec29dbcfa31de38778d86de75c55c98bc +revision: 0fa5783653f81957fb929e456b70215c8cdf0e1d2ca6e83c48b987518f33bd78 projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git diff --git a/build.specials.obscpio b/build.specials.obscpio index 8acce0e..2f91460 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:65f113525f636234debd1059b75e665c945b7d260368247077dd8544f7521bcd -size 304 +oid sha256:628e9a57e0ca61ab4509a5fd98056bdfb8122c9f860b65d9c9a02795aa45002f +size 320 diff --git a/execresult.patch b/execresult.patch index 85da4a8..52e712f 100644 --- a/execresult.patch +++ b/execresult.patch @@ -1,10 +1,14 @@ Inspect errno only after failure -Index: lua-5.4.6/src/lauxlib.c +--- + src/lauxlib.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: lua-5.4.8/src/lauxlib.c =================================================================== ---- lua-5.4.6.orig/src/lauxlib.c -+++ lua-5.4.6/src/lauxlib.c -@@ -283,7 +283,7 @@ LUALIB_API int luaL_fileresult (lua_Stat +--- lua-5.4.8.orig/src/lauxlib.c 2025-07-15 22:59:14.411309750 +0200 ++++ lua-5.4.8/src/lauxlib.c 2025-07-15 22:59:24.858384379 +0200 +@@ -286,7 +286,7 @@ LUALIB_API int luaL_execresult (lua_State *L, int stat) { diff --git a/lua54.changes b/lua54.changes index c042fb8..8401ff1 100644 --- a/lua54.changes +++ b/lua54.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Jul 19 09:23:33 UTC 2025 - Matej Cepl + +- Switch from update-alternatives to libalternatives (and + dependency on lua-interpreter) +- improve .gitignore and overall improve the packaging. +- this package also provides devel symlink directly and conflicts + other -devel packages + ------------------------------------------------------------------- Sat Jul 12 18:38:52 UTC 2025 - Callum Farmer @@ -400,7 +409,7 @@ Wed Sep 17 15:04:25 UTC 2014 - i@marguerite.su ------------------------------------------------------------------- Fri Sep 12 09:19:07 UTC 2014 - pgajdos@suse.com -- fix update-alternatives +- fix update-alternatives ------------------------------------------------------------------- Wed Sep 10 10:21:23 UTC 2014 - pgajdos@suse.com @@ -424,13 +433,13 @@ Mon Mar 31 11:05:05 UTC 2014 - pgajdos@suse.com Mon Sep 9 11:12:20 UTC 2013 - pgajdos@suse.com - updated to 5.2.2: bugfix release, fixed: - * Stack overflow in vararg functions with many fixed parameters - called with few arguments. + * Stack overflow in vararg functions with many fixed parameters + called with few arguments. * Garbage collector can trigger too many times in recursive loops. - * Wrong assert when reporting concatenation errors (manifests only - when Lua is compiled in debug mode). - * Wrong error message in some short-cut expressions. - * luac listings choke on long strings. + * Wrong assert when reporting concatenation errors (manifests only + when Lua is compiled in debug mode). + * Wrong error message in some short-cut expressions. + * luac listings choke on long strings. * see http://www.lua.org/bugs.html for details ------------------------------------------------------------------- @@ -451,32 +460,32 @@ Tue Feb 5 14:18:18 UTC 2013 - coolo@suse.com ------------------------------------------------------------------- Thu Nov 15 15:11:34 UTC 2012 - pgajdos@suse.com -- export luaU_dump in order to fix linking of luac binary +- export luaU_dump in order to fix linking of luac binary ------------------------------------------------------------------- Tue Oct 9 14:55:31 UTC 2012 - crrodriguez@opensuse.org - Tweak lua-suse.diff again: -* LUA_IFUNC must be defined as upstream but without "extern", +* LUA_IFUNC must be defined as upstream but without "extern", revert the previous mod. -* LUA_API must be defined as visibility default +* LUA_API must be defined as visibility default ------------------------------------------------------------------- Thu Aug 16 00:34:57 UTC 2012 - crrodriguez@opensuse.org - Even after the previous update, third party modules/libraries - would not work because LUA_CDIR constant is wrong in x86_64 + would not work because LUA_CDIR constant is wrong in x86_64 ------------------------------------------------------------------- Wed Aug 15 22:34:12 UTC 2012 - crrodriguez@opensuse.org -- devel package must require libluaver = %{version} +- devel package must require libluaver = %{version} ------------------------------------------------------------------- Wed Aug 15 22:24:01 UTC 2012 - crrodriguez@opensuse.org - Broken lua-suse patch breaks loading third party modules - or scripts + or scripts ------------------------------------------------------------------- Mon Jun 18 09:09:13 UTC 2012 - pgajdos@suse.com @@ -556,7 +565,7 @@ Wed Dec 21 13:58:22 UTC 2011 - pgajdos@suse.com lua_rawgetp, lua_rawsetp, lua_upvalueid, lua_upvaluejoin, lua_version, luaL_checkversion, luaL_setmetatable, luaL_testudata, luaL_tolstring - [lua_pushstring] and pushlstring return string + [lua_pushstring] and pushlstring return string [nparams] and isvararg available in debug API new lua_Unsigned * Implementation @@ -653,18 +662,18 @@ Tue Feb 19 10:37:22 CET 2008 - pgajdos@suse.cz - created -doc package - updated to version 5.1.3, bug fix release. Fixed bugs: * wrong error message in some concatenations - * too many variables in an assignment may cause a C stack - overflow - * an error in a module loaded through the '-l' option shows no + * too many variables in an assignment may cause a C stack + overflow + * an error in a module loaded through the '-l' option shows no traceback - * gsub may go wild when wrongly called without its third - argument and with a large subject - * table.remove removes last element of a table when given - an out-of-bound index + * gsub may go wild when wrongly called without its third + argument and with a large subject + * table.remove removes last element of a table when given + an out-of-bound index * lua_setfenv may crash if called over an invalid object - * stand-alone interpreter shows incorrect error message when + * stand-alone interpreter shows incorrect error message when the "message" is a coroutine. - * debug.sethook/gethook may overflow the thread's stack + * debug.sethook/gethook may overflow the thread's stack ------------------------------------------------------------------- Tue Jul 24 14:31:30 CEST 2007 - pgajdos@suse.cz diff --git a/lua54.spec b/lua54.spec index 52bedfa..1514091 100644 --- a/lua54.spec +++ b/lua54.spec @@ -25,6 +25,11 @@ %endif %define major_version 5.4 %define libname liblua5_4-5 +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif Name: lua54%{name_ext} Version: 5.4.8 Release: 0 @@ -46,15 +51,24 @@ Patch6: shared_link.patch # PATCH-FIX-UPSTREAM inspect errno only after failure Patch8: execresult.patch Patch100: upstream1.patch -Requires(post): update-alternatives -Requires(postun):update-alternatives +Conflicts: lua Provides: lua = %{version} Obsoletes: lua < %{version} Provides: Lua(API) = %{major_version} +%if %{with libalternatives} +BuildRequires: alts +BuildRequires: lua-interpreter +Requires: alts +Requires: lua-interpreter +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %if "%{flavor}" == "test" BuildRequires: lua54 BuildRequires: lua54-devel %else +#!BuildIgnore: lua54 BuildRequires: libtool BuildRequires: lua-macros BuildRequires: pkgconfig @@ -75,13 +89,11 @@ of C functions, written in ANSI C. %package devel Summary: Development files for lua -License: MIT Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} Requires: %{name} = %{version} Requires: lua-macros -Requires(post): update-alternatives -Requires(postun):update-alternatives +Conflicts: lua-devel Provides: lua-devel = %{version} Provides: Lua(devel) = %{major_version} Provides: pkgconfig(lua) = %{version} @@ -96,7 +108,6 @@ application. %package -n %{libname} Summary: The Lua integration library -License: MIT Group: System/Libraries Provides: liblua5_4 = %{version}-%{release} Obsoletes: liblua5_4 < %{version}-%{release} @@ -123,7 +134,6 @@ of C functions, written in ANSI C. %package doc Summary: Documentation for Lua, a small embeddable language -License: MIT Group: Documentation/HTML BuildArch: noarch %if 0%{?suse_version} > 1315 @@ -151,8 +161,10 @@ mv lua-%{version}-tests testes %if "%{flavor}" != "test" cat doc/lua.1 | sed 's/TH LUA 1/TH LUA%{major_version} 1/' > doc/lua%{major_version}.1 cat doc/luac.1 | sed 's/TH LUAC 1/TH LUAC%{major_version} 1/' > doc/luac%{major_version}.1 +%endif %build +%if "%{flavor}" != "test" sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h %make_build linux-readline -C src \ CC="cc" LIBDIR="%{_libdir}" \ @@ -184,9 +196,21 @@ Version: %{version} Libs: -llua%{major_version} -lm Cflags: -I\${includedir} EOF - install -D -m 644 lua%{major_version}.pc %{buildroot}%{_libdir}/pkgconfig/lua%{major_version}.pc +%if %{with libalternatives} +# alternatives - create configuration file +mkdir -p %{buildroot}%{_datadir}/libalternatives/lua +cat > %{buildroot}%{_datadir}/libalternatives/lua/54.conf < %{buildroot}%{_datadir}/libalternatives/luac/54.conf < %s]], prompt, prog, out) local t = getoutput() diff --git a/shared_link.patch b/shared_link.patch index 4ce2df2..cd41c1d 100644 --- a/shared_link.patch +++ b/shared_link.patch @@ -4,8 +4,10 @@ src/lundump.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) ---- a/src/ldebug.h -+++ b/src/ldebug.h +Index: lua-5.4.8/src/ldebug.h +=================================================================== +--- lua-5.4.8.orig/src/ldebug.h 2025-07-15 22:59:14.442309680 +0200 ++++ lua-5.4.8/src/ldebug.h 2025-07-15 22:59:22.983017316 +0200 @@ -36,7 +36,7 @@ #endif @@ -15,9 +17,11 @@ LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos); LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, ---- a/src/lmem.h -+++ b/src/lmem.h -@@ -81,7 +81,7 @@ LUAI_FUNC void *luaM_realloc_ (lua_State +Index: lua-5.4.8/src/lmem.h +=================================================================== +--- lua-5.4.8.orig/src/lmem.h 2025-07-15 22:59:14.442309680 +0200 ++++ lua-5.4.8/src/lmem.h 2025-07-15 22:59:22.983203934 +0200 +@@ -81,7 +81,7 @@ size_t size); LUAI_FUNC void *luaM_saferealloc_ (lua_State *L, void *block, size_t oldsize, size_t size); @@ -26,9 +30,11 @@ LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int nelems, int *size, int size_elem, int limit, const char *what); ---- a/src/lundump.h -+++ b/src/lundump.h -@@ -30,7 +30,7 @@ +Index: lua-5.4.8/src/lundump.h +=================================================================== +--- lua-5.4.8.orig/src/lundump.h 2025-07-15 22:59:14.442309680 +0200 ++++ lua-5.4.8/src/lundump.h 2025-07-15 22:59:22.983321338 +0200 +@@ -29,7 +29,7 @@ LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); /* dump one chunk; from ldump.c */ -- 2.51.1 From 6fe8f025a16521057ba36417e1b31c56c55b525ec983dca99e8fc47fe54c94c1 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 6 Aug 2025 12:30:48 +0000 Subject: [PATCH 6/6] Accepting request 1297784 from devel:languages:lua - Switch from update-alternatives to libalternatives (and dependency on lua-interpreter) - improve .gitignore and overall improve the packaging. - this package also provides devel symlink directly and conflicts other -devel packages - fix update-alternatives * Stack overflow in vararg functions with many fixed parameters called with few arguments. * Wrong assert when reporting concatenation errors (manifests only when Lua is compiled in debug mode). * Wrong error message in some short-cut expressions. * luac listings choke on long strings. - export luaU_dump in order to fix linking of luac binary * LUA_IFUNC must be defined as upstream but without "extern", * LUA_API must be defined as visibility default would not work because LUA_CDIR constant is wrong in x86_64 - devel package must require libluaver = %{version} or scripts [lua_pushstring] and pushlstring return string * too many variables in an assignment may cause a C stack overflow * an error in a module loaded through the '-l' option shows no * gsub may go wild when wrongly called without its third argument and with a large subject * table.remove removes last element of a table when given an out-of-bound index * stand-alone interpreter shows incorrect error message when * debug.sethook/gethook may overflow the thread's stack - Switch from update-alternatives to libalternatives (and OBS-URL: https://build.opensuse.org/request/show/1297784 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua54?expand=0&rev=34 --- _scmsync.obsinfo | 6 +++--- build.specials.obscpio | 2 +- lua54.changes | 6 ++++++ lua54.spec | 3 +-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index a28002e..629bda7 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,5 +1,5 @@ -mtime: 1754036263 -commit: 0fa5783653f81957fb929e456b70215c8cdf0e1d2ca6e83c48b987518f33bd78 +mtime: 1754409984 +commit: e748694fd6b34ea2082ff3cbfaf7d9ef41076c486205ab4507e5c766aa4d8b3b url: https://src.opensuse.org/lua/lua54.git -revision: 0fa5783653f81957fb929e456b70215c8cdf0e1d2ca6e83c48b987518f33bd78 +revision: e748694fd6b34ea2082ff3cbfaf7d9ef41076c486205ab4507e5c766aa4d8b3b projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git diff --git a/build.specials.obscpio b/build.specials.obscpio index 2f91460..0af3cbc 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:628e9a57e0ca61ab4509a5fd98056bdfb8122c9f860b65d9c9a02795aa45002f +oid sha256:8d8e2834b74e9e70da225f47f95195342fe3be3db332b3b33f31759b3a8686b6 size 320 diff --git a/lua54.changes b/lua54.changes index 8401ff1..da15bc9 100644 --- a/lua54.changes +++ b/lua54.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 5 07:22:18 UTC 2025 - Matej Cepl + +- interpreter should only provide, not conflict lua symbol + (bsc#1247521) + ------------------------------------------------------------------- Sat Jul 19 09:23:33 UTC 2025 - Matej Cepl diff --git a/lua54.spec b/lua54.spec index 1514091..eb3ecf9 100644 --- a/lua54.spec +++ b/lua54.spec @@ -51,7 +51,6 @@ Patch6: shared_link.patch # PATCH-FIX-UPSTREAM inspect errno only after failure Patch8: execresult.patch Patch100: upstream1.patch -Conflicts: lua Provides: lua = %{version} Obsoletes: lua < %{version} Provides: Lua(API) = %{major_version} @@ -68,9 +67,9 @@ Requires(postun): update-alternatives BuildRequires: lua54 BuildRequires: lua54-devel %else +# Ensure we can build without $self #!BuildIgnore: lua54 BuildRequires: libtool -BuildRequires: lua-macros BuildRequires: pkgconfig BuildRequires: readline-devel %endif -- 2.51.1