Multiple version of Lua with alternatives

Brian Inglis Brian.Inglis@SystematicSw.ab.ca
Wed Feb 24 06:53:08 GMT 2021


On 2021-02-23 22:20, Marco Atzeri via Cygwin-apps wrote:
> On 24.02.2021 05:18, Lemures Lemniscati via Cygwin-apps wrote:
>> On Sat, 20 Feb 2021 19:15:38 +0900, Lemures Lemniscati
>>> On Sat, 20 Feb 2021 08:40:33 +0100, Achim Gratz
>>>> Lemures Lemniscati via Cygwin-apps writes:
>>>>> * A new source luarocks provides lua53- and lua54-luarocks.
>>>>>    They install rocks into an alternative tree /var/lib/lua-site/.

>>>> That looks wrong to me, I'd have expected
>>>> /usr/share/lua/luarocks
>>>> or maybe /usr/local as a prefix depending on how much emphasis you want
>>>> to put on the user-installable part.  The /var/lib tree is for local
>>>> state information per FHS, not installed components.

>>> Thank you for review.
>>> I've fixed it, so that luarocks should install rocks into
>>> /usr/local, and updated packages [1].

>> I'm wondering again it would be better for luarock to install into /usr/local 
>> tree.
>> If we choose /usr/share/lua/luarocks as a tree root for luarocks,
>> the tree will be
>> /usr/share/lua/luarocks/bin
>> /usr/share/lua/luarocks/lib/lua/5.3
>> /usr/share/lua/luarocks/lib/lua/5.4
>> /usr/share/lua/luarocks/lib/luarocks/rocks-5.3/
>> /usr/share/lua/luarocks/lib/luarocks/rocks-5.4/
>> /usr/share/lua/luarocks/share/lua/5.3
>> /usr/share/lua/luarocks/share/lua/5.4
>> and if we choose /usr/local, the tree will be
>> /usr/local/bin
>> /usr/local/lib/lua/5.3
>> /usr/local/lib/lua/5.4
>> /usr/local/lib/luarocks/rocks-5.3/
>> /usr/local/lib/luarocks/rocks-5.4/
>> /usr/local/share/lua/5.3
>> /usr/local/share/lua/5.4
>> The latter seems more intuitive for me.

> usually installation with a similar subtree are installed
> under usr/lib
> $ find /usr/lib -name bin
> /usr/lib/debug/usr/bin
> /usr/lib/debug/usr/libexec/TeXmacs/bin
> /usr/lib/postgresql/bin
> /usr/lib/python3.8/site-packages/SCons/Tool/docbook/docbook-xsl-1.76.1/epub/bin
> /usr/lib/python3.8/site-packages/SCons/Tool/docbook/docbook-xsl-1.76.1/tools/bin
> /usr/lib/qt4/bin
> /usr/lib/qt5/bin
> /usr/lib/R/bin
> /usr/lib/R/site-library/ps/bin
> /usr/lib/R/site-library/Rcpp/unitTests/bin
> there are few cases under usr/share
> but usually are sub-sub trees
> $ find /usr/share -name bin
> /usr/share/doc/perl/html/html1/bin
> /usr/share/gdb/auto-load/usr/bin
> /usr/share/gems/gems/rake-12.3.2/bin
> /usr/share/gems/gems/rdoc-6.1.2/bin
> /usr/share/grace/bin
> /usr/share/octave/packages/parallel-4.0.0/bin
> /usr/share/octave/packages/sparsersb-1.0.8/bin
> /usr/share/ruby/2.6/bundler/templates/newgem/bin
> /usr/share/sgml/docbook/xsl-ns-stylesheets/epub/bin
> /usr/share/sgml/docbook/xsl-stylesheets/epub/bin
> /usr/share/texmf-dist/source/latex/koma-script/doc/bin
> /usr/share/texmf-dist/tex4ht/bin

> we have nothing "current" installed under usr/local
> at all. No package should be installed there

Indeed - that's where I stash all my personal Cygwin scripts and exes.

Another good spot is /usr/libexec/ which is well populated by the likes of git 
plumbing and other packages. I prefer the packages that populate subdirectories 
rather than littering the top level like geoclue and gvfsd.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]


More information about the Cygwin-apps mailing list