$darkmode
Elektra 0.11.0
0.9.0 Release

  • guid: e8c753c0-74af-410b-9f66-77c3ce194717
  • author: Markus Raab
  • pubDate: Tue, 06 Aug 2019 12:09:02 +0200
  • shortDesc: Cache, Command-line Options, Error Codes

What is Elektra?

Elektra serves as a universal and secure framework to access configuration settings in a global, hierarchical key database.

You can also read this document on our website.

We wrote a new article describing our vision from configuration management perspective.

For more information, visit https://libelektra.org.

0.9.*

We are proud to present our largest release so far. It is the first release of the 0.9.* version series, which goal is it:

  • To prepare Elektra for version 1.0.0, which includes incompatible changes like new error codes (which are already part of this release, hence 0.9.0). When 0.9.* is mature enough, we will call it 1.0.0.
  • To make Elektra future-proof so that during 1.*. most of Elektra's functionality can be kept stable
  • To cleanup Elektra, including removal of compatibility layers and research prototypes.

Business Plans

To get away from a purely research-oriented approach to a mature foundation, we also need paid employees to fix problems.

We plan to introduce following ways of income:

  1. donations
  2. paid support/feature requests
  3. consultancy

If you are interested in any of these, please contact us via busin.nosp@m.ess@.nosp@m.libel.nosp@m.ektr.nosp@m.a.org

The 0.8.* version series will be maintained on paid requests. If you have maintenance requests and want 0.8.27 to be released, please contact us via busin.nosp@m.ess@.nosp@m.libel.nosp@m.ektr.nosp@m.a.org

Please note, that Elektra will definitely stay 100% free software (BSD licensed). We do not plan to make any part proprietary. We only introduce a way for paid customers to get desired features or help more quickly.

Highlights

  • Cache
  • Command-line Options
  • Error Codes

Cache

Cache is a new global caching plugin. It uses mmapstorage as its storage backend and lazily stores the whole configuration from previous configuration accesses.

With large or many configuration files, the cache brings amazing performance improvements: Let us say, you have 649 INI configuration files mounted with the multifile resolver, completely specified (which means that the specification must be copied to all the configuration settings). Before the cache, retrieving the whole configuration would take 6 or even 13 seconds. With the cache, the whole operation now takes less than 0.5 seconds after the first access.

This is an important step towards the goal of Elektra to integrate all configuration files present on a system.

Limitations:

  • Mountpoints that are not connected with files, currently cannot be cached.
  • The cache currently does not work together with other global plugins.

By default, the cache will automatically enable itself once the cache plugin is installed. The cache can be found in ~/.cache/elektra.

We also added tools for enabling, disabling and clearing the cache (kdb cache {enable,disable,default,clear}).

A big thanks to _(Mihael Pranjić)_ for the excellent work.

Command-line Options

Gopts is a new plugin that integrates support for command-line options to applications:

  • The gopts plugin retrieves the values of argc, argv and envp needed for elektraGetOpts and then makes the call. It is intended to be used as a global plugin, so that command-line options are automatically parsed when kdbGet is called. _(Klemens Böswirth)_
  • The plugin works under WIN32 (via GetCommandLineW and GetEnvironmentString), MAC_OSX (_NSGetArgc, _NSGetArgv) and any system that either has a sysctl(3) function that accepts KERN_PROC_ARGS (e.g. FreeBSD) or when procfs is mounted and either /proc/self or /proc/curproc refers to the current process. If you need support for any other systems, feel free to add an implementation.

This means, that using the plugin, you do not need to call elektraGetOpts yourself anymore.

kdbEnsure is a new function in elektra-kdb. It can be used to ensure that a KDB instance meets certain clauses specified in a contract. In principle this a very powerful tool that may be used for a lot of things. All changes made by kdbEnsure are purely within the KDB handle passed to the function.

For example, kdbEnsure can be used, to ensure the availability of command-line options for your application.

Limitations:

  • kdbEnsure only works, if the list plugin is mounted in all appropriate global positions.
  • kdbEnsure does not take care of dependencies between plugins.
  • Mounting of non-global plugins is not supported.

A big thanks to _(Klemens Böswirth)_ for the excellent work.

Error Codes

With this release, we changed our messy error code system into a more structured and clean way. Similar to SQLStates we changed to structure of our error codes and migrated them. Have a look into the new codes. This allows us to easily extend the specification without breaking existing codes and to avoid risking duplicated errors as we had before. _(Michael Zronek)_

We were able to reduce the former 214 to now only 9 error codes.

For background information read:

A big thanks to _(Michael Zronek)_ for the excellent work.

Plugins

The following section lists news about the plugins we updated in this release. In total, we added 9 plugins and removed 2 plugins.

Type (New Version)

The type plugin was completely rewritten in C. The old version is now called cpptype. _(Klemens Böswirth)_

The new type plugin also provides the functionality of the enum and the boolean plugin. These plugins are now considered obsolete and you should use type instead.

A few notes on compatibility:

  • the new type does not support the full feature set of enum and boolean, but it supports the features we consider useful.
  • the new type doesn't support FSType and empty. These have been deprecated for a long time and there are good alternatives available.
  • the new type supports enum, wchar and wstring as types, whereas the old cpptype would throw an error for these. In most cases this won't be a problem, but you should be aware of this breaking change.
  • the new type does not support check/type/min and check/type/max, please use the range plugin instead.

To switch from enum to the new type, you have to add either check/type=enum or type=enum. Without a check/type or type metakey, the type plugin will ignore the key. We now also support converting enum values to and from integer values (see README).

To switch from boolean to the new type, you don't have to do anything, if you used the default config. If you used a custom configuration please take a look at the README.

Base64

  • We fixed some warnings about implicit type conversions reported by UBSan in the base64 plugin. _(René Schwaiger)_

Crypto and Fcrypt

  • Empty GPG key IDs in the plugin configuration are being ignored by the crypto plugin and the fcrypt plugin. Adding empty GPG key IDs would lead to an error when gpg is being invoked. _(Peter Nirschl)_
  • Apply Base64 encoding to the master password, which is stored within the plugin configuration. This fixes a problem that occurs if ini is used as default storage (see 2591). _(Peter Nirschl)_
  • Fix compilation without deprecated OpenSSL APIs. Initialization and deinitialization is not needed anymore. _(Rosen Penev)_

CSVStorage

  • Support DOS newlines for the csvstorage plugin. _(Vlad - Ioan Balan)_

Filecheck

  • We fixed some warnings about implicit type conversions reported by UBSan. _(René Schwaiger)_

INI

  • Fixed INI plugin when only the root key needs to be written. _(Mihael Pranjić)_
  • Plugin writes to INI files without spaces around '=' anymore. Reading is still possible with and without spaces. _(Oleksandr Shabelnyk)_

Macaddr

  • Added a plugin to handle MAC addresses. kdbGet converts a MAC address into a decimal 64-bit integer (with the most significant 16 bits always set to 0), if the format is supported. kdbSet restores the converted values back to there original form. _(Thomas Bretterbauer)_

mINI

  • We fixed compiler warnings reported by GCC 9 in the unit test code of the plugin. _(René Schwaiger)_

Mmapstorage

  • mmapstorage is now able to persist the Global KeySet, which is used by the cache plugin. _(Mihael Pranjić)_
  • Fixed support for kdb import and kdb export. _(Mihael Pranjić)_

Multifile

  • Fixed segmentation fault in kdbError() function. _(Mihael Pranjić)_
  • Added Global Keyset handle to storage plugin. _(Mihael Pranjić)_
  • Fixed use of wrong resolver handle in the kdbError() function. _(Mihael Pranjić)_

Quickdump

  • quickdump is a new storage plugin. It implements a more concise form of the dump format, which is also quicker too read. Contrary to dump, quickdump only stores keynames relative to the parent key. This allows easy relocation of configurations. _(Klemens Böswirth)_
  • quickdump now also uses an variable length integer encoding to further reduce file size. _(Klemens Böswirth)_

Reference

  • Fixed missing Metadata in README and METADATA.ini. _(Michael Zronek)_
  • Update README.md web tool to show, how to test REST API on localhost. _(Dmytro Moiseiuk)_

RGBColor

  • New plugin to validate hex formatted colors (e.g. #fff or #abcd) and normalize them to rgba (4294967295 (= 0xffffffff) and 2864434397 (= 0xaabbccdd) respectively). It also has support for named colors according to the extended color keywords from CSS3. _(Philipp Gackstatter)_

Semlock

Removed due to:

  • constant pain
  • never worked properly
  • poor design
  • no time in future to maintain _(Kurt Micheli)_

Spec

  • The spec plugin was partly rewritten to better support specifications for arrays. This includes some breaking changes concerning the less used (and also less functional) parts of the plugin. To find out more about these changes take a look at the README. It now better reflects the actually implemented behavior. _(Klemens Böswirth)_

Specload

  • The specload plugin is a special storage plugin. Instead of using a storage file it calls an external application to request its specification. For the transfer it relies on the quickdump plugin. _(Klemens Böswirth)_
  • Currently changing the specification is only allowed in a very limited way. However, in future the plugin should allow overriding a specification in all cases where this can be done safely. NOTE: While the plugin technically allows some modifications, because of a problem with the resolver this cannot be used right now (see limitations).
  • We also export elektraSpecloadSendSpec to abstract over the quickdump dependency. _(Klemens Böswirth)_

Syslog

  • We fixed an incorrect format specifier in a call to the syslog function. _(René Schwaiger)_

Unit

  • New plugin to validate units of memory and normalize them into bytes. E.g. 20 KB (normalized to 20000 Byte). _(Marcel Hauri)_

YAJL

The YAJL plugin which parses JSON files:

  • now allows setting a value to the mountpoint. This is represented as a top level value in JSON if no other key is present. _(Philipp Gackstatter)_
  • no longer lists empty parent keys with kdb ls. _(Philipp Gackstatter)_
  • signifies arrays with the metakey array according to the array decision. _(Philipp Gackstatter)_
  • no longer produces additional ___dirdata entries for empty array keys. See also issue #2477. _(Philipp Gackstatter)_

YAMBi

  • YAMBi is now able detect multiple syntax errors in a file. _(René Schwaiger)_
  • The error message now includes more information about the location of syntax errors. For example, for the incorrect YAML input config.yaml:
key 1: - element 1
- element 2
key 2: scalar
- element 3

, the plugin prints an error message that includes the following text:

config.yaml:2:2: syntax error, unexpected start of sequence, expecting end of map or key
- element 2
^
config.yaml:4:8: syntax error, unexpected start of sequence, expecting end of map or key
- element 3
^

. _(René Schwaiger)_

  • YAMBi now supports Elektra’s boolean data type. _(René Schwaiger)_
  • The plugin now handles YAML key-value pairs without a value at the end of a file correctly. _(René Schwaiger)_
  • The plugin now converts YAML key-value pairs with empty value to null/empty keys. _(René Schwaiger)_
  • YAMBi now converts empty files to a key set containing an empty version of the parent key. _(René Schwaiger)_

YAML CPP

  • The plugin now handles keys that are part of a map, but use a basename ending with array syntax correctly. For example, in a key set that contains keys with the following names:
user/array/#0
user/array/#1
user/map/#0
user/map/key
user/map/#1

, user/array/#0 and user/array/#1 represent array elements, while user/map/#0, and user/map/#1 do not, since the key set also contains the key user/map/key. The following Markdown Shell Recorder snippet shows the new behavior of the plugin:

kdb mount config.yaml user yamlcpp
kdb set user/array/#0 one
kdb set user/array/#1 two
kdb set user/map/#0 three
kdb set user/map/key four
kdb set user/map/#1 five
kdb file user | xargs cat
#> array:
#> - one
#> - two
#> map:
#> "#0": three
#> "#1": five
#> key: four

. _(René Schwaiger)_

  • YAML CPP now handles the conversion from and to Elektra’s boolean type properly. _(René Schwaiger)_
  • The plugin converts “sparse” key sets properly. For example, for the key set that contains only the key:

    • user/parent/#1/#2/map/#0 with the value arr

    and uses user/parent as parent key, YAML CPP stores the following YAML data:

- ~
- - ~
- ~
- map:
- arr

. _(René Schwaiger)_

  • YAML CPP now supports mixed data (nested lists & sequences) better. For example, the plugin now correctly converts the YAML data
root:
- element: one
- element: two

to the key set that contains the following keys:

user/tests/yaml/root
user/tests/yaml/root/#0/element
user/tests/yaml/root/#1/element

YAML Smith

  • YAML Smith now converts keys that shares a common prefix correctly. For example, the last command in the script:
kdb mount config.yaml user/tests/yaml yaml
kdb set user/tests/yaml/common/one/#0 value
kdb set user/tests/yaml/common/two/#0 first
kdb set user/tests/yaml/common/two/#1 second
kdb export user/tests/yaml yamlsmith

now prints the following YAML data:

common:
one:
- "value"
two:
- "first"
- "second"

. _(René Schwaiger)_

  • The plugin now converts Elektra’s boolean values (0, 1) back to YAML’s boolean values (true, false). _(René Schwaiger)_

Yan LR

  • The build system now disables the plugin, if you installed a version of ANTLR 4 that does not support ANTLR’s C++ runtime (like ANTLR 4.5.x or earlier). _(René Schwaiger)_
  • We fixed an ambiguity in the YAML grammar. _(René Schwaiger)_
  • The build system now regenerates the modified parsing code, every time we update the grammar file. _(René Schwaiger)_
  • The plugin now reports the location of syntax errors correctly. _(René Schwaiger)_
  • The lexer for the plugin now emits start tokens for maps at the correct location inside the token stream. This update fixes a problem, where the plugin sometimes reported incorrect error messages for the first syntax error in a YAML file. _(René Schwaiger)_
  • The plugin now stores the end position of map start tokens correctly. Before this update the plugin would sometimes not show the markers (^) that point to the error positions inside the input. _(René Schwaiger)_
  • Yan LR now supports Elektra’s boolean data type. _(René Schwaiger)_
  • The plugin now handles YAML key-value pairs that contain no value at the end of a file correctly. _(René Schwaiger)_
  • The plugin now converts YAML key-value pairs with empty value to null/empty keys. _(René Schwaiger)_
  • The plugin converts “empty” YAML files to a key set that contains an empty version of the parent key. _(René Schwaiger)_

YAwn

  • YAwn is now able to print error messages for multiple syntax errors. _(René Schwaiger)_
  • We also improved the error messages of YAwn, which now also contain the input that caused a syntax error. For example, for the input
key: value
- element

the plugin prints an error message that contains the following text:

config.yaml:2:3: Syntax error on input “start of sequence”
- element
^

. _(René Schwaiger)_

  • The plugin now supports Elektra’s boolean data type. _(René Schwaiger)_
  • YAwn handles YAML key-value pairs that contain no value at the end of a file correctly. _(René Schwaiger)_
  • The plugin now converts YAML key-value pairs with empty value to null/empty keys. _(René Schwaiger)_
  • YAwn now stores empty files as a key set containing an empty parent key. _(René Schwaiger)_

YAy PEG

  • YAy PEG now also supports PEGTL 2.8. _(René Schwaiger)_
  • The plugin now includes the input that could not be parsed in error messages. _(René Schwaiger)_
  • We improved the error messages for certain errors slightly. For example, the error message for the input
"double quoted

now includes the following text

1:14: Missing closing double quote or incorrect value inside flow scalar
"double quoted
^

. _(René Schwaiger)_

  • YAy PEG now supports compact mappings:
- key1: value1
key2: value2

and compact sequences:

- - element1
- element2

correctly. _(René Schwaiger)_

  • The plugin now supports Elektra’s boolean data type. _(René Schwaiger)_
  • YAy PEG now converts YAML key-value pairs with empty value to null/empty keys. _(René Schwaiger)_
  • The plugin now translates an empty file to a key set that contains a single empty parent key. _(René Schwaiger)_

Libraries

The text below summarizes updates to the C (and C++)-based libraries of Elektra.

Compatibility

We introduced several incompatible changes:

  • different error codes are returned
  • INI and YAJL plugins might write different files with the same KeySets

We changed following symbols:

  • elektraIsReferenceRedundant
  • elektraResolveReference
  • elektraPluginFindGlobal
  • kdbEnsure

Core

  • kdbGet now calls global postgetstorage plugins with the parent key passed to kdbGet, instead of a random mountpoint. _(Klemens Böswirth)_
  • Fixed a double cleanup error (segmentation fault) when mounting global plugins. _(Mihael Pranjić)_
  • Logging in Elektra was changed with this release. If Elektra is compiled with ENABLE_LOGGER enabled, we now log warnings and errors to stderr and everything except debug messages to syslog. If ENABLE_DEBUG is also enabled, debug messages are logged to syslog as well. Previously you had to make some manual changes to the code, to see most of the logging messages. _(Klemens Böswirth)_
  • The logger does not truncate the file name incorrectly anymore, if __FILE__ contains a relative (instead of an absolute) filepath. _(René Schwaiger)_
  • Disabled any plugin execution when we have a cache hit or no update from backends. The old behavior can be enabled for testing using ENABLE_DEBUG and adding the "debugGlobalPositions" metakey to the parentKey of the kdbGet invocation. _(Mihael Pranjić)_
  • Removed ingroup from error messages to reduce verbosity. _(Michael Zronek)_
  • Fixed minor problem when kdb_long_double_t is not available (e.g. mips32). _(Matthias Schoepfer)_
  • Only add benchmarks if BUILD_TEST is set in CMake. _(Matthias Schoepfer)_
  • We fixed some warnings about implicit conversion to unsigned int reported by UBSan. _(René Schwaiger)_

Ease

  • The functions for reference resolving used in the reference plugin have been extracted into libease. This lets other parts of Elektra easily use references and ensures a consistent syntax for them. _(Klemens Böswirth)_

Bindings

Bindings allow you to utilize Elektra using various programming languages. This section keeps you up-to-date with the multi-language support provided by Elektra.

  • JNA is now not experimental anymore. _(Markus Raab)_
  • gsettings is not default anymore when installed. _(Markus Raab)_
  • Add fix for creating the Key and KeySet objects in the HelloElektra.java file. _(Dmytro Moiseiuk)_
  • We fixed a warning about a deprecated default constructor in the C++ binding reported by GCC 9.0. _(René Schwaiger)_

Tools

  • kdb get -v now displays if the resulting value is a default-value defined by the metadata of the key. _(Thomas Bretterbauer)_
  • kdb cp now succeeds if the target-keys already have the same values as the source-keys. _(Thomas Bretterbauer)_
  • web-ui does not show empty namespace anymore _(Josef Wechselauer)_
  • kdb import does not fail anymore if executed more than once with the same target in the spec-namespace. _(Thomas Bretterbauer)_
  • kdb mount avoid adding sync if sync is already provided. _(Markus Raab)_
  • kdb list-tools now supports KDB_EXEC_PATH environment variables that contain spaces. _(René Schwaiger)_
  • gen-gpg-testkey is added to the default tools list (see #2668)._(Peter Nirschl)_
  • kdb getenv now executed correctly from within tests _(Markus Raab)_
  • kdb-bash-completion now works on Mac (see #2836). _(Eduardo Santana)_
  • kdb rm supports --without-elektra and returns 11 on key not found. _(Markus Raab)_

Code generation

kdb gen is now no longer an external tool implemented via python, but rather a first class command of the kdb tool. For now it only supports code generation for use with the highlevel API. Try it by running kdb gen elektra <parentKey> <outputName>, where <parentKey> is the parent key of the specification to use and <outputName> is some prefix for the output files. If you don't have your specification mounted, use kdb gen -F <plugin>:<file> elektra <parentKey> <outputName> to load it from <file> using plugin <plugin>.

. _(Klemens Böswirth)_

Scripts

  • The reformat-shfmt script now also formats tests/shell/include_common.sh.in. Additionally it ensures that the file is 1000 lines long, so that line numbers of files using it are easier to read. _(Klemens Böswirth)_
  • The clang-format wrapper script now also checks the supported maximum version of Clang-Format. _(René Schwaiger)_
  • The script reformat-shfmt now also reformats shell support files (*.in) in the scripts folder. _(René Schwaiger)_
  • The reformat-* scripts now allow you to specify a list of files that should be formatted. Only files actual suitable for the reformat script, will reformat. So e.g. calling reformat-cmake src/include/kdbprivate.h doesn't change any files. _(Klemens Böswirth)_
  • The script scripts/dev/reformat-all is a new convenience script that calls all other reformat-* scripts. _(Klemens Böswirth)_
  • The script scripts/pre-commit-check-formatting can be used as a pre-commit hook, to ensure files are formatted before committing. _(Klemens Böswirth)_
  • The link checker now prints broken links to the standard error output. _(René Schwaiger)_
  • We added a script, called benchmark-yaml that compares the run-time of the YAML plugins:

    for a certain input file with hyperfine. _(René Schwaiger)_

  • Added kdb reset and kdb reset-elektra, fixed kdb stash. _(Markus Raab)_

Benchmarks

  • The benchmarking tool benchmark_plugingetset now also supports only executing the get method for the specified plugin. For example, to convert the data stored in the file benchmarks/data/yaypeg.test.in with the YAy PEG plugin to a key set you can now use the following command:
benchmark_plugingetset benchmarks/data user yaypeg get

. _(René Schwaiger)_

Documentation

Style

Tutorials

  • We added a basic tutorial that tells you how to write a (well behaved) storage plugin. _(René Schwaiger)_
  • Improved the checkconf section in the plugin tutorial. _(Peter Nirschl)_
  • We added a tutorial on how to benchmark the execution time of plugins using `benchmark_plugingetset` and hyperfine. _(René Schwaiger)_
  • The new profiling tutorial describes how to determine the execution time of code using

    . _(René Schwaiger)_

  • For beginners we added a tutorial that guides them through the process of contributing to libelektra. _(Thomas Bretterbauer)_
  • Added a section on elektraPluginGetGlobalKeySet in the plugin tutorial. _(Vid Leskovar)_
  • Added a step-by-step tutorial for beginners to run all tests with Docker. _(Oleksandr Shabelnyk)_
  • Extend/improve Java bindings related documentation in tutorial and readme. _(Oleksandr Shabelnyk)_
  • Added a step-by-step tutorial for running reformatting scripts with Docker. _(Oleksandr Shabelnyk)_
  • Covered Resolving Missing *.so Library Error in tutorial. _(Oleksandr Shabelnyk)_
  • Added a basic tutorial on How-To: Write a Java Plugin _(Dmytro Moiseiuk)_ and _(Miruna Orsa)_

Spelling Fixes

  • Write Elektra with capital letter in cascading tutorial. _(Vlad - Ioan Balan)_
  • Add typo fix to the hello-elektra tutorial. _(Dmytro Moiseiuk)_
  • Add typo fix to the Java kdb tutorial. _(Dominik Hofmann)_
  • Fixed capitalization of the initial letter in Readme. _(Miruna Orsa)_
  • Improved readability in README. _(Philipp Gackstatter)_
  • We fixed some spelling mistakes in the documentation. _(René Schwaiger)_
  • Fix typo in root README.md and 'built-in' => 'built-in' in several places _(Raphael Gruber)_
  • Fixed typos in cassandra.ini _(arampaa)_

Other

filename:line:0

instead of

filename|line col 0|

to show the location data for broken links. This is also the same style that Clang and GCC use when they display location information for compiler errors. This update has the advantage, that certain tools such as TextMate are able to convert the location data, providing additional features, such as clickable links to the error source. _(René Schwaiger)_

  • The Markdown Link Converter uses the index 1 for the first line number instead of 0. This update fixes an off-by-one-error, when the user tries to use the error location data printed by the tool in a text editor. _(René Schwaiger)_
  • We added a badge for LGTM to the main ReadMe file. _(René Schwaiger)_
  • Added LCDproc and Cassandra specification examples. These examples provide a good guideline for writing specifications for configurations. _(Michael Zronek)_
  • Drastically improved the error message format. For more information look here. _(Michael Zronek)_
  • Added a guideline for writing consistent and good error messages. For more information look here. _(Michael Zronek)_
  • Every kdb command now accepts v and d as option to show more information in case of warnings or errors. _(Michael Zronek)_
  • Improved qt-gui error popup to conform with the new error message format. _(Raffael Pancheri)_
  • We fixed the format specifiers in the “Hello, Elektra” example. _(René Schwaiger)_
  • Expanded the Python Tutorial to cover installation under Alpine Linux. _(Philipp Gackstatter)_
  • We wrote a tutorial which is intended to help newcomers contributing to libelektra. _(Thomas Bretterbauer)_
  • We fixed various broken links in the documentation. _(René Schwaiger)_
  • Fix finding of jni.h library. _(Dmytro Moiseiuk)_
  • Added license for asciinema. _(Anastasia @nastiaulian)_
  • We incorporated kdb-introduction into the man page for kdb _(Markus Raab)_

Tests

  • We now test the Directory Value Plugin with additional test data. _(René Schwaiger)_
  • The variables:

    • SPEC_FOLDER
    • SYSTEM_FOLDER
    • USER_FOLDER

    in the inclusion file for shell test were set incorrectly, if the repository path contained space characters. _(René Schwaiger)_

  • The CFramework now also compares the names of meta keys. _(René Schwaiger)_
  • The release notes check does not report an illegal number anymore, if the release notes were not updated at all. _(René Schwaiger)_
  • We added a test for the keyhelper-class which checks if rebasePath calculates the new path for cascading target-keys correctly. _(Thomas Bretterbauer)_
  • Enable MSR for the crypto and fcrypt tutorial (#1981)._(Peter Nirschl)_
  • We fixed the Markdown Shell Recorder test for the command `kdb get`. _(René Schwaiger)_
  • The tests

    • `testscr_check_real_world`,
    • `testscr_check_resolver`, and
    • `testscr_check_spec`

    now also works correctly, if the user and system directory file paths contain space characters. _(René Schwaiger)_

Source Code Checks

  • The formatting instructions printed by check_formatting now also work correctly, if

    • the diff output does not start with the test number added by CTest, and
    • you use a non-POSIX shell such as fish

    . _(René Schwaiger)_

  • We reformatted the CMake source code with cmake-format 0.5.4 and also check the style of CMake code with this new version of the tool. _(René Schwaiger)_
  • We now check the source code of the repository with LGTM. _(René Schwaiger)_
  • We fixed various warnings about

    • missing or duplicated include guards,
    • undefined behavior,
    • incorrect format specifiers,
    • unnecessary statements,
    • short names for global variables, and
    • empty if-statements

    reported by LGTM. _(René Schwaiger)_

Build

CMake

  • We now disable the option INSTALL_SYSTEM_FILES by default. This change makes it possible to install Elektra using Homebrew on Linux without any changes to Elektra’s Linuxbrew formula. _(René Schwaiger)_ Add -DINSTALL_SYSTEM_FILES=ON for previous behavior.
  • The build system now rebuilds the JNA binding with Maven, if you change any of the Java source files of the binding. _(René Schwaiger)_
  • testshell_markdown_tutorial_crypto is not compiled and executed if gen-gpg-testkey is not part of TOOLS. _(Peter Nirschl)_
  • Plugin tests are now only added, if BUILD_TESTING=ON. _(Klemens Böswirth)_
  • The symbol list for the static version is now exported directly from a CMake function. _(Klemens Böswirth)_
  • Building Elektra with enabled `io_glib` binding does not require libuv anymore. _(René Schwaiger)_

Docker

Alpine Linux

  • Our Docker image for Alpine Linux now uses the base image for Alpine Linux 3.9. _(René Schwaiger)_
  • We added PEGTL to the Alpine Docker image. _(René Schwaiger)_

Debian

  • We now use the default JDK on Debian sid, since the package openjdk-8-jdk is not available in the official unstable repositories anymore. _(René Schwaiger)_
  • We added

    to the image for Debian sid. _(René Schwaiger)_

  • We now offer images for the latest stable version of Debian codenamed “buster”. _(René Schwaiger)_

Ubuntu

  • We added a Dockerfile for Ubuntu Disco Dingo. _(René Schwaiger)_

Other Updates

  • The Docker images for

    now include the Python YAML library recommended by cmake-format. _(René Schwaiger)_

Vagrant

  • The Vagrant file for Ubuntu Artful Aardvark now installs the Python YAML library recommended by cmake-format. _(René Schwaiger)_

Infrastructure

Cirrus

  • We added the build job 🔗 Check, which checks the documentation for broken links. _(René Schwaiger)_

Jenkins

  • We disabled the tests:

    • testmod_crypto_botan,
    • testmod_crypto_openssl,
    • testmod_dbus,
    • testmod_dbusrecv,
    • testmod_fcrypt,
    • testmod_gpgme, and
    • testmod_zeromqsend

    , since they are known to fail in high load scenarios. _(René Schwaiger)_

  • We added deprecated plugins to the tests. _(Markus Raab)_
  • We increased the automatic timeout for jobs that show no activity from 5 to 10 minutes. _(René Schwaiger)_
  • We improved the exclusion patterns for the Coveralls coverage analysis. _(René Schwaiger)_
  • We now again build the API documentation of master and we now also build the API documentation of PRs. _(Markus Raab)_
  • We added buster build jobs. _(Markus Raab)_

Restyled

  • We added a configuration file for Restyled. Currently Restyled monitors changes to Shell code in pull requests and fixes code that does not fit the coding guideline, by adding additional formatting commit to PRs. _(René Schwaiger)_

Travis

  • We removed the build job for the Haskell binding and Haskell plugin. For more information, please take a look here. _(Klemens Böswirth)_
  • We always use GCC 9 for the build job 🍏 GCC. This update makes sure that the build job succeeds, even if Homebrew adds a new major version of the compiler. _(René Schwaiger)_
  • We simplified our Travis configuration file, removing various unnecessary and unused code. In this process we also got rid of the caching directives, we previously used to speed up the Haskell build job 🍏 Haskell. _(René Schwaiger)_

Website

The website is generated from the repository, so all information about plugins, bindings and tools are always up-to-date. Furthermore, we changed:

  • Our entry for Elektra has been approved in the Free Software Directory: https://directory.fsf.org/wiki/Elektra
  • Added GitHub build status badges to website _(hesirui)_
  • We updated part of a test for the snippet converter. _(René Schwaiger)_
  • Fixed anchor links on the website _(hesirui)_
  • Added Docsearch in top-bar of website _(hesirui)_

Outlook

We are currently working on following topics:

  • Go bindings and improved Web-UI _(Raphael Gruber)_
  • semantic 3-way merging _(Dominic Jaeger)_
  • improved error handling _(Michael Zronek)_
  • Rust bindings _(Philipp Gackstatter)_
  • elektrify LCDproc _(Klemens Böswirth)_ and _(Jakob Fischer)_
  • configuration upgrades _(Lukas Kilian)_
  • default storage _(René Schwaiger)_ and _(Jakob Fischer)_
  • shell completion _(Ulrike Schäfer)_
  • improved developer experience _(Hani Torabi)_
  • Ansible bindings _(Thomas Waser)_
  • misconfiguration tracker _(Vanessa Kos)_
  • plugin interface improvements _(Vid Leskovar)_

Statistics

About 40 authors changed 1278 files with 49409 insertions(+) and 13883 deletions(-) in 2025 commits.

We closed 114 issues for this release.

Join the Initiative!

We welcome new contributors! Read here about how to get started.

As first step, you could give us feedback about these release notes. Contact us via our issue tracker.

Get the Release!

You can download the release from here or GitHub

The hashsums are:

  • name: /home/markus/elektra-0.9.0.tar.gz
  • size: 7390149
  • md5sum: 5cf9935515aba0567d6014a3693e415a
  • sha1: 05ebe99c87b89a7cac58bf45cd3aff200cc1fd8d
  • sha256: fcdbd1a148af91e2933d9a797def17d386a17006f629d5146020fe3b1b51ddd8

The release tarball is also available signed by Markus Raab using GnuPG from here or on GitHub

Already built API documentation can be found here or on GitHub.

Stay tuned!

Subscribe to the RSS feed to always get the release notifications.

If you also want to participate, or for any questions and comments please contact us via our issue tracker on GitHub.

Permalink to this NEWS entry

For more information, see https://libelektra.org

Best regards, Elektra Initiative