diff --git a/patches/dola/0005-Switch-to-Lua-5.5.patch b/patches/dola/0005-Switch-to-Lua-5.5.patch new file mode 100644 index 0000000..46281c9 --- /dev/null +++ b/patches/dola/0005-Switch-to-Lua-5.5.patch @@ -0,0 +1,117 @@ +From 8a3e9185f870caecf58f1679edcfd8aa7e45c857 Mon Sep 17 00:00:00 2001 +From: Mikolaj Izdebski +Date: Thu, 19 Feb 2026 17:10:17 +0100 +Subject: [PATCH 5/5] Switch to Lua 5.5 + +Forwarded: no +--- + .../src/main/java/io/kojan/dola/rpm/RPM.java | 2 +- + .../src/main/java/io/kojan/lujavrite/Lua.java | 16 ++++++++-------- + .../dola/generator/stub/RpmLujavriteTest.java | 2 +- + 3 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/dola-bsx-api/src/main/java/io/kojan/dola/rpm/RPM.java b/dola-bsx-api/src/main/java/io/kojan/dola/rpm/RPM.java +index bdea72b..f3f9f57 100644 +--- a/dola-bsx-api/src/main/java/io/kojan/dola/rpm/RPM.java ++++ b/dola-bsx-api/src/main/java/io/kojan/dola/rpm/RPM.java +@@ -26,7 +26,7 @@ public class RPM { + // Load the Lujavrite native shared library necessary to interface with Lua. + // This library provides native support for the Lua-Java bridge. + static { +- System.load("/usr/lib64/lua/5.4/lujavrite.so"); ++ System.load("/usr/lib64/lua/5.5/lujavrite.so"); + } + + /** +diff --git a/dola-bsx-api/src/main/java/io/kojan/lujavrite/Lua.java b/dola-bsx-api/src/main/java/io/kojan/lujavrite/Lua.java +index 8218773..438e446 100644 +--- a/dola-bsx-api/src/main/java/io/kojan/lujavrite/Lua.java ++++ b/dola-bsx-api/src/main/java/io/kojan/lujavrite/Lua.java +@@ -25,7 +25,7 @@ package io.kojan.lujavrite; + * such a context results in undefined behavior. + * + *

For more detailed documentation of Lua C API, see the Lua Reference Manual. ++ * href="https://www.lua.org/manual/5.5/manual.html">Lua Reference Manual. + * + *

This trivial Java class is maintained as part of Lujavrite project, but it is expected to be + * source-bundled by projects depending on the Java->Lua calling functionality of LuJavRite. The +@@ -40,7 +40,7 @@ public class Lua { + /** + * Pushes the global variable with the given name onto the Lua stack. + * +- * @see lua_getglobal ++ * @see lua_getglobal + * method documentation in Lua Reference Manual + * @param name the name of the global variable to retrieve + * @return the type of the value pushed onto the stack +@@ -50,7 +50,7 @@ public class Lua { + /** + * Pushes onto the stack the value of a field from a table at the given index. + * +- * @see lua_getfield method ++ * @see lua_getfield method + * documentation in Lua Reference Manual + * @param index the stack index of the table + * @param name the name of the field to retrieve +@@ -61,7 +61,7 @@ public class Lua { + /** + * Pushes a Java string onto the Lua stack as a Lua string. + * +- * @see lua_pushstring ++ * @see lua_pushstring + * method documentation in Lua Reference Manual + * @param string the string to push onto the stack + */ +@@ -70,7 +70,7 @@ public class Lua { + /** + * Calls a Lua function with the specified number of arguments and expected results. + * +- * @see lua_pcall method ++ * @see lua_pcall method + * documentation in Lua Reference Manual + * @param nargs the number of arguments to pass to the function + * @param nresults the number of expected return values +@@ -82,7 +82,7 @@ public class Lua { + /** + * Converts the Lua value at the given stack index to a Java string. + * +- * @see lua_tostring method ++ * @see lua_tostring method + * documentation in Lua Reference Manual + * @param index the index of the value on the stack + * @return the string representation of the Lua value +@@ -92,7 +92,7 @@ public class Lua { + /** + * Removes the top {@code n} elements from the Lua stack. + * +- * @see lua_pop method ++ * @see lua_pop method + * documentation in Lua Reference Manual + * @param n the number of elements to pop + * @return the new top index of the stack +@@ -103,7 +103,7 @@ public class Lua { + * Removes the element at the specified index from the Lua stack, shifting elements above it + * down. + * +- * @see lua_remove method ++ * @see lua_remove method + * documentation in Lua Reference Manual + * @param index the index of the element to remove + * @return the new top index of the stack +diff --git a/dola-generator/src/test/java/io/kojan/dola/generator/stub/RpmLujavriteTest.java b/dola-generator/src/test/java/io/kojan/dola/generator/stub/RpmLujavriteTest.java +index 77ee8be..368f914 100644 +--- a/dola-generator/src/test/java/io/kojan/dola/generator/stub/RpmLujavriteTest.java ++++ b/dola-generator/src/test/java/io/kojan/dola/generator/stub/RpmLujavriteTest.java +@@ -39,7 +39,7 @@ class RpmLujavriteTest { + + @BeforeAll + static void setUpClass() { +- System.load("/usr/lib64/lua/5.4/lujavrite.so"); ++ System.load("/usr/lib64/lua/5.5/lujavrite.so"); + } + + @Test +-- +2.51.0 +