This is a library providing :
- A translation system based on idea of gettext
To build the fty-common-translation
project run:
./autogen.sh
./configure
make
make check # to run self-test
TBD
Add this block in the project.xml
file :
<use project = "fty-common-translation" libname = "libfty_common_translation" header = "fty_common_translation.h"
repository = "https://github.com/42ity/fty-common-translation.git"
release = "master"
test = "fty_common_translation_selftest" >
<use project = "fty-common-logging" libname = "libfty_common_logging" header = "fty_log.h"
repository = "https://github.com/42ity/fty-common-logging.git"
release = "master"
test = "fty_common_logging_selftest" >
<use project = "log4cplus" header = "log4cplus/logger.h" test = "appender_test"
repository = "https://github.com/42ity/log4cplus.git"
release = "1.1.2-FTY-master"
/>
</use>
<use project = "fty-common-mlm" libname = "libfty_common_mlm" header = "fty_common_mlm.h"
repository = "https://github.com/42ity/fty-common-mlm.git"
test = "fty_common_mlm_selftest" >
<use project = "czmq"
repository = "https://github.com/42ity/czmq.git"
release = "v3.0.2-FTY-master"
min_major = "3" min_minor = "0" min_patch = "2" >
<use project = "libzmq"
repository = "https://github.com/42ity/libzmq.git"
release = "4.2.0-FTY-master" >
<use project = "libsodium" prefix = "sodium"
repository = "https://github.com/42ity/libsodium.git"
release = "1.0.5-FTY-master"
test = "sodium_init"
/>
</use>
</use>
<use project = "cxxtools" test = "cxxtools::Utf8Codec::Utf8Codec" header = "cxxtools/allocator.h"
repository = "https://github.com/42ity/cxxtools.git"
release = "2.2-FTY-master"
/>
<use project = "malamute" min_major = "1" test = "mlm_server_test"
repository = "https://github.com/42ity/malamute.git"
release = "1.0-FTY-master"
/>
<use project = "openssl" header = "openssl/sha.h" debian_name = "libssl-dev"/>
<use project = "fty-common" libname = "libfty_common" header = "fty_common.h"
repository = "https://github.com/42ity/fty-common.git"
release = "master"
test = "fty_common_selftest" >
<use project = "fty-common-logging" libname = "libfty_common_logging" header = "fty_log.h"
repository = "https://github.com/42ity/fty-common-logging.git"
release = "master"
test = "fty_common_logging_selftest" >
<use project = "log4cplus" header = "log4cplus/logger.h" test = "appender_test"
repository = "https://github.com/42ity/log4cplus.git"
release = "1.1.2-FTY-master"
/>
</use>
</use>
<use project = "fty-common-logging" libname = "libfty_common_logging" header = "fty_log.h"
repository = "https://github.com/42ity/fty-common-logging.git"
release = "master"
test = "fty_common_logging_selftest" >
<use project = "log4cplus" header = "log4cplus/logger.h" test = "appender_test"
repository = "https://github.com/42ity/log4cplus.git"
release = "1.1.2-FTY-master"
/>
</use>
</use>
</use>
NOTE: The header
value must be changed from fty_common_translation.h
to
fty-common-translation/fty_common_ctranslation.h
for a C project.
NOTE: In this use
section, remove the dependecy already needed directly
by the particular agent/library whose project you are configuring, to
simplify maintenance of the configuration later.
In recent zproject revisions, dependency code that can be compiled from source or taken from packages (the 42ITy project does not publish any at the moment) is defined in a separate list, so it suffices to comment away the reference to this list:
# NOTE: Our forks are checked out and built without pkg dependencies in use
pkg_deps_prereqs: &pkg_deps_prereqs
# - *pkg_deps_prereqs_source
- *pkg_deps_prereqs_distro
Alternately, to avoid any errors, you can add these two lines in the
before_install
section of the .travis.yml
file, to remove these
packages if added into the build system (e.g. by some other dependencies):
before_install:
- sudo apt-get autoremove
It is not recommended to do this right away (before the problem bites in practice) because calls to packaging have considerable overheads in the run-times of the tests.