On Mon, Oct 31, 2011 at 8:59 PM, Peter Odding <[email protected]> wrote:
> Hi Hisham and Reuben,
>
> Thanks very much for your input. Indeed the automatic installation of
> system packages was a brain dead move (principle of least surprise and
> all). I think I've now found a reasonable middle ground that should be
> acceptable to everyone yet still improve the user experience when
> installing through LuaRocks while missing external dependencies.
>
> The makefile doesn't do any dependency checking up front now, instead
> I've modified the lines that invoke the compiler/linker to execute a Lua
> script when the compiler or linker fails. This should mean that every
> build which previously worked should still work exactly the same.
>
> When the build fails (and LuaRocks will also fail) my Lua script runs to
> perform a sanity check of missing external dependencies on supported
> platforms (Debian, Ubuntu, Arch Linux, Red Hat, Fedora Core, Suse Linux
> and CentOS). If it finds any missing external dependencies it will print
> a message informing the user of the problem and *suggest* a command that
> can be used to install the missing dependencies.
>
> I hope with this change the new Lua/APR rockspec can be added to the
> LuaRocks repository. The new rockspec is available here:
>
> http://peterodding.com/code/lua/apr/downloads/lua-apr-0.20.6-1.rockspec

Ideally, this should include an entry for APR in the external
dependencies, but I understand the current limitations for
implementing that. Pkgconfig support in LuaRocks is definitely in my
to-do list. I uploaded this version of the rockspec to the package
repository.

-- Hisham
http://hisham.hm/ - http://colorbleed.com.br/

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to