Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 754945 - dev-lang/luajit should use its own module directories
Summary: dev-lang/luajit should use its own module directories
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-16 18:08 UTC by Marek Szuba
Modified: 2020-12-23 19:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba archtester gentoo-dev 2020-11-16 18:08:32 UTC
dev-lua/luajit uses the same directories module directories as dev-lang/lua:0 and dev-lang/lua:5.1. While apparently mostly harmless at present due to the fact LuaJIT is supposed to be API- and ABI-compatible with PUC Lua 5.1, this does break separation between different Lua implementations (e.g. /usr/$(get_libdir)/lua/5.1/ ends up containing some modules compiled against the headers from lua5.1 and some from luajit) - and will cause problems should LuaJIT ever start targetting a newer version of the PUC Lua ABI.

For the sake of consistency and future-proofing, please update dev-lang/luajit so that its lmod and cmod directories are not shared with any other Lua implementations.
Comment 1 Rafael Martins (RETIRED) gentoo-dev 2020-11-16 19:16:53 UTC
Hi Marek,

I can't see the problem you are mentioning:

rafael@nhonho ~ $ grep -R abiver /usr/lib64/pkgconfig/luajit.pc 
abiver=5.1
libname=luajit-${abiver}
INSTALL_LMOD=${prefix}/share/lua/${abiver}
INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver}

The modules *are* abi compatible with lua, there's no need to split that from luajit side. If you need it for any other reasons, please provide a patch.
Comment 2 William Hubbs gentoo-dev 2020-12-23 19:18:44 UTC
Luajit is working as designed in this regard since luajit is
fully compatible with lua 5.1.