9 Commits
Author SHA1 Message Date
Jianhui Zhao afb69d99c7 lua-eco: align module installation with Lua 5.4 search paths
Commit 3fe92e63f5 ("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>
2026-10-05 12:01:29 +03:00
Alexandru Ardelean dfb4bd477a lua-eco: fix LUA_ECO_CRASH_BACKTRACE recursive dependency
LUA_ECO_CRASH_BACKTRACE declared "depends on PACKAGE_lua-eco" while
lua-eco's DEPENDS carries "+LUA_ECO_CRASH_BACKTRACE:libunwind", which the
generator turns into "select libunwind if LUA_ECO_CRASH_BACKTRACE". kconfig
then sees lua-eco and the symbol depending on each other:

  error: recursive dependency detected!
    symbol LUA_ECO_CRASH_BACKTRACE depends on PACKAGE_lua-eco
    symbol PACKAGE_lua-eco depends on LUA_ECO_CRASH_BACKTRACE

Drop the redundant guard; the option only affects lua-eco's own build, so
nothing is pulled in when lua-eco itself is not selected.

Fixes: https://github.com/openwrt/packages/pull/30098#issuecomment-5113528752
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-07-30 14:23:00 +03:00
Jianhui Zhao b7defd3980 lua-eco: update to 4.1.4
Add the new cli module as a separate subpackage.

Expose the optional C crash backtrace diagnostics through
CONFIG_LUA_ECO_CRASH_BACKTRACE. Depend on libunwind when enabled.
Keep the option unavailable on musl/powerpc, where OpenWrt's
libunwind package is not supported.

changelog: https://github.com/zhaojh329/lua-eco/compare/v4.0.0...v4.1.4

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2026-07-28 09:57:37 +03:00
Jianhui Zhao e1ec189d45 lua-eco: add CONFIG_ prefix to PKG_CONFIG_DEPENDS options
Options listed in PKG_CONFIG_DEPENDS must start with
CONFIG_ prefix.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2026-07-11 23:07:44 +08:00
Jianhui Zhao 9f5146f678 lua-eco: update to 4.0.0
changelog: https://github.com/zhaojh329/lua-eco/releases/tag/v4.0.0

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2026-05-11 14:39:57 +03:00
Jianhui Zhao c5e7174785 lua-eco: update to 3.17.0
changelog: https://github.com/zhaojh329/lua-eco/releases/tag/v3.17.0

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2026-04-03 22:22:04 +03:00
Jianhui Zhao d85f1065a5 lua-eco: update to 3.16.0
changelog: https://github.com/zhaojh329/lua-eco/releases/tag/v3.16.0

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2026-03-28 20:59:35 +02:00
Jianhui Zhao 0c79e46f4e lua-eco: update to 3.14.0
A new module `net` added since this version.

changelog: https://github.com/zhaojh329/lua-eco/releases/tag/v3.14.0

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-11-18 06:26:00 +02:00
Alexandru Ardelean 7eebedcdfc lua: move Lua packages under lang/lua sub-folder
There are roughly 50 Lua packages.
It's about time we consider a proposal for moving all of them
under a lang/lua sub-folder.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-17 08:46:33 +02:00