Ah yeah, I got a bit confused, the trick is to extract source.dir and 'cd'
into it before trying to 'make'

I was trying to make a rockspec -> PKGBUILD converter.
You can see the fruits of a few hours labour up at
https://gist.github.com/daurnimator/11148106
I works for a reasonable number of rocks, though it's very VERY far from
perfect

If you can think of any way to make it easier to install a rock without a
manifest I'd be interested....
At the moment it just unpacks and copys to standard dirs.


On 20 April 2014 17:23, Hisham <[email protected]> wrote:

> 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" <[email protected]> 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
>> [email protected]
>> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luarocks-developers
>
>
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to