On Thu, Jan 6, 2011 at 5:56 PM, Ildar Mulyukov
<[email protected]> wrote:
> On 07.01.2011 01:12:32, Ildar Mulyukov wrote:
>>
>>        Dear colleagues,
>> please confirm.
>>        $ luarocks list | grep -A1 lpeg
>>        lpeg
>>           0.10-1 (installed) - /usr/lib/luarocks/rocks
>>
>>        $ luarocks make --local --to=/tmp/lua-module-cosmo-buildroot/usr
>> /var/tmp/RPM/SOURCES/cosmo-10.04.06-1.rockspec
>>
>>        Missing dependencies for cosmo:
>>        lpeg >= 0.9
>>
>> luarocks seems to be mistaken.
>
> Hi, everybody. I was wrong. The version calculation is fine.

Oops, sorry about the noise with the previous post. Catching up with the list.

> BUT my problem here: I need the DESTDIR analog*). I was thinking the "--to="
> option is the thing I need. I was wrong.
>
> Explanation: Using --to=<tree> option makes luarocks look only into the
> <tree> when seeking deps. (Why?)

I believe the original idea was that when using --to the goal is to
avoid installing a rock in a tree and then suffering with missing
dependencies when trying to use the tree. I understand that you want
to provide those dependencies in a separate tree. We need to rethink
those flags.

> Anyone can give me a hint?
>
> *) DESTDIR is a dir for installation. I.e. I build something to install into
> /usr. Then installing it with DESTDIR==/tmp/buildroot puts all the files
> into /tmp/buildroot/usr . This is necessary for *distro packaging*. Some
> references:
> 1. http://sourceware.org/autobook/autobook/autobook_107.html

We don't have that, but an alternative is to use "luarocks pack" which
will create a .rock file which can then be installed into any tree.

-- Hisham

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

Reply via email to