If I'm following correctly, this is by design: `luarocks unpack` downloads
sources and puts the rockspec inside the directory where the sources are;
the user then cd's into the sources dir and runs `luarocks make` there. The
idea is that `luarocks make` works like `make`: both expect to find the
rockspec/makefile and the sources at the current dir.

-- Hisham
 On Apr 20, 2014 5:18 PM, "Daurnimator" <q...@daurnimator.com> wrote:

> x-posted from https://github.com/keplerproject/luarocks/issues/247
>
> I'm manually fetching sources, and want to run luarocks against them:
> e.g. for luatz:
> ```
> $ wget -q "http://luarocks.org/repositories/rocks/luatz-0.1-1.rockspec";
> $ curl -Ls "https://github.com/daurnimator/luatz/archive/v0.1.tar.gz"; |
> tar -xz
> $ luarocks make --pack-binary-rock luatz-0.1-1.rockspec
> cp: cannot stat ‘luatz/parse.lua’: No such file or directory
>         │
> Error<http://store.tcgplayer.com/Products.aspx?GameName=Magic&Name=Error&partner=AUTOANY>:
> Build error: Failed installing luatz/parse.lua in
> /tmp/luarocks_luarocks-build-pack-luatz-3386/lib/luarocks/rocks-5.2/luatz/0.1-1/lua/luatz/parse.lua
> ```
>
> It doesn't change directory into the correct dir, looking at the source,
> this seems to be due to `minimal_mode`:
> https://github.com/keplerproject/luarocks/blob/58b7f5d8531e054217bb6d425c04d76f699b6adf/src/luarocks/build.lua#L154and
>  done on purpose...
> ```
> -- @param minimal_mode boolean: true if there's no need to fetch,
> -- unpack or change dir (this is used by "luarocks make"). Implies
> -- need_to_fetch = false.
> ```
>
>
> ------------------------------------------------------------------------------
> 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/NeoTech
> _______________________________________________
> Luarocks-developers mailing list
> Luarocks-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/luarocks-developers
>
>
------------------------------------------------------------------------------
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/NeoTech
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to