On 11 July 2017 at 04:22, Ildar Mulyukov <[email protected]> wrote:
> Hi, Hisham, ppl,
> Revitalizing this thread.
> What I see in current luarocks is quite contradictory:
> 1. luarocks built with configure&make creates just one file `config-x.x.lua`
> according to the current lua interpreter (e.g. `config-5.1.lua`)
> 2. But `luarocks-admin make_manifest` produces 4 manifest files: manifest,
> manifest-5.1, manifest-5.2, manifest-5.3
> 3. The rocks metainfo is not multi-lua. Particularly the `rock_manifest`
> file doesn't consider versions of files for different Luas.
> 4. https://github.com/luarocks/luarocks/issues/403 emerged that LR now
> supports per-Lua-version `rocks` folder.
>
> So it appears that LR is still single-Lua with questionable multi-manifests.
> I didn't yet check how running `luarocks-admin make_manifest` with different
> Luas will handle manifest-5.{1,2,3} ...

Your assessment is correct. The reason is because since the early days
LuaRocks uses manifests both to represent repositories of packed rocks
(back then the main rocks server was just a directory in a webserver
with .rock files and a manifest, and various projects still use this
setup to host their own rock servers) and to represent the list of
installed rocks in a given prefix.

A LuaRocks installation is targeted for one specific Lua version, so
it installs rocks for that version. But it may also manage a rock
server repository, so make_manifest supports indexing a directory full
of rocks for multiple Lua versions.

Using the same manifest concept for indexing both a rock repository
and a local rock tree is a bit confusing, I admit. I wonder if the
code sharing it allowed was worth the extra complication.

> Q: is it still theoretically possible to have one rocks tree for multi-Lua
> and rocks installed into different `.../lua/$VERSION/` folders?

No. In the current version of LuaRocks, it is possible to install it
multiple times for different Lua versions and the independent LuaRocks
installations will each deal with their own Lua version, producing
three rocks trees.

-- Hisham

> пн, 8 апр. 2013 г. в 13:22, Gary V. Vaughan <[email protected]>:
>>
>> On 8 Apr 2013, at 01:03, "Gary V. Vaughan" <[email protected]> wrote:
>> > On 7 Apr 2013, at 22:15, steve donovan <[email protected]>
>> > wrote:
>> >> On Sun, Apr 7, 2013 at 7:33 AM, Gary V. Vaughan <[email protected]>
>> >> wrote:
>> >> And yet I have made perfectly functional triple-interpreter installs of
>> >> luarocks on Ubuntu and Mountain Lion, each managing three independent
>> >> trees (Lua 5.1.x, Lua 5.2.x and luajit-2.0.x) all with just a single
>> >> installation of luarocks-2.0.12.
>> >>
>> >> Now that makes more sense to me, less engineering, more configuration.
>> >>
>> >> Gary, could you put your config up on the wiki or some such?
>> >
>> > I'll write up the recipe on the wiki in a day or two...
>>
>> Added to the wiki at:
>>
>>   http://lua-users.org/wiki/LuaRocksConfig
>>
>> Cheers,
>> --
>> Gary V. Vaughan (gary AT vaughan DOT pe)
>>
>>
>> ------------------------------------------------------------------------------
>> Minimize network downtime and maximize team effectiveness.
>> Reduce network management and security costs.Learn how to hire
>> the most talented Cisco Certified professionals. Visit the
>> Employer Resources Portal
>> http://www.cisco.com/web/learning/employer_resources/index.html
>> _______________________________________________
>> Luarocks-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/luarocks-developers
>
> --
> Ildar Mulyukov,
> child of God
>
> email: [email protected]
> GoogleTalk: [email protected]
> blog: http://johan-notes.blogspot.com/
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Luarocks-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luarocks-developers
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to