summaryrefslogtreecommitdiffstats
path: root/lang/lua/lua5.4/patches/200-lua-path.patch
blob: 1fa32cd85a85e155a9e1c45a6503ff706232f423 (plain)
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
From dd82c673231224361dc9ec3cd2861418fd4ce731 Mon Sep 17 00:00:00 2001
From: Alexandru Ardelean <alex@shruggie.ro>
Date: Wed, 22 Jul 2026 14:52:14 +0300
Subject: [PATCH] lua5.4: point LUA_ROOT at /usr for OpenWrt module paths

luaconf.h hardcodes LUA_ROOT to /usr/local/, where nothing installs on
OpenWrt; point it at /usr/ so modules under /usr/{share,lib}/lua/5.4/
are found.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
---
 src/luaconf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -223,7 +223,7 @@
 
 #else			/* }{ */
 
-#define LUA_ROOT	"/usr/local/"
+#define LUA_ROOT	"/usr/"
 #define LUA_LDIR	LUA_ROOT "share/lua/" LUA_VDIR "/"
 #define LUA_CDIR	LUA_ROOT "lib/lua/" LUA_VDIR "/"