[pkg-lua-devel] LuaJIT package.path?
Peter Colberg
peter at colberg.org
Thu Oct 17 22:28:54 UTC 2013
Hi Enrico,
Mike's answer with regard to a LuaJIT-specific path [1] has left me
puzzled. I hope some Lua maintainers of other distributions will join
the discussion.
[1] http://article.gmane.org/gmane.comp.lang.lua.luajit/3603
The point that there are already too many paths in package.path should
be taken seriously; but installing modules to the lua/5.1 paths that
don't work with lua5.1 seems wrong, too…
If co-installation of multiple LuaJIT versions is not an issue, then
perhaps the following would be a solution without too much impact?
* Arch-dependent LuaJIT modules (e.g. hdf5/C.lua) go into
/usr/lib/<arch-triplet>/luajit/
* Arch-independent LuaJIT modules (e.g. hdf5/init.lua) go into
/usr/share/luajit/
* The packages are named lua-<module> and lua-<module>-dev.
* lua-<module> has Provides: luajit-<module>
* lua-<module> has Depends: luajit (>= 2.0)
Given the history of LuaJIT, I would expect that modules written for
LuaJIT 2.0 will continue to work flawlessly with LuaJIT 2.1 and LuaJIT
3.0. So the versioned dependency would be mainly for modules that
depend on features of LuaJIT 2.1 or 3.0.
Regards,
Peter
More information about the pkg-lua-devel
mailing list