keplerproject/luarocks — pull request #89 by avnik (2012-08-18 22:48:16+00:00)
Title: dependency lookup

Hi Hisham!

We have few rocks, that we pre-packaged via system package manager, placed in /usr/lib/pk-rocks-tree, with valid luarocks manifest inside, and this tree is listed in /etc/luarocks/config.lua. When we try to install ordinary rocks with "luarocks make", they are installed into /usr/local as usual, but luarocks won't resolve dependencies on "system provided" packages in /usr/lib/pk-rocks-tree.

Example:
% sudo luarocks make rockspec/lua-aplicado-scm-1.rockspec
Updating manifest for /usr/local/lib/luarocks/rocks
Missing dependency for lua-aplicado scm-1: luasocket 2.0.2-3
Missing dependency for lua-aplicado scm-1: luaposix 5.1.19-1
lua-aplicado scm-1 is now built and installed in /usr/local/ (license: MIT/X11)
[avn@cluster-an:pts/27]~/projects/lua-aplicado%

(in this example luasocket and luaposix built as "system" rocks, "luarocks show" show them installed)

I tried to fix manifest scanning and removed unnessesary check at manifest writing (this check superseeded by "high" level check at deps.lua).

We want to make this changes, because have troubles with third-party dependencies in "compilable rocks" (with .so) , and provide them as pre-built system packages (and allow dpkg/apt to pull their dependencies).