summaryrefslogtreecommitdiffstats
path: root/package/lua/5.1.5/0001-root-path.patch
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2014-12-24 10:10:34 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-24 12:00:51 +0100
commit6b0fbd0020fa027aa5766b2f7514942cfb66e7bb (patch)
tree94e149d37713692a12111326196f209934ffd9b4 /package/lua/5.1.5/0001-root-path.patch
parent38f09d6873436cfe4606ae32adbe4ac99bb8ad61 (diff)
downloadbuildroot-6b0fbd0020fa027aa5766b2f7514942cfb66e7bb.tar.gz
buildroot-6b0fbd0020fa027aa5766b2f7514942cfb66e7bb.zip
lua: rename patches to the new convention
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lua/5.1.5/0001-root-path.patch')
-rw-r--r--package/lua/5.1.5/0001-root-path.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/lua/5.1.5/0001-root-path.patch b/package/lua/5.1.5/0001-root-path.patch
new file mode 100644
index 0000000000..fd0da6eb57
--- /dev/null
+++ b/package/lua/5.1.5/0001-root-path.patch
@@ -0,0 +1,30 @@
+Adjust installation location to /usr.
+
+Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
+
+Index: b/etc/lua.pc
+===================================================================
+--- a/etc/lua.pc
++++ b/etc/lua.pc
+@@ -8,7 +8,7 @@
+ R= 5.1.5
+
+ # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
+-prefix= /usr/local
++prefix= /usr
+ INSTALL_BIN= ${prefix}/bin
+ INSTALL_INC= ${prefix}/include
+ INSTALL_LIB= ${prefix}/lib
+Index: b/src/luaconf.h
+===================================================================
+--- a/src/luaconf.h
++++ b/src/luaconf.h
+@@ -94,7 +94,7 @@
+ ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
+
+ #else
+-#define LUA_ROOT "/usr/local/"
++#define LUA_ROOT "/usr/"
+ #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+ #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
+ #define LUA_PATH_DEFAULT \
OpenPOWER on IntegriCloud