aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua5.3/lua-5.3-module_paths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/lua5.3/lua-5.3-module_paths.patch')
-rw-r--r--main/lua5.3/lua-5.3-module_paths.patch6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/lua5.3/lua-5.3-module_paths.patch b/main/lua5.3/lua-5.3-module_paths.patch
index 4015fcfa28..313d9c609f 100644
--- a/main/lua5.3/lua-5.3-module_paths.patch
+++ b/main/lua5.3/lua-5.3-module_paths.patch
@@ -2,13 +2,16 @@ diff --git a/src/luaconf.h b/src/luaconf.h
index fd28d21..4c65295 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
-@@ -178,12 +178,21 @@
+@@ -203,12 +201,25 @@
#define LUA_ROOT "/usr/local/"
#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
+
+#define LUA_VENDOR_ROOT "/usr/"
++/* Path for version-specific Lua modules. */
+#define LUA_VENDOR_LDIR LUA_VENDOR_ROOT "share/lua/" LUA_VDIR "/"
++/* Path for Lua modules that are compatible with Lua 5.1 and newer. */
++#define LUA_VENDOR_COMMON_LDIR LUA_VENDOR_ROOT "share/lua/common/"
+#define LUA_VENDOR_CDIR LUA_VENDOR_ROOT "lib/lua/" LUA_VDIR "/"
+
#define LUA_PATH_DEFAULT \
@@ -16,6 +19,7 @@ index fd28d21..4c65295 100644
LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
+ LUA_VENDOR_LDIR"?.lua;" LUA_VENDOR_LDIR"?/init.lua;" \
+ LUA_VENDOR_CDIR"?.lua;" LUA_VENDOR_CDIR"?/init.lua;" \
++ LUA_VENDOR_COMMON_LDIR"?.lua;" LUA_VENDOR_COMMON_LDIR"?/init.lua;" \
"./?.lua;" "./?/init.lua"
#define LUA_CPATH_DEFAULT \
- LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"