El Sat, 5 May 2007 23:29:05 -0300
[EMAIL PROTECTED] escribió
> >
> > Currently, Lua itself uses the patched locations, but the 2 Lua
> > modules for which there are recipes use the Lua-default locations.

Sure, i have both lua recipes fixed, but not commited yet.
I have also more lua modules recipes fixed but i had no time to send
them.

I think that Lua recipe was yet fixed.

Another question about modules, i add a module_name.lua to all my
recipes like this:

+local
SOPATH="@%Compile_target%@/lib/lua/@%Compile_luaversion%@/@[EMAIL PROTECTED]"
+local OPENFUNC="[EMAIL PROTECTED]@"
+
 local function so(x)
-       local SOPATH= os.getenv"LUA_SOPATH" or "./"
-       assert(loadlib(SOPATH.."l"..x..".so","luaopen_"..x))()
+       local version=string.sub(_VERSION,5,5)..string.sub(_VERSION,7,7)
+       local loadlib
+       if version >= "51" then
+               loadlib=package.loadlib
+       end
+       return assert(loadlib(SOPATH,OPENFUNC))()
 end
 
-so"posix"
+so()
+module("@%Compile_luamodule%@")

Should we add the lua files? or let then without it?.

Greets, Aitor.


_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to