File: 0002-lua-modules-paths.patch

package info (click to toggle)
lua5.4 5.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,648 kB
  • sloc: ansic: 20,087; makefile: 314; sh: 122
file content (40 lines) | stat: -rw-r--r-- 1,168 bytes parent folder | download | duplicates (2)
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
39
40
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(-)

--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -223,20 +223,28 @@
 
 #else			/* }{ */
 
+/* This defines DEB_HOST_MULTIARCH */
+#include "lua5.4-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 "/"
 
 #if !defined(LUA_PATH_DEFAULT)
 #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"
 #endif
 
 #if !defined(LUA_CPATH_DEFAULT)
 #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
 
 #endif			/* } */