Le lun. 18 oct. 2021 à 22:12, Jérémy Lal <kapo...@melix.org> a écrit :

> Le lun. 18 oct. 2021 à 16:48, Oliver Schode <oliver.sch...@online.de> a
> écrit :
>
> > Package: luarocks
> > Version: 3.7.0+dfsg1-1
> > Severity: grave
> > Justification: renders package unusable
> >
> > Hi,
> >
> > thanks for reviving the package. Now I'm getting this when attempting to
> > install however:
> >
> >     Error: Cannot access repository at
> > /root/.luarocks/lib/luarocks/rocks-5.3
> >     dpkg: error processing package luarocks (--configure):
> >     installed luarocks package post-installation script subprocess
> > returned error exit status 1
> >
> >
> > luarocks.postinst:
> >
> >         mkdir -p /usr/local/lib/luarocks/rocks/
> >         luarocks-admin make_manifest --local-tree  <---
> >
> > Using local-tree here is probably wrong.
>
>
> Indeed i have on my system:
> cat /etc/luarocks/config.lua
> rocks_trees = {
>    home..[[/.luarocks]],
>    [[/usr/local]]
> }
>
> (and a file named /etc/luarocks/config-5.1.lua with the same content).
>
> Several ideas to solve this:
> - stop assuming things and remove that postinstall script (both
> mkdir/luarocks-admin calls)
>   i believe this is the correct, "lua-style" solution
> - do not create directory, but call make_manifest and do not fail
> postinstall if no tree is found
> - furthermore, add /etc/luarocks/config.lua with that above config
>
> Any thoughts about this ?
>

The luarocks changelog clearly states that it's up to the user to set
prefered location for installing lua rocks, so i'm opting for that too.
It has less side effects.

Jérémy

Reply via email to