Hi,

On Tue, Apr 5, 2011 at 4:05 PM, Michel Alexandre Salim
<[email protected]> wrote:
> Dear developers,
>
> I just checked out the latest luarocks source from git, and when doing a
> local installation (to $HOME/opt/stow/luarocks-git), noticed that the
> same directories appear multiple times in LUA_PATH and LUA_CPATH
> generated by 'luarocks path'
>
> Some of it is due to bin/luarocks and bin/luarocks-admin having multiple
> package.path definitions; however, removing all of them still results in
> duplicated directories.

I just pushed a commit fixing the issue of duplicated entries, thanks
for the report!.

I add this to the top of the bin/ scripts to force a predictable
environment -- packages installed through distro package management
don't have this problem, but to make a tarball that works mostly
everywhere I found this to be a solution that usually works well in
practice. We can add an option to disable this altogether, which I
think would be useful for distro packages.

> Files attached. This is on Fedora 15 x86_64 with the system-installed
> lua -- the only slightly odd thing is that it's a multilib 64-bit
> system, with lua libraries in /usr/lib64/lua/5.1. I only overrode
> --prefix to generate these files; my previous attempt to do a system
> install (with --with-lua-lib set to the correct value) results in an
> even longer LUA_PATH and LUA_CPATH!
>
> We're hoping to integrate LuaRocks into our Lua packaging for the next
> release cycle (Fedora 16), similar to how when installing Python eggs
> and Ruby gems on Fedora, already-installed modules managed by the
> system's package manager are detected. It'd probably require fixing some
> multilib issues (even with --with-lua-lib passed, luarocks wants to
> install new modules to "lib" rather than to "lib64"), but those are a
> bit harder to debug with the additional noise due to the duplicate paths!

Indeed, the hierarchy lib/lua/5.1 is hardcoded in luarocks/path.lua
for now... we need to fix this. I added this to the bugtracker.

If any other problems come up during integration of LuaRocks with
Fedora, let us know and we'll work on it. Thanks for opening this
channel for cooperation -- I understand there are often clashes
between language and distro package managers and we want to make sure
we play nice with the host system.

Cheers,
-- Hisham

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to