Build lua libraries also for compat-lua?

Jan Kaluža jkaluza at redhat.com
Tue May 13 09:17:39 UTC 2014


Hi,

I'm playing with an idea of building lua libraries against compat-lua to 
allow luajit working with them. My initial motivation for this is that 
there are projects which don't work with Lua-5.2 and developers for 
various reasons don't want to port it to lua-5.2 yet (for example 
Prosody package).

I would imagine it to work the same way as Python2 vs. Python3 does. It 
means to build the project twice - once against "lua" (lua-5.2) and once 
against "compat-lua" (lua-5.1) using single spec file.

I've done some test with lua-expat and I'm attaching patch against 
lua-expat.spec to show how it could be done.

I'm OK with creating bugs and patches against some basic lua modules 
(basically the ones I need myself for Prosody :) ), but at first I 
wanted to ask Lua people here what do they think about it?

Regards,
Jan Kaluza
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lua-expat-compat.patch
Type: application/x-download
Size: 2437 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20140513/2e949eb8/attachment.bin>


More information about the devel mailing list