From 59cfeb4ed51560ec9ef12fc10784d192b6aa90e0 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 23 Sep 2024 13:26:24 +0200 Subject: [PATCH] Add new Lua patch Signed-off-by: DL6ER --- patch/lua.sh | 1 + ...IZE-so-that-long-script-filenames-as.patch | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 patch/lua/0001-Increase-LUA_IDSIZE-so-that-long-script-filenames-as.patch diff --git a/patch/lua.sh b/patch/lua.sh index 9987b222..e1dcfb2b 100644 --- a/patch/lua.sh +++ b/patch/lua.sh @@ -2,5 +2,6 @@ set -e patch -p1 < patch/lua/0001-add-pihole-library.patch +patch -p1 < patch/lua/0001-Increase-LUA_IDSIZE-so-that-long-script-filenames-as.patch echo "ALL PATCHES APPLIED OKAY" diff --git a/patch/lua/0001-Increase-LUA_IDSIZE-so-that-long-script-filenames-as.patch b/patch/lua/0001-Increase-LUA_IDSIZE-so-that-long-script-filenames-as.patch new file mode 100644 index 00000000..64e2658f --- /dev/null +++ b/patch/lua/0001-Increase-LUA_IDSIZE-so-that-long-script-filenames-as.patch @@ -0,0 +1,27 @@ +From 835933f8501e517a781b380b8cfafa656adc6fa7 Mon Sep 17 00:00:00 2001 +From: DL6ER +Date: Mon, 23 Sep 2024 13:25:34 +0200 +Subject: [PATCH] Increase LUA_IDSIZE so that long script filenames as well as + long script lines fit into the error logging buffer + +Signed-off-by: DL6ER +--- + src/lua/luaconf.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lua/luaconf.h b/src/lua/luaconf.h +index 33bb580d..dacc5221 100644 +--- a/src/lua/luaconf.h ++++ b/src/lua/luaconf.h +@@ -765,7 +765,7 @@ + ** of a function in debug information. + ** CHANGE it if you want a different size. + */ +-#define LUA_IDSIZE 60 ++#define LUA_IDSIZE 256 + + + /* +-- +2.34.1 +