Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua54 for openSUSE:Factory checked 
in at 2026-11-24 12:22:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua54 (Old)
 and      /work/SRC/openSUSE:Factory/.lua54.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua54"

Tue Nov 24 12:22:29 2026 rev:36 rq:1399817 version:5.4.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua54/lua54.changes      2025-10-17 
17:25:52.542228119 +0200
+++ /work/SRC/openSUSE:Factory/.lua54.new.1340718/lua54.changes 2026-11-24 
12:22:33.754622217 +0100
@@ -1,0 +2,29 @@
+Sat Nov 14 18:43:51 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add libdir-luaconf.patch (backported from lua55, bsc#1290489).
+  Without it src/luaconf.h silently overrode the LUA_CDIR passed
+  in MYCFLAGS, so the interpreter searched for C modules in
+  /usr/lib/lua/5.4 instead of the library directory
+  (/usr/lib64/lua/5.4 on 64-bit architectures) and could not find
+  modules like lpeg. The previous entry also named the 5.5
+  directory by mistake.
+- Build with the linux-readline target again; the plain linux
+  target of Lua 5.4 builds the interpreter without readline.
+- Drop the test flavour. The test build conditional was never
+  defined, so the flavour did not run any tests. The check
+  section of the main build now runs the upstream test suite
+  against the staged installation in the build root and verifies
+  that the compiled-in search paths match INSTALL_LMOD and
+  INSTALL_CMOD in lua5.4.pc.
+- Remove the unused BuildRequires on lua-macros.
+
+-------------------------------------------------------------------
+Sat Oct 24 15:29:38 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add lua-macros to the build requirements and declare the MIT
+  license explicitly for the devel, library and doc subpackages.
+- Switch to the linux build target, link explicitly against libm
+  and set LUA_CDIR through MYCFLAGS instead of editing luaconf.h.
+  The configured C module directory is %{_libdir}/lua/5.5/.
+
+-------------------------------------------------------------------

Old:
----
  _multibuild

New:
----
  libdir-luaconf.patch

----------(New B)----------
  New:
- Add libdir-luaconf.patch (backported from lua55, bsc#1290489).
  Without it src/luaconf.h silently overrode the LUA_CDIR passed
----------(New E)----------

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

Other differences:
------------------
++++++ lua54.spec ++++++
--- /var/tmp/diff_new_pack.C7BpU3/_old  2026-11-24 12:22:35.394691705 +0100
+++ /var/tmp/diff_new_pack.C7BpU3/_new  2026-11-24 12:22:35.402692044 +0100
@@ -16,13 +16,6 @@
 #
 
 
-%global flavor @BUILD_FLAVOR@%{nil}
-%if "%{flavor}" == "test"
-%define name_ext -test
-%define debug_package %{nil}
-%else
-%define name_ext %{nil}
-%endif
 %define major_version 5.4
 %define libname liblua5_4-5
 %if 0%{?suse_version} > 1500
@@ -30,7 +23,7 @@
 %else
 %bcond_with libalternatives
 %endif
-Name:           lua54%{name_ext}
+Name:           lua54
 Version:        5.4.8
 Release:        0
 Summary:        Small Embeddable Language with Procedural Syntax
@@ -50,6 +43,10 @@
 Patch6:         shared_link.patch
 # PATCH-FIX-UPSTREAM inspect errno only after failure
 Patch8:         execresult.patch
+# PATCH-FIX-UPSTREAM libdir-luaconf.patch [email protected]
+# Make the build system controlled only by the command line arguments
+# (no need to modify src/luaconf.h "manually")
+Patch9:         libdir-luaconf.patch
 Patch100:       upstream1.patch
 Provides:       lua = %{version}
 Obsoletes:      lua < %{version}
@@ -63,16 +60,11 @@
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 %endif
-%if "%{flavor}" == "test"
-BuildRequires:  lua54
-BuildRequires:  lua54-devel
-%else
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
 BuildRequires:  readline-devel
 # Ensure we can build without $self
 #!BuildIgnore:  lua54
-%endif
 
 %description
 Lua is a programming language originally designed for extending
@@ -88,6 +80,7 @@
 
 %package devel
 Summary:        Development files for lua
+License:        MIT
 Group:          Development/Libraries/C and C++
 Requires:       %{libname} = %{version}
 Requires:       %{name} = %{version}
@@ -107,6 +100,7 @@
 
 %package -n %{libname}
 Summary:        The Lua integration library
+License:        MIT
 Group:          System/Libraries
 Provides:       liblua5_4 = %{version}-%{release}
 Obsoletes:      liblua5_4 < %{version}-%{release}
@@ -133,6 +127,7 @@
 
 %package doc
 Summary:        Documentation for Lua, a small embeddable language
+License:        MIT
 Group:          Documentation/HTML
 BuildArch:      noarch
 %if 0%{?suse_version} > 1315
@@ -157,17 +152,19 @@
 %autopatch -p1
 
 # manpage
-%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
+MYCFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE -fPIC -DLUA_COMPAT_MODULE"
+# libdir-luaconf.patch turns the bare path into a C string
+MYCFLAGS="${MYCFLAGS} -DLUA_CDIR=\"%{_libdir}/lua/%{major_version}/\""
+export MYCFLAGS
+# Lua 5.4 links readline only with the linux-readline target
 %make_build linux-readline -C src \
     CC="cc" LIBDIR="%{_libdir}" \
-    MYCFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE -fPIC -DLUA_COMPAT_MODULE" \
+    LDFLAGS="-lm" \
+    MYCFLAGS="${MYCFLAGS}" \
     V=%{major_version} \
     LIBTOOL="libtool --quiet"
 
@@ -228,19 +225,35 @@
 # We don’t create alternatives for -devel content, just conflict those
 ln -s %{_libdir}/liblua%{major_version}.so %{buildroot}%{_libdir}/liblua.so
 ln -s %{_libdir}/pkgconfig/lua%{major_version}.pc 
%{buildroot}%{_libdir}/pkgconfig/lua.pc
-%endif  # flavor != "test"
 
 %check
-%if "%{flavor}" == "test"
+# Test the staged installation in %%{buildroot}, not the build tree.
+export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
+lua_bin=%{buildroot}%{_bindir}/lua%{major_version}
+# The compiled-in search paths must match the module directories that
+# lua*-devel announces via pkg-config (used by %%lua_archdir and
+# %%lua_noarchdir). -E ignores LUA_PATH, LUA_CPATH and LUA_INIT.
+lua_pc="env PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig pkg-config 
lua%{major_version}"
+lmod=$($lua_pc --variable=INSTALL_LMOD)
+cmod=$($lua_pc --variable=INSTALL_CMOD)
+test "$lmod" = "%{_datadir}/lua/%{major_version}"
+test "$cmod" = "%{_libdir}/lua/%{major_version}"
+"$lua_bin" -E - "$lmod" "$cmod" <<'EOF'
+local lmod, cmod = ...
+assert(package.path:find(lmod .. "/?.lua", 1, true),
+       "package.path misses " .. lmod .. ": " .. package.path)
+assert(package.cpath:find(cmod .. "/?.so", 1, true),
+       "package.cpath misses " .. cmod .. ": " .. package.cpath)
+EOF
+# The upstream test suite, with C test modules built against the staged
+# headers
 cd testes
 pushd libs
-%make_build all LUA_DIR=%{_includedir}/lua%{major_version}
+%make_build all LUA_DIR=%{buildroot}%{_includedir}/lua%{major_version}
 cp *.so ..
 popd
-LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
-%endif
+"$lua_bin" all.lua
 
-%if "%{flavor}" != "test"
 %post -n %{libname} -p /sbin/ldconfig
 %postun -n %{libname} -p /sbin/ldconfig
 
@@ -258,9 +271,6 @@
 fi
 %endif
 
-%endif  # flavor != "test"
-
-%if "%{flavor}" != "test"
 %files
 %doc README
 %dir %{_libdir}/lua
@@ -304,5 +314,4 @@
 
 %files doc
 %doc doc/*
-%endif  # flavor != "test"
 

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.C7BpU3/_old  2026-11-24 12:22:35.503696324 +0100
+++ /var/tmp/diff_new_pack.C7BpU3/_new  2026-11-24 12:22:35.519697002 +0100
@@ -1,6 +1,6 @@
-mtime: 1760630095
-commit: d0b6bd45b3e1ba2b496f7089da27643c03dec53cf65f7f37cfd6138a32b3aa63
-url: https://src.opensuse.org/lua/lua54.git
-revision: d0b6bd45b3e1ba2b496f7089da27643c03dec53cf65f7f37cfd6138a32b3aa63
+mtime: 1794697281
+commit: 0248963040e64980fbbec71639182e80b259050837de64a4079c716238774b58
+url: https://src.opensuse.org/lua/lua54
+revision: 0248963040e64980fbbec71639182e80b259050837de64a4079c716238774b58
 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-15 00:01:21.000000000 +0100
@@ -0,0 +1,5 @@
+.osc
+_scmsync.obsinfo
+_buildconfig-*
+_buildinfo-*.xml
+lua54-*-build/

++++++ libdir-luaconf.patch ++++++
---
 src/luaconf.h |   25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

Index: lua-5.4.8/src/luaconf.h
===================================================================
--- lua-5.4.8.orig/src/luaconf.h        2026-11-14 19:41:10.674675835 +0100
+++ lua-5.4.8/src/luaconf.h     2026-11-14 19:41:12.100239124 +0100
@@ -223,20 +223,35 @@
 
 #else                  /* }{ */
 
+#ifndef LUA_ROOT
 #define LUA_ROOT       "/usr/"
-#define LUA_LDIR       LUA_ROOT "share/lua/" LUA_VDIR "/"
-#define LUA_CDIR       LUA_ROOT "lib/lua/" LUA_VDIR "/"
+#endif
+
+#define LUA_STR_HELPER(x) #x
+#define LUA_STR(x) LUA_STR_HELPER(x)
+
+#ifdef LUA_LDIR
+#define LUA_LDIR_PATH LUA_STR(LUA_LDIR)
+#else
+#define LUA_LDIR_PATH  LUA_ROOT "share/lua/" LUA_VDIR "/"
+#endif
+
+#ifdef LUA_CDIR
+#define LUA_CDIR_PATH LUA_STR(LUA_CDIR)
+#else
+#define LUA_CDIR_PATH  LUA_ROOT "lib/lua/" LUA_VDIR "/"
+#endif
 
 #if !defined(LUA_PATH_DEFAULT)
 #define LUA_PATH_DEFAULT  \
-               LUA_LDIR"?.lua;"  LUA_LDIR"?/init.lua;" \
-               LUA_CDIR"?.lua;"  LUA_CDIR"?/init.lua;" \
+               LUA_LDIR_PATH"?.lua;"  LUA_LDIR_PATH"?/init.lua;" \
+               LUA_CDIR_PATH"?.lua;"  LUA_CDIR_PATH"?/init.lua;" \
                "./?.lua;" "./?/init.lua"
 #endif
 
 #if !defined(LUA_CPATH_DEFAULT)
 #define LUA_CPATH_DEFAULT \
-               LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
+               LUA_CDIR_PATH"?.so;" LUA_CDIR_PATH"loadall.so;" "./?.so"
 #endif
 
 #endif                 /* } */

Reply via email to