Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lua-macros for openSUSE:Factory checked in at 2026-11-24 12:22:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lua-macros (Old) and /work/SRC/openSUSE:Factory/.lua-macros.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lua-macros" Tue Nov 24 12:22:30 2026 rev:18 rq:1399818 version:20210827 Changes: -------- --- /work/SRC/openSUSE:Factory/lua-macros/lua-macros.changes 2026-10-26 09:57:48.521190415 +0100 +++ /work/SRC/openSUSE:Factory/.lua-macros.new.1340718/lua-macros.changes 2026-11-24 12:22:36.941757253 +0100 @@ -1,0 +2,11 @@ +Sat Nov 14 18:46:12 UTC 2026 - Matej Cepl <[email protected]> + +- Derive %%lua_version from %%flavor (lua51 … lua55, luajit) + instead of asking the unversioned lua interpreter. lua is an + alternative and can point to a different interpreter than the + flavor being built, e.g. lua54 in a luajit build. The + interpreter is still asked for packages without a Lua flavor, + with %%lua_version_default as the last resort instead of + printing nil. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.wmIs5D/_old 2026-11-24 12:22:39.061847080 +0100 +++ /var/tmp/diff_new_pack.wmIs5D/_new 2026-11-24 12:22:39.068847377 +0100 @@ -1,6 +1,7 @@ -mtime: 1784727737 -commit: 14ef879043755a57ac16834cf348534455c757b63f2135ff04d8d5efa044f880 +mtime: 1794696123 +commit: b8abecf1450cb2cd6577d3891648bb61210aa344c225e374ead63840bc9f708d url: https://src.opensuse.org/lua/lua-macros -revision: 14ef879043755a57ac16834cf348534455c757b63f2135ff04d8d5efa044f880 +revision: b8abecf1450cb2cd6577d3891648bb61210aa344c225e374ead63840bc9f708d +trackingbranch: factory 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-11-14 23:42:03.000000000 +0100 @@ -0,0 +1,9 @@ +.osc +_scmsync.obsinfo +_buildconfig-* +_buildinfo-*.xml +lua-macros-*-build/ +*.obscpio +*.osc +_build.* +.pbuild diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/install-lua-rock.sh new/install-lua-rock.sh --- old/install-lua-rock.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/install-lua-rock.sh 2026-11-14 23:42:03.000000000 +0100 @@ -0,0 +1,15 @@ +#!/bin/bash +set -ex + +# 1. %{lua_version} +# 2. %{buildroot}%{_prefix} +# 3. %{buildroot}%{luarocks_treedir}/%{mod_name} + +SOURCE_DIR="$3" +luarocks --lua-version="$1" --tree="$2" install --deps-mode=none --no-manifest "${*:$#}" + +if [ -d "${SOURCE_DIR}" ] && [ "$(find "${SOURCE_DIR}" -type f | wc -l)" -gt 0 ] +then + mkdir -p __rocktree + mv -v "${SOURCE_DIR}"/*/* __rocktree +fi ++++++ macros.lua ++++++ --- /var/tmp/diff_new_pack.wmIs5D/_old 2026-11-24 12:22:39.593869622 +0100 +++ /var/tmp/diff_new_pack.wmIs5D/_new 2026-11-24 12:22:39.604870087 +0100 @@ -2,11 +2,21 @@ # The major.minor version of Lua %lua_version %{lua: -local f = io.popen("lua -e 'print(_VERSION)'") -local output = f:read("*a") -f:close() -local ver = output:match("Lua (%d%.%d)") -print(ver) +local flavor = rpm.expand("%{?flavor}") +local major, minor = flavor:match("^lua(%d)(%d)$") +local ver +if major then + ver = major .. "." .. minor +elseif flavor == "luajit" then + ver = "5.1" +else + local f = io.popen("lua -e 'print(_VERSION)' 2>/dev/null") + if f then + ver = f:read("*a"):match("Lua (%d%.%d)") + f:close() + end +end +print(ver or rpm.expand("%{lua_version_default}")) } %lua_version_nodots %{lua: local ver = rpm.expand("%{lua_version}")
