Commit 7c206030 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Refactor the directories according to the following hierarchy:

STATIC: <something>--static extends <something> and overrides some parameters to link statically.
Rationale: The default behavior in slapos seems to be dynamic linking, so currently the special case is the static one and it can be reached simply by overriding parameters.

DEP: dep--<something> extends <something> and overrides some parameters to use the host version of the dependencies.
Rationale:
- This is only for development and in particular packaging with OBS. The goal is mainly to be able to bypass the compilation of at least *some* building tools and therefore increase speed up the debugging process dramatically.
- Currently the same buildout files are used in this case, so it is only needed to override some parameters, and therefore it is only needed to extend the already existing <something>.

Note: "dep_" was initially choosen instead of "dep--", but it seems that "_" is forbidden in Debian package name (because "_" is the separator between the package name and its version).
parent bfdc92a3
# This file is used for developpement only. THe dep_ prefix means it does not compile all the (building) dependencies.
# This file is used for developpement only. The dep_ prefix means it does not compile all the (building) dependencies.
[buildout]
extends =
../../software/fluent-bit/software.cfg
fluent-bit/software.cfg
parts =
fluent-bit
......@@ -12,6 +12,11 @@ part = python3
# DEPENDENCIES SIMPLIFICATIONS
#[python2.7]
# Desable python profiling optimization.
#make-targets = make install
[python2.7]
recipe =
environment =
......
# This file is used for developpement only. The dep_ prefix means it does not compile all the (building) dependencies.
[buildout]
extends =
# ../../component/fluent-bit/buildout.cfg
# ../../stack/slapos.cfg
# ../../component/defaults.cfg
# ../../component/gcc/buildout.cfg
../../component/fluentbit-plugin-wendelin/buildout.cfg
../../component/mca/buildout.cfg
mca-static/software.cfg
parts =
# gcc-8.5
# fmtlib
# golang1.17
# fluent-bit
fluentbit-plugin-wendelin
mca
# DEPENDENCIES SIMPLIFICATIONS
#[python2.7]
# Desable python profiling optimization.
#make-targets = make install
# DEPENDENCIES SIMPLIFICATIONS
[python2.7]
recipe =
environment =
......
# This file is used for developpement only. The dep_ prefix means it does not compile all the (building) dependencies.
[buildout]
extends =
mca/software.cfg
parts =
fluentbit-plugin-wendelin
mca
# DEPENDENCIES SIMPLIFICATIONS
#[python2.7]
# Desable python profiling optimization.
#make-targets = make install
[python2.7]
recipe =
environment =
location = /usr
[python3]
recipe =
environment =
location = /usr
[golang1.17]
recipe = plone.recipe.command
command = ${:location}/bin/go env -w GOPATH=${buildout:directory}/go
environment =
location = /usr
[cmake]
recipe =
environment =
location = /usr
[buildout]
extends =
# ../../component/fluent-bit/buildout.cfg
# ../../stack/slapos.cfg
# ../../component/defaults.cfg
# ../../component/gcc/buildout.cfg
# the next line replaces the two following (fluentbit-plugin-wendelin and mca)
../../software/light-build-dependencies-mca/software.cfg
# ../../component/fluentbit-plugin-wendelin/buildout.cfg
# ../../component/mca/buildout.cfg
mca/software.cfg
parts =
# gcc-8.5
# fmtlib
# golang1.17
# fluent-bit
fluentbit-plugin-wendelin
mca
# ENABLE STATIC LINKING
# note: as a general matter, one has tweak each dependency by hand to get a static executable
[mca]
# static version:
# WARNING: LINK_STATIC only has to be defined to switch to static linking (so it does so even if the value is "NO", "OFF" or "FALSE").
# WARNING: LINK_STATIC only has to be defined to switch to static linking (so it does so even if the value is "NO", "OFF" or "FALSE"). Just don't define it in order deactivate the option.
environment +=
ZLIB_PATH=${zlib:location}
LINK_STATIC=AAA
LINK_STATIC=dumb_value
[fmtlib]
# static version:
......
[buildout]
extends =
# ../../component/fluent-bit/buildout.cfg
# ../../stack/slapos.cfg
# ../../component/defaults.cfg
# ../../component/gcc/buildout.cfg
../../component/fluentbit-plugin-wendelin/buildout.cfg
../../component/mca/buildout.cfg
parts =
# gcc-8.5
# fmtlib
# golang1.17
# fluent-bit
fluentbit-plugin-wendelin
mca
[python2.7]
make-targets = make install
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