On Thu, Oct 14, 2010 at 5:17 AM, steve donovan
<[email protected]> wrote:
> On Wed, Oct 13, 2010 at 9:09 PM, Hisham <[email protected]> wrote:
>> Looks like there's a number of little changes that have been suggested
>> lately that could eventually become a new version of the rockspec
>> format, for a new major release.
>
> Yes, I notice that rockspec_version is an optional field, currently
> "1.0". LR will even tell you to upgrade if this is explicitly set to
> some other value.
>
> Which brings us to another interesting possibility: delivering LR
> upgrades via LR itself.
>
> At the very least, configure should try to detect an existing
> installation (assumed to be working?)
>
> For LR post 2.x, then 'luarocks install luarocks' is completely
> possible, if done with care.

Actually, I did some tests in this direction already:

http://github.com/keplerproject/luarocks/blob/master/rockspec

but at the time of release I felt it wasn't time to promote this as
the recommended installation method. Too many little things that could
go wrong compared to the standard tarball installation (the "done with
care" part you mentioned).

The best approach would be to have the standard "configure-make-make
install" procedure to install LuaRocks and register it in the manifest
as a rock, so that later upgrades could be done using luarocks itself
(with a possible config flag to block this feature: this would prevent
it from breaking the distro database when installed via the distro
package manager).

-- Hisham

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to