Commit 491e6e28 authored by Jérome Perrin's avatar Jérome Perrin

component/libzip: add missing rpath and make shareable

find . -type f -executable | xargs ldd | egrep '(^\S|not found)' | grep -B1 'not found'
reported that this component creates binaries that are missing missing
rpath because libzip cannot be found.

Also enable shared as it looks shareable.
parent 5e82b0d2
...@@ -9,10 +9,11 @@ parts = libzip ...@@ -9,10 +9,11 @@ parts = libzip
[libzip] [libzip]
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
shared = true
url = https://libzip.org/download/libzip-1.5.2.tar.xz url = https://libzip.org/download/libzip-1.5.2.tar.xz
md5sum = f9dd38d273bcdec5d3d1498fe6684f42 md5sum = f9dd38d273bcdec5d3d1498fe6684f42
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = @@LOCATION@@
configure-command = configure-command =
mkdir build && cd build && \ mkdir build && cd build && \
${cmake:location}/bin/cmake \ ${cmake:location}/bin/cmake \
-DCMAKE_INSTALL_PREFIX=${:location} \ -DCMAKE_INSTALL_PREFIX=${:location} \
...@@ -24,4 +25,5 @@ make-binary = ...@@ -24,4 +25,5 @@ make-binary =
environment = environment =
PATH=${cmake:location}/bin:%(PATH)s PATH=${cmake:location}/bin:%(PATH)s
CMAKE_INCLUDE_PATH=${zlib:location}/include:${bzip2:location}/include CMAKE_INCLUDE_PATH=${zlib:location}/include:${bzip2:location}/include
CMAKE_LIBRARY_PATH=${zlib:location}/lib:${bzip2:location}/lib CMAKE_LIBRARY_PATH=${zlib:location}/lib:${bzip2:location}/lib
\ No newline at end of file LDFLAGS=-L${:location}/lib -Wl,-rpath=${:location}/lib
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment