Commit cb4b3ab6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

gitlab: build 'rugged' gem with separated libgit2 library,

so that we can explicitly specify which libraries should be / should
not be used and set RPATH appropriately, otherwise existing system
libraries may be used and the result has no RPATH and depends on the
environment where rugged is built .

note that libgit2 version should be same as the embedded one in rugged
gem, and here we use 0.24.0.
parent f8fcc312
[buildout]
extends =
../cmake/buildout.cfg
../curl/buildout.cfg
../openssl/buildout.cfg
../pkgconfig/buildout.cfg
../zlib/buildout.cfg
[libgit2]
# The version here heavily depends on the version of 'rugged' gem that
# is used in gitlab.
recipe = slapos.recipe.cmmi
url = https://github.com/libgit2/libgit2/archive/v0.24.0.tar.gz
md5sum = 8cabf04502d7203793b32f47ca410ae3
location = ${buildout:parts-directory}/${:_buildout_section_name_}
configure-command = ${cmake:location}/bin/cmake
configure-options =
-DCMAKE_INSTALL_PREFIX=${:location}
-DCURL=1
-DUSE_GSSAPI=0
-DUSE_OPENSSL=1
-DUSE_SSH=0
-DCMAKE_INSTALL_RPATH=${curl:location}/lib:${openssl:location}/lib:${zlib:location}/lib
environment =
CMAKE_INCLUDE_PATH=${curl:location}/include:${openssl:location}/include:${zlib:location}/include
CMAKE_LIBRARY_PATH=${curl:location}/lib:${openssl:location}/lib:${zlib:location}/lib
LDFLAGS=-L${curl:location}/lib
PATH=${pkgconfig:location}/bin:%(PATH)s
PKG_CONFIG_PATH=${curl:location}/lib/pkgconfig:${openssl:location}/lib/pkgconfig
......@@ -12,6 +12,7 @@ extends =
../../component/nodejs/buildout.cfg
../../component/openssl/buildout.cfg
../../component/nginx/buildout.cfg
../../component/libgit2/buildout.cfg
# for instance
../../component/bash/buildout.cfg
......@@ -144,6 +145,7 @@ bundle = ${bundler-4gitlab:bundle}
configure-command = cd ${:path} &&
${:bundle} config --local build.charlock_holmes --with-icu-dir=${icu:location} &&
${:bundle} config --local build.rugged --use-system-libraries=true --with-git2-include=${libgit2:location}/include --with-git2-lib=${libgit2:location}/lib
${:bundle} config --local build.pg --with-pg-config=${postgresql92:location}/bin/pg_config
make-binary =
......
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