- guid: 8c64fe8a-87a5-4b72-b772-d98c8a4a5efd
- author: Mihael Pranjić
- pubDate: Tue, 26 Nov 2019 14:55:19 +0100
- shortDesc:
We are proud to release Elektra 0.9.1.
Elektra serves as a universal and secure framework to access configuration settings in a global, hierarchical key database. For more information, visit https://libelektra.org.
You can also read the news on our website
While the new kdb gen
was already included in the last release, it is now fully functional and ready for productive use. To get started take a look at the new man-page for kdb-gen(1)
.
If you specifically want to use it with the High-Level API take a look at this tutorial.
We also created a new CMake function that will be available, if you include Elektra via CMake's find_package
. The function is called elektra_kdb_gen
and can be used to tell CMake about files that are generated via kdb gen
. _(Klemens Böswirth)_
The following section lists news about the modules we updated in this release.
- We removed 12 obsolete or unfinished plugins:
boolean
,
cachefilter
,
cpptype
,
dini
,
enum
,
regexstore
,
required
,
haskell
,
simplespeclang
,
regexdispatcher
,
typechecker
,
struct
. _(Markus Raab, René Schwaiger)_
- We unified the name of the config check function of the plugins to
nameOfPluginCheckConf
. Before this update some plugins used the name nameOfPluginCheckConfig
instead. _(René Schwaiger)_
- We improved the error messages in
crypto
, fcrypt
, and gpgme
plugins. _(Peter Nirschl)_
- Handle return codes (error codes) of
execv
in the GPG module. _(Peter Nirschl)_
- Improved the documentation of
ksAppendKey
regarding ownership of keys. _(Raphael Gruber)_
We removed the experimental plugin. For a plugin that is able to parse similar syntax, please take a look at the
plugins. _(René Schwaiger)_
- The error message, if non of the gopts variants can be compiled, was improved. _(Klemens Böswirth)_
- A better error, if the plugin fails to load
argv
from the system, was added. _(Klemens Böswirth)_
- A function to detect help mode, without invoking
elektraGetOpts
was added. It simply checks, whether --help
is one of the string in argv
. _(Klemens Böswirth)_
- Increase test timeout from 120s to 240s. _(Mihael Pranjić)_
- We added a plugin which can be used to parse kconfig ini files into a keyset and save keysets to such files. _(Dardan Haxhimustafa)_
- We now store the OPMPHM inside of the mmap format. _(Mihael Pranjić)_
- The storage format was changed and many sanity checks were improved or added. _(Mihael Pranjić)_
- Enforce consistency by writing the magic file footer last. _(Mihael Pranjić)_
- Filter empty meta KeySets to save space. _(Mihael Pranjić)_
- The plugin now correctly sets the path in the
parentKey
. It therefore now supports set calls. _(Klemens Böswirth)_
- There is now the config key
missing/log
that allows logging of all missing require
d keys. _(Klemens Böswirth)_
spec
now internally handles errors differently. There should be no external impact apart from better performance. _(Klemens Böswirth)_
- We now treat relative paths as relative to
KDB_DB_SPEC
instead of the current working directory. _(Klemens Böswirth)_
- Changes to
default
or type
metadata are no longer supported, since they are not safe in every case. _(Klemens Böswirth)_
- The plugin no longer has the
experimental
status. _(Klemens Böswirth)_
- We made sure that building the plugin works, if you use the latest version of CMake (
3.15.3
) and Boost (1.71
). _(René Schwaiger)_
- We added an option to disable the restoring of boolean values. This useful for storage formats like YAML that have native boolean types. _(Klemens Böswirth)_
- Yajl now correctly supports Elektras boolean types using the
type
plugin. For example, setting on
, enable
or true
all map to JSONs native true
value. See the type plugin for more details about boolean types. _(Philipp Gackstatter)_
- We removed the plugin in favor of Yan LR. _(René Schwaiger)_
- We removed the plugin in favor of Yan LR. _(René Schwaiger)_
The text below summarizes updates to the C (and C++)-based libraries of Elektra.
We introduced several incompatible changes:
- The library
libelektra
, which is a collection of different elektra libraries, is now removed. Users of CMake or pkg-config should not be affected. Otherwise change -lelektra
to -lelektra-core -lelektra-kdb
or whatever parts of Elektra your application uses. _(Markus Raab)_
- The conversion functions
elektraKeyTo*
and elektra*ToString
are now part of the elektra-ease
library instead of the elektra-highlevel
library. This should not cause any breaking changes since elektra-highlevel
already depends on elektra-ease
. In addition the header elektra/conversion.h
is kept for compatibility. _(Klemens Böswirth)_
- Fixes in documentation that might disallow some code operating in grey areas before. _(Markus Raab)_
- We removed
keyRel
and keyRel2
since it can be easily replaced by other existing functions. _(Philipp Gackstatter)_
We changed the following symbols:
- ELEKTRA_PLUGIN_COMMIT
- elektraKeyToString
- elektraKeyToBoolean
- elektraKeyToChar
- elektraKeyToOctet
- elektraKeyToShort
- elektraKeyToUnsignedShort
- elektraKeyToLong
- elektraKeyToUnsignedLong
- elektraKeyToLongLong
- elektraKeyToUnsignedLongLong
- elektraKeyToFloat
- elektraKeyToDouble
- elektraKeyToLongDouble
- elektraBooleanToString
- elektraCharToString
- elektraOctetToString
- elektraShortToString
- elektraUnsignedShortToString
- elektraLongToString
- elektraUnsignedLongToString
- elektraLongLongToString
- elektraUnsignedLongLongToString
- elektraFloatToString
- elektraDoubleToString
- elektraLongDoubleToString
- kdb_octet_t
- kdb_boolean_t
- kdb_short_t
- kdb_long_t
- kdb_long_long_t
- kdb_unsigned_short_t
- kdb_unsigned_long_t
- kdb_unsigned_long_long_t
- kdb_char_t
- kdb_float_t
- kdb_double_t
- kdb_long_double_t
- A new plugin function,
kdbCommit
, was implemented. The function is carried out in the commit
phase of kdbSet
and separates the commit functionality from the kdbSet()
function. _(Vid Leskovar)_
kdbconfig.h
is no longer included in the installed headers. This is because it could cause conflicts with other config.h
-type headers from applications. _(Klemens Böswirth)_
ksAppendKey
: state that it only fail on memory problems. _(Markus Raab)_
- Fix memory leak in
kdbGet
. _(Markus Raab)_
- Implemented
kdberrors.h
directly without generation of the specification
file because of drastically reduced error code count _(Michael Zronek)_
keyIsDirectBelow
was renamed to keyIsDirectlyBelow
. _(Philipp Gackstatter)_
keyMeta
was added to provide access to a key's underlying KeySet that holds its metadata keys. _(Philipp Gackstatter)_
- Removed the obsolete
ksLookupByString
and ksLookupByBinary
, as well as deprecated KDB_O_*
options. _(Philipp Gackstatter)_
- Added
keyLock
and keyIsLocked
. _(Manuel Mausz)_
- Removed
keyVInit
. _(Manuel Mausz)_
- The option
-h
is no longer used to indicate help mode. Only --help
, will invoke help mode. _(Klemens Böswirth)_
- Removed or moved several functions of
kdbproposal.h
:
elektraKsToMemArray
was moved to kdbease.h
,
elektraLookupOptions
was moved to kdbprivate.h
,
keySetStringF
was moved to kdbinternal.h
,
- Removed
ksPrev
and elektraKsPrev
,
- Removed
elektraRenameKeys
and replaced it with ksRenameKeys
. _(Philipp Gackstatter)_
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.
- Warnings about cmake policies are avoided. _(Markus Raab)_
- We removed the Haskell and GI bindings. _(Markus Raab)_
- Avoid unnecessary copying std::string where possible (setString and setMeta only). _(Manuel Mausz)_
- CPP: add
Key::is{Name,Value,Meta}Locked
. _(Manuel Mausz)_
- GLIB: removed
gelektra_keyset_resize
. _(Manuel Mausz)_
- GLIB: removed
gelektra_keyset_rewind
, gelektra_keyset_next
, gelektra_keyset_current
, gelektra_keyset_getcursor
, gelektra_keyset_setcursor
. _(Manuel Mausz)_
- GLIB: renamed
gelektra_keyset_atcursor
to gelektra_keyset_at
. _(Manuel Mausz)_
- gsettings: adapt iterator. _(Manuel Mausz)_
- SWIG: Add
KeyNotFoundException
exception. _(Manuel Mausz)_
- SWIG: Fix KeySet equality operators. _(Manuel Mausz)_
- SWIG/Python:
hash(key)
will throw unless the key name is locked. _(Manuel Mausz)_
- SWIG/Python: Add operator overloadings for
len(Key)
, repr(Key)
, str(KeySet)
, repr(KeySet)
. _(Manuel Mausz)_
- SWIG/Python: Add alternative Key constructor
Key(name, value, [dict])
. _(Manuel Mausz)_
- SWIG/Python: Add
KeySet.extend([key1, key2,...])
and KeySet.append(key1, key2, ...)
. _(Manuel Mausz)_
- SWIG/Python: Add
KeySet.append(key_name, key_value, key_opts)
which directly creates and appends a key. _(Manuel Mausz)_
- SWIG/Python: Add
KeySet.unpack_names()
, KeySet.unpack_basenames()
, KeySet.filter(func)
, KeySet.filter_below(where)
, Key.array_elements()
. _(Manuel Mausz)_
- Upgraded maven dependencies for Java binding _(Michael Zronek)_
- Completely overhauled the Java binding to be able to use Elektra plugins directly. A new PluginLoader can load Elektra plugins or a native implemented Java plugin. All Plugins now implement the new Plugin interface. For an example see the test case. _(Michael Zronek)_
- The java binding now supports the error codes in a native way. All exceptions contain the necessary information. _(Michael Zronek)_
- Further improved the java binding such as wording and documentation. _(Michael Zronek)_
- Add the
elektra-sys
crate which contains raw bindings to libelektra for Rust. _(Philipp Gackstatter)_
- Add the
elektra
crate which contains safe wrapper methods for the raw bindings. The crate contains bindings for the low-level API, which means that the data types Key
and KeySet
can now safely be used from Rust. The Rust version of the API has been designed to take advantage of Rust's type system and to be in accordance with the memory safety of Rust. For instance, the Key has been divided into StringKey
and BinaryKey
, to prevent type mismatches at compile time. With the binding for KDB
, one can take advantage of the elektra ecosystem from Rust. See the Readme for more. _(Philipp Gackstatter)_
- The elektra and elektra-sys crates have been published to crates.io for easier usage. _(Philipp Gackstatter)_
- Rewrote the
KDBError
to follow the specification fully and in particular allow catching out of memory errors by catching resource errors. _(Philipp Gackstatter)_
- Added a
keyset!
macro to easily create a keyset with many keys in a single invocation. _(Philipp Gackstatter)_
KDB_EXEC_PATH
, which can be used to add further external tools to kdb
, now supports :
to separate paths. kdb list-tools
and run_env
were improved to take advantage of this. _(Markus Raab)_
- Checks for
kdbCommit
have been added to kdb plugin-check. _(Vid Leskovar)_
- add PID file config setting for kdb-run-rest-frontend _(Markus Raab)_
- Added
kdb meta-show
command which prints out all metadata along with its values for a given key. _(Michael Zronek)_
- Removed
kdb vset
as it does not properly put meta-data to the spec namespace. _(Michael Zronek)_
- Renamed kdb plugin commands following a hierarchical structure.
kdb info
is now kdb plugin-info
, kdb check
is now kdb plugin-check
and kdb list
is now kdb plugin-list
. We also removed the obsolete kdb fstab
. _(Philipp Gackstatter)_
- Renamed kdb meta commands:
kdb getmeta
is now kdb meta-get
kdb lsmeta
is now kdb meta-ls
kdb showmeta
is now kdb meta-show
kdb rmmeta
is now kdb meta-rm
kdb setmeta
is now kdb meta-set
_(Philipp Gackstatter)_
- Fix test tool
gen-gpg-testkey
by giving a narrower GPG key description. Fixes mismatches with existing GPG keys that contain "elektra.org" as e-mail address. _(Peter Nirschl)_
kdb list-commands
and kdb plugins-list
now sort their output in an alphabetical order _(Anton Hößl)_
kdb plugin-list
does now mention in the helptext that with option -v
the output is sorted by the plugin status _(Anton Hößl)_
kdb import
, kdb export
and kdb editor
now search the plugin database for suitig plugins so it's now possible to run kdb export /hello json
instead of having to specify the plugin for the desired format directly. _(Anton Hößl)_
get
and mount
: Remove dependency on kdbprivate.h
_(Philipp Gackstatter)_
- We structured the scripts. _(Markus Raab)_
- Removed the scripts
scripts/elektra-merge
,
scripts/elektra-mount
,
scripts/elektra-umount
,
convert-fstab
,
convert-hosts
,
convert-inittab
,
convert-users
,
scripts/benchmark_libsplit.sh
,
scripts/zsh
and
example-xorg
. _(Markus Raab)_
- The script run_icheck now also work correctly, if the last entry of `icheck.suppression` does not end with a newline character. _(René Schwaiger)_
- Renamed
scripts/run_dev_env
to scripts/dev/run_env
. _(Markus Raab)_
- The script `draw-all-plugins` now also works properly, if the repository path contains space characters. _(René Schwaiger)_
- The script `link-checker` now deduplicates the list of links before checking them. The timeout and amount of retries was also reduced. Lastly the script now supports a whitelist. Any link stored in `tests/linkchecker.whitelist` will not be checked. _(Klemens Böswirth)_
- We removed a script used to compare the runtime performance of YAML plugins. _(René Schwaiger)_
- Cleanup: separation of dev, admin and completion scripts. _(Markus Raab, Rene Schwaiger)_
- Pre-commit hook
pre-commit-check-formatting
now lives in `scripts/dev/pre-commit-check-formatting`. _(Klemens Böswirth)_
- The new script reformat-javascript formats the JavaScript code of the repository using the tool
prettier
. _(René Schwaiger)_
- We renamed
- the script
reformat-source
to reformat-c
, and
- the script
reformat-shfmt
to reformat-shell
. _(René Schwaiger)_
- The script cmake-format now requires
cmake-format
0.6. _(René Schwaiger)_
- The new script reformat-java formats the Java code in the repository using
clang-format
. _(René Schwaiger)_
- Added decision for array concept of warnings. _(Michael Zronek)_
- We updated our Doxygen configuration file, removing the outdated
PERL_PATH
and MSCGEN_PATH
options. _(René Schwaiger)_
- Added a tutorial on how to write language bindings. Visit our new README. _(Michael Zronek, Raphael Gruber, Philipp Gackstatter)_
- Clarified subtyping in the language bindings tutorial. _(Michael Zronek)_
- A second tutorial on writing bindings for the high-level API was created as well. _(Klemens Böswirth, Raphael Gruber)_
- Added info on how to include xerces plugin with homebrew installation. _(Anton Hößl)_
- We updated links for the INI parsing library Nickel and the documentation for the ini plugin. _(René Schwaiger)_
- We removed links to old and disabled Jenkins build jobs. _(René Schwaiger)_
- The compile instructions do not assume that you use
make
or gcc
to build Elektra anymore. _(René Schwaiger)_
- Add hints about reformatting with docker. _(Dominic Jäger)_
- Reference testing with Docker tutorial in main testing documentation. _(Dominic Jäger)_
- Add instructions about sourcing on FreeBSD. _(Dominic Jäger)_
- Add information on debuggers to main testing documentation. _(Dominic Jäger)_
- Added design decision for error code implementations. _(Michael Zronek)_
- Fixed some typos and links in the documentation and add new iterate example. _(Philipp Gackstatter)_
- Clarified warnings metadata in the error-handling guideline. _(Michael Zronek)_
- We fixed minor spelling mistakes in the documentation. _(René Schwaiger)_
- Corrected buildserver documentation. _(Djordje Bulatovic)_
- Add merge library into kdbset example. _(Dominic Jäger)_
- We updated links for the INI parsing library Nickel. _(René Schwaiger)_
- Added a new Get Started. _(Hani Torabi)_
- Added some informations about contributing to Elektra. _(Hani Torabi)_
- Further imporvement on buildserver documentation. _(Djordje Bulatovic)_
- Further improvement of the buildserver documentation. _(Djordje Bulatovic)_
- We changed how the formatting test detects code differences. This update should get rid of transient errors as reported here. _(René Schwaiger)_
- We disabled the test for the conversion engine. For more information, please take a look at issue #3086. _(René Schwaiger)_
- We disabled the test
testmod_zeromqsend
from the command kdb run_all
, since it caused timeouts in high load scenarios. _(Mihael Pranjić)_
- The (Markdown) Shell Recorder now prints the protocol for a failed test, even if the test modified the database permanently. _(René Schwaiger)_
- We rerun ctest twice to ignore temporary build failures. _(Markus Raab)_
kdbtypes.h
is now generated directly via a CMake configure_file
call. _(Klemens Böswirth)_
- The variable
ELEKTRA_STAT_ST_SIZE_F
now contains the correct format specifier for the st_size
member of the stat
struct on macOS. _(René Schwaiger)_
- We simplified and unified the CMake code for the Shell Tests and the Shell Recorder. _(René Schwaiger)_
- CMake now prints warnings about missing man pages. _(René Schwaiger)_
- The build system does not update a man page in the folder doc/man any more, if ronn only changed the creation date of the man page. _(René Schwaiger)_
- We now have a setup for proper symbol versioning. _(Klemens Böswirth)_
- We do not use implicit typing in the code of the
conditionals
and yamlcpp
plugin any more. After this update, the code compiles without any warnings, even though we now use the compiler switch -Wconversion
. _(René Schwaiger)_
- JNA and JNI are not built concurrently anymore to avoid dependency resolution fails. _(Michael Zronek)_
- Added Dockerfile for Ubuntu Bionic _(Djordje Bulatovic)_
- We removed all Haskell packages from the Dockerfiles in the folder scripts/docker. _(René Schwaiger)_
- We added a basic Dockerfile for Arch Linux. _(René Schwaiger)_
- We updated the Dockerfile for Alpine Linux. _(René Schwaiger)_
- We added a Vagrantfile for a virtual machine based on FreeBSD 12. _(René Schwaiger)_
- The reformatting script now checks that the correct version of
cmake-format
is used. _(Klemens Böswirth, René Schwaiger)_
- Fixed augeas crash if fopen fails. _(Michael Zronek)_
- Fixed no message being shown when trying to mount as non-root user. _(Michael Zronek)_
- Fixed no message being shown when trying to mount as non-root user. _(Michael Zronek)_
- The reformatting scripts now run in parallel. _(Markus Raab)_
- Improved various error messages and synchronized documentations. _(Michael Zronek)_
- Improved
range
plugin error message. _(Michael Zronek)_
- Improved error codes documentation to clarify the hierarchy for developers. _(Michael Zronek)_
- Out of memory error messages are now uniform. _(Michael Zronek)_
- Release notes now use git's union merge driver. _(Dominic Jäger)_
- Updated asciinema recording to correctly use
sudo
. _(Michael Zronek)_
- Please remove me. I'm only here for the build server. _(Dominic Jäger)_
- Fixed outdated docu in plugins.md. _(Michael Zronek)_
- I'm only here for the build server. This PR contains only fix ups. _(Dominic Jäger)_
- Please remove me. I'm only here for the build server. _(Dominic Jäger)_
- Please remove me. I'm only here for the build server. _(Dominic Jäger)_
- Add pkg-config file for kdbmerge. _(Raphael Gruber)_
- The
🔗 Check
build job now merges PRs before checking links. _(Klemens Böswirth)_
- We enabled logging in the build job
🍎 Clang
. This update makes sure that Elektra’s logging code compiles without warnings on macOS. _(René Schwaiger)_
- All macOS build jobs now use Xcode
11.1
instead of Xcode 10.1
. _(René Schwaiger)_
- We removed all non-POSIX shell code from the Cirrus configuration file. _(René Schwaiger)_
- The macOS build jobs now use Ruby
2.6
. _(René Schwaiger)_
- We do not call
ninja
directly anymore. Instead we use cmake --build
. This has the advantage that we do not have to care about the Generator used by CMake. _(René Schwaiger)_
- We added the build job
😈 ASAN
, which builds and executes Elektra on FreeBSD with enabled AddressSanitizer. _(René Schwaiger)_
- We now store common commands in one place at the top of the configuration file. This makes it easier to selectively disable certain build jobs. _(René Schwaiger)_
- The new job
📚 Check
checks
- that the man pages are up to date, and
- that building the PDF version of the Doxygen documentation works. _(René Schwaiger)_
- The new build job
🐧 Fedora
builds and tests Elektra on Fedora Linux. _(René Schwaiger)_
- We upgraded all servers to buster so that debian buster docker image work. _(Markus Raab)_
- We now also build Debian buster packages. _(Markus Raab)_
- Enable WebUI build job again. _(Markus Raab)_
- Improve docu. _(Markus Raab)_
- Jenkins does not auto cancel build jobs of the
master
branch anymore. _(René Schwaiger)_
- Updated xUnit plugin in Jenkinsfile. _(Djordje Bulatovic)_
- The build job
🍏 GCC
now uses the Travis Homebrew addon to install dependencies. _(René Schwaiger)_
- We now build and test Elektra on Ubuntu
18.04
(Bionic Beaver) instead of Ubuntu 16.04
(Xenial Xerus). _(René Schwaiger)_
The website is generated from the repository, so all information about plugins, bindings and tools are always up to date. Furthermore, we changed:
- The website now lives in the folders website-frontend and website-backend to avoid confusion with the REST backend of the Web-UI. _(Markus Raab)_
- Improve mainpage of website, restructure getting started. _(Markus Raab)_
- Renamed the sub menu Getting Started in the menu Documentation to About Elektra and removed the sub-sub-menus Compiling, Installation and Tutorials. These sub-sub-menus are now sub-menus of Documentation. A new sub menu labeled Get Started added to the menu Documentation with some newcomer-friendly informations. Renamed the Getting Started sub menu in Development to Contribute to Elektra. The green button on the main page is routed to the new Get Started page. _(Hani Torabi)_
- Improve main page of website, restructure getting started. _(Markus Raab)_
We are currently working on following topics:
- Merge tool in C99 (the same language as the core of Elektra). This is planned to supersede the existing merge tool. The goal is to reduce the number of merge conflicts in contrast to regular merge tools using the specific semantics of configuration files. _(Dominic Jäger)_
<<scripts/git-release-stats 0.9.VER-1 0.9.1
>>
- Klemens Böswirth: We explore the feasibility of using Elektra in a real-world project. We focused especially on using the high-level API with code-generation. In the thesis, we implemented new versions of LCDproc, one with the low-level API and one with the high-level API. Then we did some benchmarks to compare them. Our results indicate, that Elektra is very much usable in real-world projects. However, we also found that there is still potential for further optimizations.
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.
You can download the release from here or GitHub
The hashsums are:
<<scripts/generate-hashsums elektra-0.9.1.tar.gz
>>
The release tarball is also available signed by Markus Raab using GnuPG from here or on GitHub
Already built API-Docu can be found here or on GitHub.
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