[Bug 268303] devel/llvm*: update lua to 5.4

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 11 Dec 2022 13:24:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268303

--- Comment #7 from VVD <vvd@unislabs.com> ---
Patches for llvm15:
==========================================================
--- lldb/cmake/modules/FindLuaAndSwig.cmake.orig
+++ lldb/cmake/modules/FindLuaAndSwig.cmake
@@ -9,7 +9,7 @@
 else()
   find_package(SWIG 3.0)
   if (SWIG_FOUND)
-    find_package(Lua 5.3 EXACT)
+    find_package(Lua 5.4 EXACT)
     if(LUA_FOUND AND SWIG_FOUND)
       mark_as_advanced(
         LUA_LIBRARIES
--- lldb/CMakeLists.txt.orig
+++ lldb/CMakeLists.txt
@@ -65,8 +65,8 @@
 endif ()

 if (LLDB_ENABLE_LUA)
-  find_program(Lua_EXECUTABLE lua5.3)
-  set(LLDB_LUA_DEFAULT_RELATIVE_PATH "lib/lua/5.3")
+  find_program(Lua_EXECUTABLE lua5.4)
+  set(LLDB_LUA_DEFAULT_RELATIVE_PATH "lib/lua/5.4")
   set(LLDB_LUA_RELATIVE_PATH ${LLDB_LUA_DEFAULT_RELATIVE_PATH}
     CACHE STRING "Path where Lua modules are installed, relative to install
prefix")
 endif ()
--- test/API/lua_api/TestLuaAPI.py.orig
+++ test/API/lua_api/TestLuaAPI.py
@@ -160,7 +160,7 @@
         test_output = self.getBuildArtifact("output")
         test_input = self.getBuildArtifact("input")

-        lua_lldb_cpath = "%s/lua/5.3/?.so" % configuration.lldb_libs_dir
+        lua_lldb_cpath = "%s/lua/5.4/?.so" % configuration.lldb_libs_dir

         lua_prelude = "package.cpath = '%s;' .. package.cpath" %
lua_lldb_cpath

==========================================================
Maybe better to keep possibility to build with lua53 too.
But I don't know how yet.

-- 
You are receiving this mail because:
You are the assignee for the bug.