On Thu, Oct 28, 2010 at 7:40 AM, steve donovan
<[email protected]> wrote:
> Hi all,
>
> external_dependencies = {
> GDBM = {
> header = "gdbm.h",
> library = "libgdbm.so"
> }
> }
>
> On Debian/Ubuntu, gdbm is available by default, but as libgdbm.so.3
> (i.e. no plain .so). In any case, the library check is redundant
> unless we're doing binary installs.
>
> So a quick fix is to comment out library = ... until we have a means
> of specifying variants/patterns for library searches.
We do have variants and patterns: We already have a syntax for
abstracting the library filename: library="gdbm", which is matched
with cfg.external_deps_patterns in deps.check_external_deps (currently
{ "lib?.a", "lib?.so" } on Unix, { "?.lib", "?.dll", "lib?.dll" } on
Windows, plus a hack in luarocks.deps to autoconvert things such as
".dylib").
".so" vs. ".so.*" is a general problem and I think it merits specific
support in LuaRocks. check_external_deps should be extended to support
"*" in patterns, so we can add "lib?.so.*" to
cfg.external_deps_patterns on Unix.
-- Hisham
_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers