>  Does that seem like the way to go?

  Yes.

> So for example in IM's case, I'd build a libimlua5.{1,2,3}.so into
/usr/lib/x86_x64-linux-gnu/ and create a symlink (maybe im.so? I suppose
the naming has to match somehow with how Lua loads modules) to them from
/usr/lib/x86_64-linux-gnu/lua/libimlua5.{1,2,3}.so.

  The location and name of the symlink are the same as created by the
im/config_lua_module script we provide. Should be something like:

/usr/lib/x86_64-linux-gnu/libimlua5.{1,2,3}.so =>
/usr/lib/x86_64-linux-gnu/lua/{1,2,3}/imlua.so

  So require"imlua" will search for imlua.so in the respective Lua version
folder.

> Then the *.lua source goes in /usr/share/lua/5.{1,2,3}/im/*.lua.

  We don't distribute any lua files in IM, CD nor IUP. They are all
embedded in the library.

> BTW, on Ubuntu, the lua-expat package contains all 3 versions, so a Lua
IM package would do similarly.

  Ok I guess.

Best,
Scuri


Em seg, 8 de jul de 2019 às 15:11, Matthew Kennedy <burnsid...@gmail.com>
escreveu:

>
> On Mon, Jul 8, 2019 at 10:06 AM Antonio Scuri <antonio.sc...@gmail.com>
> wrote:
>
>>   > lua packages (which lua though?)
>>
>>   Lua itself already has distribution packages, one for each Lua version.
>> It is a lot of work, but this is a first start.
>>
>
> I may be able to have a go at this task and make it build and iterate
> through each version. As I understand it, on Ubuntu LTS, there are 3 Luas:
> 5.1, 5.2, 5.3. I looked at an existing Ubuntu package for lua-expat
> (popular C XML parser):
>
> /usr/lib/x86_64-linux-gnu/liblua5.1-expat.so.0
> /usr/lib/x86_64-linux-gnu/liblua5.1-expat.so.0.0.0
> /usr/lib/x86_64-linux-gnu/liblua5.2-expat.so.0
> /usr/lib/x86_64-linux-gnu/liblua5.2-expat.so.0.0.0
> /usr/lib/x86_64-linux-gnu/liblua5.3-expat.so.0
> /usr/lib/x86_64-linux-gnu/liblua5.3-expat.so.0.0.0
> /usr/lib/x86_64-linux-gnu/lua/5.1
> /usr/lib/x86_64-linux-gnu/lua/5.1/lxp.so
> /usr/lib/x86_64-linux-gnu/lua/5.2
> /usr/lib/x86_64-linux-gnu/lua/5.2/lxp.so
> /usr/lib/x86_64-linux-gnu/lua/5.3
> /usr/lib/x86_64-linux-gnu/lua/5.3/lxp.so
> ...
> /usr/share/lua
> /usr/share/lua/5.1
> /usr/share/lua/5.1/lxp
> /usr/share/lua/5.1/lxp/lom.lua
> /usr/share/lua/5.2
> /usr/share/lua/5.2/lxp
> /usr/share/lua/5.2/lxp/lom.lua
> /usr/share/lua/5.3
> /usr/share/lua/5.3/lxp
> /usr/share/lua/5.3/lxp/lom.lua
>
> Where /usr/lib/x86_64-linux-gnu/lua/5.1/lxp.so ->
> ../../liblua5.1-expat.so.0.0.0 etc.
>
> Does that seem like the way to go?
>
> So for example in IM's case, I'd build a libimlua5.{1,2,3}.so into
> /usr/lib/x86_x64-linux-gnu/ and create a symlink (maybe im.so? I suppose
> the naming has to match somehow with how Lua loads modules) to them from
> /usr/lib/x86_64-linux-gnu/lua/libimlua5.{1,2,3}.so. Then the *.lua source
> goes in /usr/share/lua/5.{1,2,3}/im/*.lua. BTW, on Ubuntu, the lua-expat
> package contains all 3 versions, so a Lua IM package would do similarly.
>
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to