[oe] [PATCH 1/3] lua5.1: use standard prefix for Lua libraries

Petr Štetiar ynezz at true.cz
Sun Oct 17 19:42:49 UTC 2010


In default configuration Lua uses wrong /usr/local/{lib,share} in it's
module/script search path. This patch change it to the usage of the standard
/usr/{lib,share} directories.

Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 recipes/lua/lua5.1/no-usr-local.patch |   13 +++++++++++++
 recipes/lua/lua5.1_5.1.4.bb           |    3 ++-
 2 files changed, 15 insertions(+), 1 deletions(-)
 create mode 100644 recipes/lua/lua5.1/no-usr-local.patch

diff --git a/recipes/lua/lua5.1/no-usr-local.patch b/recipes/lua/lua5.1/no-usr-local.patch
new file mode 100644
index 0000000..bc253ef
--- /dev/null
+++ b/recipes/lua/lua5.1/no-usr-local.patch
@@ -0,0 +1,13 @@
+Index: lua-5.1.4/src/luaconf.h
+===================================================================
+--- lua-5.1.4.orig/src/luaconf.h	2010-10-17 21:13:01.000000000 +0200
++++ lua-5.1.4/src/luaconf.h	2010-10-17 21:13:17.000000000 +0200
+@@ -95,7 +95,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  \
diff --git a/recipes/lua/lua5.1_5.1.4.bb b/recipes/lua/lua5.1_5.1.4.bb
index ba2f8b9..3d269c2 100644
--- a/recipes/lua/lua5.1_5.1.4.bb
+++ b/recipes/lua/lua5.1_5.1.4.bb
@@ -4,9 +4,10 @@ LICENSE = "MIT"
 HOMEPAGE = "http://www.lua.org/"
 
 DEPENDS += "readline"
-PR = "r7"
+PR = "r8"
 SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz \
            file://bitwise_operators.patch \
+           file://no-usr-local.patch \
            file://lua5.1.pc \
           "
 S = "${WORKDIR}/lua-${PV}"
-- 
1.7.0.4





More information about the Openembedded-devel mailing list