Skip to contentSkip to conversation

lzlib: depends on lua

PATCH New gustavo.zacarias at free-electrons.com 3 participants 5 messages Dec 21, 2016 – Dec 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lzlib: depends on lua

From: Gustavo Zacarias <[email protected]>

It's missing the dependency on lua, hence when using the upcoming PPS support its staging directory isn't populated with the required dependencies resulting in build failure.

---
 package/lzlib/lzlib.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/lzlib/lzlib.mk +1 -1
index 91f380a..f468a1c 100644
@@ -6,7 +6,7 @@
 
 LZLIB_VERSION = 0.4.3
 LZLIB_SITE = $(call github,LuaDist,lzlib,$(LZLIB_VERSION))
-LZLIB_DEPENDENCIES = zlib
+LZLIB_DEPENDENCIES = lua zlib
 LZLIB_LICENSE = MIT
 LZLIB_CONF_OPTS = -DINSTALL_CMOD="/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" \
 	-DINSTALL_LMOD="/usr/share/lua/$(LUAINTERPRETER_ABIVER)"
Signature · 1 line
2.10.2
#1 lore raw

PATCH 1/1 lzlib: depends on lua

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"gustavo" == gustavo zacarias <[email protected]> writes:

From: Gustavo Zacarias <[email protected]> It's missing the dependency on lua, hence when using the upcoming PPS support its staging directory isn't populated with the required dependencies resulting in build failure.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 lzlib: depends on lua

In reply to gustavo.zacarias at free-electrons.com

Hello,

Quoted 7 lines · gustavo.zacarias at free-electrons.com

From: Gustavo Zacarias <[email protected]>

It's missing the dependency on lua, hence when using the upcoming PPS support its staging directory isn't populated with the required dependencies resulting in build failure.

I'm probably missing something, but even without PPS we should have seen build failures of this package, no?

Or because lzlib is after lua in alphabetic ordering, and nothing makes lzlib built before lua due to dependencies, we were lucky enough?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#3 lore raw

PATCH 1/1 lzlib: depends on lua

Quoted 9 lines · Thomas Petazzoni

I'm probably missing something, but even without PPS we should have seen build failures of this package, no?

Or because lzlib is after lua in alphabetic ordering, and nothing makes lzlib built before lua due to dependencies, we were lucky enough?

Thanks!

Thomas

Hi.
I didn't try to reproduce this outside PPS, but i'm inclined to side with your second theory, the failure looks like:

*****
-- The C compiler identification is GNU 4.8.3
-- Check for working C compiler:
/home/gustavoz/b/pps3/output/host/usr/bin/arm-none-linux-gnueabi-gcc -- Check for working C compiler:
/home/gustavoz/b/pps3/output/host/usr/bin/arm-none-linux-gnueabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
DIST_NAME: lzlib
DIST_VERSION: 0.4.2
DIST_LICENSE: MIT/X11
DIST_AUTHOR: Tiago Dionizio
DIST_MAINTAINER: Peter Draho?
DIST_URL: http://luaforge.net/projects/lzlib/
DIST_DESC: Lua bindings to the ZLib compression library DIST_DEPENDS:
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find Lua (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)
cmake/FindLua.cmake:113 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) cmake/lua.cmake:116 (find_package)
cmake/lua.cmake:163 (_lua_module_helper)
CMakeLists.txt:15 (install_lua_module)

-- Configuring incomplete, errors occurred!
See also "/home/gustavoz/b/pps3/output/build/lzlib-0.4.3/CMakeFiles/CMakeOutput.log". package/pkg-generic.mk:206: recipe for target '/home/gustavoz/b/pps3/output/build/lzlib-0.4.3/.stamp_configured' failed
make: *** [/home/gustavoz/b/pps3/output/build/lzlib-0.4.3/.stamp_configured] Error 1
*****

Even if lua was built i can reproduce this after cleaning the lzlib package staging and build directories.

Regards.

#4 lore raw

PATCH 1/1 lzlib: depends on lua

In reply to Thomas Petazzoni
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Hello,

Quoted 6 lines · gustavo.zacarias at free-electrons.com

From: Gustavo Zacarias <[email protected]>

It's missing the dependency on lua, hence when using the upcoming PPS support its staging directory isn't populated with the required dependencies resulting in build failure.

Quoted 7 lines
Quoted 1 line

I'm probably missing something, but even without PPS we should have seen build failures of this package, no?

Or because lzlib is after lua in alphabetic ordering, and nothing makes lzlib built before lua due to dependencies, we were lucky enough?

Yes, I think it purely worked by chance because of the alphabetical ordering.

Signature · 1 line
Bye, Peter Korsgaard