On Fri, Sep 7, 2012 at 9:59 AM, Alexander Gladysh <aglad...@gmail.com> wrote:
> On Sun, Sep 2, 2012 at 12:54 AM, Alexander Gladysh <aglad...@gmail.com> wrote:
>> Hi, list!
>>
>> <pre>
>> $ sudo luarocks install lua-http-parser
>> Installing 
>> http://luarocks.org/repositories/rocks/lua-http-parser-1.0-1.src.rock...
>> Using 
>> http://luarocks.org/repositories/rocks/lua-http-parser-1.0-1.src.rock...
>> switching to 'build' mode
>> Archive:  
>> /tmp/luarocks_luarocks-rock-lua-http-parser-1.0-1-2966/lua-http-parser-1.0-1.src.rock
>>   inflating: lua-http-parser-1.0-1.rockspec
>>    creating: lua-http-parser/
>>   inflating: lua-http-parser/.gitmodules
>>   inflating: lua-http-parser/CMakeLists.txt
>>    creating: lua-http-parser/http-parser/
>>   inflating: lua-http-parser/lua-http-parser.c
>>   inflating: lua-http-parser/lua-http-parser-scm-0.rockspec
>>   inflating: lua-http-parser/bench.lua
>>   inflating: lua-http-parser/LICENSE-MIT
>>   inflating: lua-http-parser/lua-http-parser-1.0-1.rockspec
>>   inflating: lua-http-parser/README
>>   inflating: lua-http-parser/test.lua
>> Warning: unmatched variable CMAKE_BUILD_TYPE
>> -- The C compiler identification is GNU
>> -- Check for working C compiler: /usr/bin/gcc
>> -- Check for working C compiler: /usr/bin/gcc -- works
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Found Lua51:
>> /usr/lib/i386-linux-gnu/liblua5.1.so;/usr/lib/i386-linux-gnu/libm.so
>> Cloning into 'http-parser'...
>> remote: Counting objects: 3, done.
>> remote: Compressing objects: 100% (2/2), done.
>> remote: Total 3 (delta 0), reused 3 (delta 0)
>> Receiving objects: 100% (3/3), done.
>> -- Configuring done
>> CMake Error at CMakeLists.txt:32 (add_library):
>>   Cannot find source file:
>>
>>     http-parser/http_parser.c
>>
>>   Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
>>   .hxx .in .txx
>>
>>
>> -- Build files have been written to:
>> /tmp/luarocks_lua-http-parser-1.0-1-2690/lua-http-parser
>>
>> Error: Build error: Failed cmake.
>> </pre>
>
> Um, anyone?

I got that email mixed up with the one about the "missing cmake" error.

> The error seems to be fixed in one of the lua-http-parser forks (by
> switching the http-parser Git submodule to an alternative repo). Is it
> possible to get that fix to LR?

I uploaded an "scm" rock to the rocks-scm repository which works.

The reason why it wasn't posted to the main rocks repository is
because there is no upstream (or fork) _version_ containing the fix.
Rockspecs in the main repo are all versioned, ie, they must point to a
specific, non-moving-target version for download. Normally, when the
original source code goes missing (or moves around to a different URL)
that's not a problem because we keep a copy of the sources as a
.src.rock file, but the rockspec in case is downloading extra sources
at build time, so there's nothing LuaRocks can do to protect itself at
this point.

I suggest you to poke upstream and ask them to tag the current git
tree as 1.0.1 or something, that would suffice for us to pack a
versioned release in the main repo.

-- Hisham

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to