[Slackbuilds-users] Lua 5.4 upgrade

Diego Borghetti bdiego at pm.me
Sun Oct 27 22:56:09 UTC 2024


Hi,

After playing a bit with it, the upgrade of luajit is not really possible. Found some threads:
https://github.com/LuaJIT/LuaJIT/issues/929
https://github.com/LuaJIT/LuaJIT/issues/1013

I tested similar changes to Ponce including lua-lpeg as part of Neovim, and no issues so far.

I'm testing 0.10.2 and at the moment I'm more inclined to include lua-lpeg as part of neovim.

Btw I also built lua-lpeg with 5.4 and it just needed a small tweak to the installation script.

On Sunday, October 27th, 2024 at 9:14 AM, B. Watson <urchlay at slackware.uk> wrote:

> 
> 
> 
> 
> On Sun, 27 Oct 2024, Diego Borghetti via SlackBuilds-users wrote:
> 
> > Hi,
> > 
> > I think we need to keep lua-lpeg using lua51.
> 
> 
> I have it using both. lua 5.4 is required, and lua 5.1 support is
> included in the package if lua51's already installed.
> 
> > Neovim uses luajit and last time I checked, that was still using 5.1.
> 
> 
> Looks like it builds its own, plus a "lua-compat-5.3" tarball.
> 
> > lua-lpeg build fine using 5.4, but you get runtime errors because of the mismatch with neovim.
> 
> 
> It might be possible to build neovim with lua 5.4. Worth looking into
> at least. Ideally, it shouldn't be tied to an old version of lua.
> 
> The "vis" editor also uses lua-lpeg. It builds with lua 5.4 and seems
> to work OK.
> 
> > I will pull the branch tonight and do some testing.
> 
> 
> Yes, please do. Let me know what you find out.
> 
> Worst case scenario: if neovim really needs a lua-lpeg built with
> lua51 support, list them both in REQUIRES, with lua51 appearing before
> lua-lpeg, and mention it in the README. Also maybe add a bit of code
> in the script that actually checks for the lua51 lpeg.so module, and
> stops the build if it's missing.








More information about the SlackBuilds-users mailing list