Commit 4b25b210 authored by Jérome Perrin's avatar Jérome Perrin

component/slapos: explicitly install everything in non-shared mode

When this is used in production, the slapos.cfg does not have shared
parts enabled, but disabling explicitly makes it easier to test, because
in testing environment we have shared parts enabled by default.
parent 4da31147
......@@ -22,12 +22,14 @@ download-cache = download-cache
# Instead of:
# ./configure --prefix=INSTALL_DIRECTORY && make install DESTDIR=BUILD_DIRECTORY
[python2.7]
shared = false
configure-options +=
--prefix=${buildout:rootdir}/parts/${:_buildout_section_name_}
environment +=
DESTDIR=${buildout:destdir}
[gettext]
shared = false
# Add gettext library path to RPATH as its binaries are used to build
# glib for example
environment =
......@@ -36,6 +38,7 @@ environment =
LDFLAGS=-L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${ncurses:location}/lib -Wl,-rpath=${ncurses:location}/lib -Wl,-rpath=${buildout:builddir}/parts/${:_buildout_section_name_}/lib
[bison]
shared = false
configure-options +=
--prefix=${buildout:rootdir}/parts/${:_buildout_section_name_}
make-options +=
......@@ -45,23 +48,28 @@ environment +=
PERL5LIB=${perl:location}/lib/5.28.1/
[intltool]
shared = false
environment +=
PERL5LIB=${perl:location}/lib/5.28.1/
[autoconf]
shared = false
environment +=
PERL5LIB=${perl:location}/lib/5.28.1/
[automake]
shared = false
environment +=
PERL5LIB=${perl:location}/lib/5.28.1/
[firewalld]
shared = false
environment +=
PERL5LIB=${perl:location}/lib/5.28.1/
[dbus]
shared = false
location = ${buildout:parts-directory}/${:_buildout_section_name_}
configure-options +=
--prefix=${buildout:rootdir}/parts/${:_buildout_section_name_}
......@@ -74,6 +82,7 @@ post-install =
mkdir -p ${buildout:destdir}/parts/${:_buildout_section_name_}/var/run/dbus
[dbus-glib]
shared = false
location = ${buildout:parts-directory}/${:_buildout_section_name_}
environment +=
LD_LIBRARY_PATH=${dbus:location}/lib
......@@ -81,6 +90,7 @@ environment +=
[dbus-python]
shared = false
pre-configure =
sed -i 's#/opt/slapos/parts/dbus/lib/libdbus-1.la#${dbus:location}/lib/libdbus-1.la#' ${dbus-glib:location}/lib/libdbus-glib-1.la
environment +=
......@@ -92,6 +102,7 @@ post-install =
sed -i 's#${dbus:location}/lib/libdbus-1.la#/opt/slapos/parts/dbus/lib/libdbus-1.la#' ${dbus-glib:location}/lib/libdbus-glib-1.la
[openssl]
shared = false
prefix = ${buildout:rootdir}/parts/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
make-options +=
......@@ -103,12 +114,14 @@ environment =
PERL=${perl:location}/bin/perl
[bison-go]
shared = false
<= bison
configure-options =
--prefix=${buildout:parts-directory}/${:_buildout_section_name_}
make-options =
[gobject-introspection]
shared = false
pre-configure =
sed -i 's#!/opt/slapos/parts/python2.7/bin/python2.7#!${python2.7:location}/bin/python2.7#' ${python2.7:location}/bin/python2.7-config
configure-options +=
......@@ -121,12 +134,14 @@ post-install =
rm -rf ${bison-go:location}
[pygobject3]
shared = false
pre-configure +=
sed -i 's#!/opt/slapos/parts/python${python:version}/bin/python${python:version}#!${python:location}/bin/python${python:version}#' ${python:location}/bin/python2.7-config
post-install =
sed -i 's#!${python:location}/bin/python${python:version}#!/opt/slapos/parts/python${python:version}/bin/python${python:version}#' ${python:location}/bin/python2.7-config
[ncurses]
shared = false
configure-options =
--prefix=${buildout:parts-directory}/${:_buildout_section_name_}
--with-shared
......@@ -139,11 +154,13 @@ configure-options =
--enable-rpath
[flex]
shared = false
environment +=
BISON_PKGDATADIR=${bison:location}/share/bison/
[perl-CPAN-package]
shared = false
perl-PERL5LIB=${perl:location}/lib/5.28.1/
pre-configure =
......@@ -154,6 +171,7 @@ post-install =
sed -i "s#'${buildout:destdir}/parts/site_perl#'/opt/slapos/parts/site_perl#" ${perl:location}/lib/5.28.1/*-linux-thread-multi/Config.pm
[perl]
shared = false
location = ${buildout:destdir}/parts/perl
configure-command =
sh Configure -des \
......@@ -168,12 +186,14 @@ environment +=
DESTDIR=${buildout:destdir}
[iptables]
shared = false
configure-options +=
--prefix=${buildout:rootdir}/parts/${:_buildout_section_name_}
environment +=
DESTDIR=${buildout:destdir}
[swig]
shared = false
configure-options +=
--prefix=${buildout:rootdir}/parts/${:_buildout_section_name_}
environment +=
......
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