mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
Commit3fe92e63f5("lua: look for lua5.4 modules under /usr instead of /usr/local") changed LUA_ROOT to /usr/, moving the default Lua 5.4 module search paths out of /usr/local. lua-eco still installed its Lua and native modules under /usr/local/lib/lua/5.4, so require() could no longer find them with the default search paths. Install modules from the main package and all subpackages under /usr/lib/lua/5.4, which is searched for both .lua and .so files. Define LUA_INSTALL_DIR once and use it throughout the install rules so future directory changes only need one update. Bump PKG_RELEASE to 2 so the corrected packages are offered as upgrades. Fixes:3fe92e63f5("lua: look for lua5.4 modules under /usr instead of /usr/local") Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>