<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/lang/lua/lua5.4/patches, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2026-07-31T06:46:08Z</updated>
<entry>
<title>lua: look for lua5.4 modules under /usr instead of /usr/local</title>
<updated>2026-07-31T06:46:08Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2026-07-22T11:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=3fe92e63f5585b35875543c64f7612935b897373'/>
<id>urn:sha1:3fe92e63f5585b35875543c64f7612935b897373</id>
<content type='text'>
luaconf.h hardcodes LUA_ROOT to "/usr/local/", and nothing in this
package overrides it for the target build, so the interpreter only ever
searches /usr/local/{share,lib}/lua/5.4. Nothing installs there on
OpenWrt, which leaves every Lua 5.4 module package unreachable:

  # lua5.4 -e 'require "lfs"'
  lua5.4: module 'lfs' not found:
          no file '/usr/local/share/lua/5.4/lfs.lua'
          no file '/usr/local/lib/lua/5.4/lfs.so'
          [...]
  # find / -name lfs.so
  /usr/lib/lua/5.4/lfs.so

Point LUA_ROOT at /usr. LUA_LDIR and LUA_CDIR are derived from it and
keep the version suffix, so the search paths become /usr/share/lua/5.4
and /usr/lib/lua/5.4 - exactly where the Lua 5.4 module packages
install. The core lua (5.1) package carries an equivalent patch.

Signed-off-by: Alexandru Ardelean &lt;alex@shruggie.ro&gt;
</content>
</entry>
<entry>
<title>lua: move Lua packages under lang/lua sub-folder</title>
<updated>2025-11-17T06:46:33Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2025-11-16T10:02:03Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=7eebedcdfc0d17e610a123fdff4d8edb21e8b098'/>
<id>urn:sha1:7eebedcdfc0d17e610a123fdff4d8edb21e8b098</id>
<content type='text'>
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 &lt;alex@shruggie.ro&gt;
</content>
</entry>
</feed>
