El Sun, 6 May 2007 16:52:31 -0300
[EMAIL PROTECTED] escribió
> 
> Better not add things like these, they may add support headaches later
> on. Also, are you sure you're not breaking anything by not adding
> package.seeall to the module() declaration?
I'm doing this some time and never had problems, i don't know if i
could have any problem in future.

> 
> > Are you using Lua 5.0 or 5.1?

I'm using the latest lua release.

> >
> > I believe that in Lua 5.1, modules do not require .lua wrappers -
> > the .so files can be directly required.
> >
Sure, without .lua files works perfectly, i wanted only add backward
support.

> > Do we want to support both Lua 5.1 and 5.0, or just 5.1?
> >
> > Supporting both may be more complex.
> 

Maybe you are right, lua 5.1 has some interface changes and has sense
to have only what sources give us.

> I think modules should be packaged for the Lua version they were
> written for, with the version listed as dependencies (ie, "Lua >= 5.0,
> < 5.1" for Lua 5.0 modules, "Lua >= 5.1" for Lua 5.1, "Lua >= 5.0" if
> it works in both). Module authors usually document what versions of
> Lua they support. For some (LuaSocket?) it's a compile-time option;
> I'd say in those cases recipes should build for Lua 5.1.

Ok, then i will remove the .lua in the recipes i sent. Lucas if you
read this, please don't commit the Lua-* recipes yet, i will send the
fixed versions.
I think that then should be changed also the Environment file in the
Lua 5.1.2 recipe (if you did not change it mpb).

Then lua modules should follow this rules:

* .so files under lib/lua/Version/
* .lua files under Shared/lua/Version/ (some modules tries to put then
under /lib)
* not to add extra .lua files if not strictly neccesary.

(Lua Version can be obtained with `pkg-config --variable=V lua`)

Are you right?

P.D. mpb, i see you are interested in make recipes for lua
modules, now that we have a guide to build them, could we start to
coordinate us to avoid to make the same recipes, what do you thing?
If you agree please, send me a email telling what modules have you
planned to write.

Greets.
Aitor.
_______________________________________________
gobolinux-devel mailing list
[email protected]
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to