[Sputnik-list] Bug in sputnik + xavante/wsapi
Yuri Takhteyev
yuri at sims.berkeley.edu
Fri Jul 18 16:30:43 GMT+2 2008
Yes, please do for now, but this seems like an issue for which we'll
need an actual solution. Should the installation script just override
xavante/config.lua? The problem of course is also that Kepler rocks
tend to change, so this would introduce fragility without some
rock-control. I am guessing the solution for this would be to go back
to the installation method I used with experimental "on the rocks"
installer in the spring, which was to run the kepler installer with
"--without-kepler", then install the necessary rocks with
"--only-from=http://sputnik...." flag.
But if we go this route, it would be good to figure out what's the
minimum set of rocks that we need for this. I.e., I don't want to run
kepler installer with --without-kepler and then do "install kepler",
thus having to worry about maintaining up to date copies of cgilua,
orbit. It's also an opportunity to cut down the size of the
installation.
The good news is that for CGI it's all quite trivial:
bash kepler-install-1.1-1 --prefix=$SPUTNIK --without-readline
--without-kepler
./bin/luarocks install wsapi # this just installs one rock
./bin/luarocks --from=http://sputnik.freewisdom.org/rocks/earth
install sputnik
Then create the sputnik.cgi file, etc. just like the current installer does.
To get rid of the second line and to switch to --only-from, I will
need to add seven rocks to my repository: cosmo, lbase64, lpeg,
luafilesystem, markdown, md5, luasocket.
"./bin/luarocks install xavante" then requires "copas", "coxpcall"
This doesn't give us a way of actually starting Xavante. It looks
like we are just missing a few files, though, so perhaps it would make
sense to hack together a sputnik-xavante rock with those files and a
dependency on xavante?
This somewhat more complicated installation method saves us five rocks
(cgilua, orbit, rings, kepler and kepler-xavante) and halves the total
size of the installation. (Orbit accounts for about 1/2 of the
current installation - 2.3 MB out of 5.1. Without
orbit/kepler/cgilua/etc we are down to 2.4MB)
- yuri
On Fri, Jul 18, 2008 at 5:25 AM, Enrico Tassi <gareuselesinge at libero.it> wrote:
> On Fri, Jul 18, 2008 at 10:52:58AM +0100, Jim Whitehead II wrote:
>> On Thu, Jul 17, 2008 at 2:47 PM, Enrico Tassi <gareuselesinge at libero.it> wrote:
>> with = wsapi.xavante.makeGenericHandler (webDir, true)
>
> Thank you very much!
>
> may I add this to http://sputnik.freewisdom.org/en/Troubleshooting ?
>
> Cheers
> --
> Enrico Tassi
>
> _______________________________________________
> Sputnik-list mailing list
> Sputnik-list at lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
>
--
http://sputnik.freewisdom.org/
More information about the Sputnik-list
mailing list