Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-cjson for openSUSE:Factory 
checked in at 2026-11-30 14:25:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-cjson (Old)
 and      /work/SRC/openSUSE:Factory/.lua-cjson.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-cjson"

Mon Nov 30 14:25:37 2026 rev:6 rq:1401365 version:2.1.0.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-cjson/lua-cjson.changes      2026-03-03 
15:30:41.280442749 +0100
+++ /work/SRC/openSUSE:Factory/.lua-cjson.new.1340718/lua-cjson.changes 
2026-11-30 14:27:50.579573406 +0100
@@ -1,0 +2,7 @@
+Wed Nov 25 18:47:40 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add cmake_lua55.patch: do not call find_package(Lua) when
+  LUA_INCLUDE_DIR is already set, fixing the build on Lua 5.5 with
+  CMake < 4.3.
+
+-------------------------------------------------------------------

New:
----
  cmake_lua55.patch

----------(New B)----------
  New:
- Add cmake_lua55.patch: do not call find_package(Lua) when
  LUA_INCLUDE_DIR is already set, fixing the build on Lua 5.5 with
----------(New E)----------

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

Other differences:
------------------
++++++ lua-cjson.spec ++++++
--- /var/tmp/diff_new_pack.fuKUSx/_old  2026-11-30 14:27:52.403650037 +0100
+++ /var/tmp/diff_new_pack.fuKUSx/_new  2026-11-30 14:27:52.405650121 +0100
@@ -27,6 +27,10 @@
 # PATCH-FIX-UPSTREAM test_environment.patch gh#mpx/lua-cjson#75 [email protected]
 # Make it possible for tests to be influenced by the variables
 Patch0:         test_environment.patch
+# PATCH-FIX-OPENSUSE cmake_lua55.patch [email protected]
+# Do not call find_package(Lua) when LUA_INCLUDE_DIR is already provided
+# (CMake < 4.3 FindLua.cmake rejects Lua 5.5 headers).
+Patch1:         cmake_lua55.patch
 BuildRequires:  lua-macros
 BuildRequires:  %{flavor}-devel
 Requires:       %{flavor}
@@ -52,7 +56,7 @@
 %build
 export CFLAGS="%{optflags}"
 %cmake \
-    -H.. -DCMAKE_C_FLAGS="%{optflags}" \
+    -DCMAKE_C_FLAGS="%{optflags}" \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
     -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=OFF \
     -DBUILD_STATIC_LIBS=OFF -DCMAKE_INSTALL_DO_STRIP=OFF \

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.fuKUSx/_old  2026-11-30 14:27:52.448651927 +0100
+++ /var/tmp/diff_new_pack.fuKUSx/_new  2026-11-30 14:27:52.452652095 +0100
@@ -1,6 +1,6 @@
-mtime: 1769710499
-commit: 0c58574e07d77c806deded4e69367d9e30768fb0780d6f20f46fd1a559bd9ff2
-url: https://src.opensuse.org/lua/lua-cjson.git
-revision: 0c58574e07d77c806deded4e69367d9e30768fb0780d6f20f46fd1a559bd9ff2
+mtime: 1795718654
+commit: 87ef65c8e06961178d97162471625602c4751a8aae1afc9ce9e2c50f7fe4e24e
+url: https://src.opensuse.org/lua/lua-cjson
+revision: 87ef65c8e06961178d97162471625602c4751a8aae1afc9ce9e2c50f7fe4e24e
 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-26 19:44:14.000000000 +0100
@@ -0,0 +1,5 @@
+.osc
+_scmsync.obsinfo
+_buildconfig-*
+_buildinfo-*.xml
+lua*-cjson-*-build/

++++++ cmake_lua55.patch ++++++
---
 CMakeLists.txt |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Index: lua-cjson-2.1.0.16/CMakeLists.txt
===================================================================
--- lua-cjson-2.1.0.16.orig/CMakeLists.txt      2026-11-26 11:57:25.350314503 
+0100
+++ lua-cjson-2.1.0.16/CMakeLists.txt   2026-11-26 11:57:25.475669769 +0100
@@ -15,7 +15,9 @@
         FORCE)
 endif()
 
-find_package(Lua REQUIRED)
+if(NOT LUA_INCLUDE_DIR)
+    find_package(Lua REQUIRED)
+endif()
 include_directories(${LUA_INCLUDE_DIR})
 
 if(NOT USE_INTERNAL_FPCONV)
@@ -51,7 +53,11 @@
 endif()
 
 set(_MODULE_LINK "${CMAKE_THREAD_LIBS_INIT}")
-get_filename_component(_lua_lib_dir ${LUA_LIBRARY} PATH)
+if(LUA_LIBRARY)
+    get_filename_component(_lua_lib_dir "${LUA_LIBRARY}" PATH)
+else()
+    set(_lua_lib_dir "${CMAKE_INSTALL_LIBDIR}")
+endif()
 
 if(APPLE)
     set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS

Reply via email to