[MacPorts] #70420: neovim @0.10.0_1: error loading module 'nlua0' from file 'libnlua0.so'
MacPorts
noreply at macports.org
Wed Aug 7 02:11:33 UTC 2024
#70420: neovim @0.10.0_1: error loading module 'nlua0' from file 'libnlua0.so'
---------------------+----------------------
Reporter: wryfi | Owner: l2dy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords:
Port: neovim |
---------------------+----------------------
Comment (by wryfi):
Something is definitely fishy with the way macports is managing lua and/or
luarocks dependencies, but I don't know enough about either MacPorts or
lua to pin it down precisely.
I uninstalled everything related to lua from my system, ran `port
reclaim`, ran `port clean --all` on all of the lua and neovim related
ports, and then tried `port install neovim` all over again. I got exactly
the same errors as before, no change whatsoever.
Even though neovim uses exclusively lua-5.1, and I have no other lua
dependent ports on my system, lua-5.3 packages always get installed — even
though I have no use for them whatsoever!
When building neovim, something gets compiled against lua-5.3, because
(similar to #66077) `_luaL_prepbuffsize` does not exist in lua-5.1.
So then I uninstalled `lua53-luarocks` and `lua53` ports, despite a
warning:
{{{
Note: It is not recommended to uninstall/deactivate a port that has
dependents as it breaks the dependents.
The following ports will break: lua-luarocks @3.9.2_0
}}}
Et voila — `port install neovim` succeeds without a hitch!
I don't know if this **actually** breaks anything with lua-luarocks, but
it fixes my problem.
This looks fishy to me:
{{{
The following ports are dependencies of neovim @0.10.1_0:
...
luajit
lua51-lpeg
lua-luarocks
lua
lua53-luarocks
lua53
lua51
lua51-mpack
luv-luajit
...
}}}
Why do lua-5.1 packages depend on lua-5.3 packages? That can't be right,
can it?!
--
Ticket URL: <https://trac.macports.org/ticket/70420#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list