Package: lua5.3 / 5.3.3-1.1

0002-lua-modules-paths.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Sun, 1 Mar 2015 19:46:59 +0100
Subject: lua modules paths

---
 src/luaconf.h | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/luaconf.h b/src/luaconf.h
index fd447cc..3a4f8e6 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -188,15 +188,24 @@
 
 #else			/* }{ */
 
+/* This defines DEB_HOST_MULTIARCH */
+#include "lua5.3-deb-multiarch.h"
+
 #define LUA_ROOT	"/usr/local/"
+#define LUA_ROOT2	"/usr/"
 #define LUA_LDIR	LUA_ROOT "share/lua/" LUA_VDIR "/"
+#define LUA_LDIR2	LUA_ROOT2 "share/lua/" LUA_VDIR "/"
 #define LUA_CDIR	LUA_ROOT "lib/lua/" LUA_VDIR "/"
+#define LUA_CDIR2	LUA_ROOT2 "lib/" DEB_HOST_MULTIARCH "/lua/" LUA_VDIR "/"
+#define LUA_CDIR3	LUA_ROOT2 "lib/lua/" LUA_VDIR "/"
+
 #define LUA_PATH_DEFAULT  \
 		LUA_LDIR"?.lua;"  LUA_LDIR"?/init.lua;" \
 		LUA_CDIR"?.lua;"  LUA_CDIR"?/init.lua;" \
+		LUA_LDIR2"?.lua;"  LUA_LDIR2"?/init.lua;" \
 		"./?.lua;" "./?/init.lua"
 #define LUA_CPATH_DEFAULT \
-		LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
+		LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR3"?.so;" LUA_CDIR"loadall.so;" "./?.so"
 #endif			/* } */