summaryrefslogtreecommitdiffstats
path: root/package/lua/lua-01-root-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/lua/lua-01-root-path.patch')
-rw-r--r--package/lua/lua-01-root-path.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/lua/lua-01-root-path.patch b/package/lua/lua-01-root-path.patch
new file mode 100644
index 000000000..c5dbf3270
--- /dev/null
+++ b/package/lua/lua-01-root-path.patch
@@ -0,0 +1,19 @@
+Adjust installation location to /usr.
+
+Index: b/src/luaconf.h
+===================================================================
+--- a/src/luaconf.h
++++ b/src/luaconf.h
+@@ -94,9 +94,9 @@
+ ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
+
+ #else
+-#define LUA_ROOT "/usr/local/"
+-#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+-#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
++#define LUA_ROOT "/usr/"
++#define LUA_LDIR LUA_ROOT "share/lua/"
++#define LUA_CDIR LUA_ROOT "lib/lua/"
+ #define LUA_PATH_DEFAULT \
+ "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
+ LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"