summaryrefslogtreecommitdiffstats
path: root/package/lua/lua-01-root-path.patch
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2012-07-17 10:18:27 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-07-17 21:19:02 +0200
commit2c7e9c50e9bef1c494ef90411a466ad320846b96 (patch)
tree43d41cd919ea720772ba11c71f4cc23df3a527ee /package/lua/lua-01-root-path.patch
parente4cbe2c33bd8442c7bd814add1a694e194c4d298 (diff)
downloadbuildroot-novena-2c7e9c50e9bef1c494ef90411a466ad320846b96.tar.gz
buildroot-novena-2c7e9c50e9bef1c494ef90411a466ad320846b96.zip
lua: split and rename patches
Signed-off-by: Francois Perrad <fperrad@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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"