On Mon, Mar 21, 2016 at 03:06:28PM +0000, Bas Wijnen wrote: > On Mon, Mar 21, 2016 at 02:37:44PM +0000, lumin wrote: > > When I'm dealing with one of my ITP's I found that this is > > a noticeable problem to Debian's lua packages. And I think > > this may require some changes to our lua policy, or the dh-lua > > scripts. > > What you describe should be fixed. There is a problem with how your scripts > work, though: if some packages are installed before luarocks, they will not be > indexed. Not unless luarocks scans for installed packages on installation > anyway. If it can do that, it might make more sense to just trigger that > procedure when a new lua module is installed as well. > > Making that part of dh-lua seems like the way to go.
Undoubtedly. Each lua package could ship a luarocks manifest, something like /usr/lib/luarocks/5.1/rocks/lua-cjson/2.1.0-1/manifest Such manifest could be generated by some code pretty close to postinst script attached to the bugreport, but at package build time (by dh-lua) and not at package installation time. Lumin, if you have time, please try to patch dh-lua. You could look for the code that generates .pc files, and start from that. Otherwise I'll do it myself, but I'm a bit busy these days. Best, -- Enrico Tassi