On 20 March 2014 11:26, Peter Colberg <pe...@colberg.org> wrote:
> Hi Hisham,
>
> Before I prepare rockspecs that build autonomously, could you revisit
> the last post in the thread “HDF5 for Lua rockspec”, which asks for
> adding architecture-dependent paths to LUA_PATH?

I see your use case, it's one I didn't cover originally and now the
assumption of .lua files in $(LIBDIR) and binaries in $(LUADIR) shows
in several places (eg the builtin build mode)... It's a bit hard to
give this a proper fix right now.

> Currently the architecture-dependent files (C.lua) that contain FFI
> C bindings are installed to $(LUADIR), and the resulting binary rock
> is architecture all, while working on 64 bit architectures only.
>
> The alternative is to install C.lua to $(LIBDIR), but this requires
> that `luarocks path` also adds $(LIBDIR) to LUA_PATH. Further, this
> introduces a maintenance headache, since multiple rocks have to be
> uploaded for each OS (Linux, Mac OS X, FreeBSD, Windows) despite
> having the same C.lua given the same architecture (e.g. 64 bit).
>
> I would prefer the first solution, and point out in the installation
> instructions that the pre-compiled rocks are for 64 bit systems.

Sounds like the path of least resistance. :)

> Users of 32 bit systems can still install with “luarocks build”, which
> requires GCC and the Lua plugin for GCC to be available.  For HDF5 and
> OpenCL, this should not be a problem, since both libraries target
> high-performance computing where 64 bit is used exclusively.

Cool.

-- Hisham

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to