ElektraInitiative/libelektra: 0.9.5 Release
Authors/Creators
- markus2330
- René Schwaiger
- Mihael Pranjić
- kodebach
- tom-wa
- Peter Nirschl1
- e1528532
- Daniel Bugl2
- Namoshek
- winlu
- Philipp
- ZronekM
- Felix Berlakovich
- waht
- bauhaus93
- Manuel Mausz
- Dominic Jäger
- Robert Sowula
- Ian Donnelly
- 0003088
- Dominik Hofer
- Raphael Gruber
- Bernhard Denner
- e01306821
- Gabriel Rauter
- Restyled Commits
- Pino Toscano
- alexsaber
- Marcel H
- Stefan Hanreich
- 1. GTW Management Consulting GmbH
- 2. @TouchLay
Description
- guid: 8a56a045-3d2e-427d-84bb-8256635159d2
- author: Mihael Pranjic
- pubDate: Mon, 12 Apr 2021 08:43:05 +0200
- shortDesc: Java Binding Improvements, Breaking Change to
kdbOpen
We are proud to release Elektra 0.9.5.
What is Elektra?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
You can try out the latest Elektra release using our docker image elektra/elektra.
This is the quickest way to get started with Elektra without compiling and other obstacles, simply run
docker run -it elektra/elektra.
- Breaking change to
kdbOpen. see below - Ongoing improvements of Java bindings and publishing of bindings to maven central for easy dependency integrations in Java projects
<a id="hl-1"></a>
kdbOpen Contracts
The signature of kdbOpen has been changed from
KDB * kdbOpen (Key * errorKey);
to
KDB * kdbOpen(const KeySet * contract, Key *parentKey);
You can use kdbOpen (NULL, errorKey) to get the same behaviour as before.
The new parameter contract is similar to what could be done via kdbEnsure (which has been removed).
Currently, the contract allows you to mount global plugins and add data into the global KeySet (passed to all plugins)
during kdbOpen. This alone is already quite powerful, but we might more functionality in future releases.
For now, there are three use cases for the contract parameter. All of them are covered by helper functions:
int elektraGOptsContract (KeySet * contract, int argc, const char * const * argv, const char * const * envp, const Key * parentKey, KeySet * goptsConfig);
int elektraIoContract (KeySet * contract, ElektraIoInterface * ioBinding);
int elektraNotificationContract (KeySet * contract);
With elektraGOptsContract you can mount and set up the gopts plugin used for command-line argument parsing.
The other two functions are the new way to configure Elektra's notification feature.
For more information take a look at doc/dev/kdb-contracts.md
PluginsThe following section lists news about the plugins we updated in this release.
Cache- The
cacheplugin now only caches the parts of the global keyset that are belowsystem:/elektra/cacheor belowsystem:/elektra/cached. The part belowsystem:/elektra/cacheis meant for internal data of thecache, so you should put data belowsystem:/elektra/cached, if you want it to be cached. (Klemens Böswirth)
- Fix use of
kdb_long_double_ton armel platforms (#3450). (Mihael Pranjić)
- Internal changes to ensure compatibility with the new
elektraNotificationContract. (Klemens Böswirth)
- Removed plugins
yamlsmithandyanlr. (René Schwaiger)
- Internal changes to ensure compatibility with the new
elektraNotificationContract. (Klemens Böswirth)
The text below summarizes updates to the C (and C++)-based libraries of Elektra.
CompatibilitykeyCopyandkeyDupnow take an additional flag. See below.kdbEnsurewas removed and integrated intokdbOpen, which now takes an additionalKeySet * contractparameter. See above
<a id="key-copy"></a>
- The
keyCopyandkeyDupfunctions have been changed. They now take aflagsargument which specifies which parts of theKeyshould be copied. The API also changed slightly. Most importantlyNULLvalues are handled differently. For example,keyDup (NULL, KEY_CP_ALL)returns a key similar to whatkeyNew ("/", KEY_END)produces, whereas previouslykeyDup (NULL)returnedNULl. (Klemens Böswirth) - We added
keyReplacePrefix, a function that allows you to easily move a key from one parent to another. (Klemens Böswirth) kdbEnsurewas removed and replaced by similar functionality added tokdbOpen. see above (Klemens Böswirth)KEY_ENDis now defined as(void *) 0instead of0. This allows us to markkeyNewwith the GCC attribute__attribute__ ((sentinel)), which causes a compiler warning, ifkeyNewcalls don't useKEY_ENDas their last argument. (Klemens Böswirth)
elektraSetIoBindinghas been removed. UseelektraIoContractinstead. (Klemens Böswirth)
elektraNotificationOpenhas been removed. UseelektraNotificationContractinstead.elektraNotificationClosehas also been removed. There is no replacement, cleanup now happens automatially duringkdbClose. (Klemens Böswirth)- The contract for transport plugins has been changed. The exported functions
"openNotification","closeNotification" and"setIoBinding"are no longer used. Instead, plugins should retrieve the I/O binding from the keysystem:/elektra/io/bindingin the global keyset. The notification callback and context that were passed to"openNotification", can now be read from the global keyset as well. The keys aresystem:/elektra/notification/callbackandsystem:/elektra/notification/context` respectively. (Klemens Böswirth)
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.
JNASince internal iterator support for
KeySetis due to being dropped, the following methods have been removed:Elektra::ksNextElektra::ksCurrentElektra::ksGetCursorElektra::ksSetCursorKeySet::nextKeySet::currentKeySet::rewindKeySet::getCursorKeySet::setCursor
Until internal
KeySetiterator support has been dropped form native library,Elektra::ksRewindis being retained while also being annotated as 'deprecated for removal'. The reason is, that we still need to rewind aKeySetbefore passing it to a native plugin viaNativePlugin::set,NativePlugin::getorNativePlugin::error. (Michael Tucek)Furthermore
Elektra::ksPopandKeySet::pophave been removed andKeySet::removehas been introduced as replacment. Until internalKeySetiterator support has been dropped form native library,Elektra::ksRewindis being retained while also being annotated as 'depricated for removal'. The reason is, that we still need to rewind aKeySetbefore passing it to a native plugin viaNativePlugin::set,NativePlugin::getorNativePlugin::error. (Michael Tucek)Further more
Elektra::ksPopandKeySet::pophave been removed andKeySet::removehas been introduced as replacment. (Michael Tucek)Renamed
KeyExceptionspecializations:KeyInvalidNameException,KeyTypeConversionException,KeyTypeMismatchExceptionMigration from Maven to Gradle (Michael Tucek)
Updated documentation for usage of published artifacts (Michael Tucek)
Integration of Maven Central publishing on Elektra release (Robert Sowula)
Ongoing work on bringing the JNA binding up to scratch and improving developer experience. Both for JNA binding API consumers, as well as future JNA binding contrubutors. (Michael Tucek)
Python & LuaAdd support for keyset.remove(key). (Manuel Mausz)
Toolswebd: updateini,y18nandellipticdependencies. (Mihael Pranjić)- Make search for providers not skip rest of plugins on exceptions. (Markus Raab)
- Fix enums in examples/spec. (Markus Raab)
- Document names of different components. (Markus Raab)
- Update buildserver documentation (Robert Sowula)
- Reworked METADATA.ini (Markus Raab)
- Minor rewording in INSTALL.md (@a-kraschitzer)
- Write notes that
\\are due to shell recorder, and are not to be copied (Markus Raab) - Add link to Go bindings (Markus Raab)
- Fix order of tutorials (Markus Raab)
- Added API-Reviews for multiple functions in the public API (Stefan Hanreich)
- Minor rewording in java-kdb.md (@aaronabebe)
- Added a short Visual Studio 2019 tutorial (/doc/tutorials/contributing-windows.md) (Dominic Jäger)
- Added hint regarding WSL filesystem configuration (/doc/tutorials/contributing-windows.md) (@tucek)
- Fixed broken link in yanlr-plugin readme (@lawli3t)
- Minor readability improvement in highlevel.md (Tobias Schubert @qwepoizt)
- Fix examples of spec plugin. (Robert Sowula)
- Added small test for jna Return plugin (
Return.java),KeyNameIterator.java(@aaronabebe)
- Change shlibs version compatibility policy of Debian packages to ">=". (Robert Sowula)
- Automate publishing of the release Elektra Docker images. (Robert Sowula)
- Fix issue where the library runpaths of the jni plugin could not be resolved. (Robert Sowula)
- Update Alpine Linux images to version 3.13.1 and update Elektra release image. (Mihael Pranjić)
- Update FreeBSD images from version 12.1 to 12.2 (Robert Sowula)
- Update brew before installing packages and print brew config. (Mihael Pranjić)
- Restart
dbusservice before running tests and findDBUS_LAUNCHD_SESSION_BUS_SOCKETmanually (as workaround). (Mihael Pranjić) - Use macOS Big Sur images. (Mihael Pranjić)
- Fix issues with
dbusand java paths, excludejni. (Mihael Pranjić)
- Update daily job to always keep the latest Docker images containing installed Elektra packages that were build on master or during release. (Robert Sowula)
- Add a cleanup of the aptly database to the daily job. (Robert Sowula)
The website is generated from the repository, so all information about plugins, bindings and tools are always up to date. Furthermore, we changed:
- It is now possible to have two links on the same line of a markdown file rendered on the website. (Klemens Böswirth)
- The file doc/KEYNAMES.md is now rendered on the website. (Klemens Böswirth)
- Update
inidependency. (Dependa Bot) - Update many dependencies (Node 14.x LTS, angular, bootstrap, ..) and fix broken RSS feed permalinks. (Mihael Pranjić)
We are currently working on following topics:
- Elektrify KDE (Dardan Haxhimustafa), (Felix Resch) and (Mihael Pranjić)
- 1.0 API (Stefan Hanreich) and (Klemens Böswirth)
- Improve Java Development Experience (Michael Tucek)
- Elektrify GNOME (Mihael Pranjić)
- Continious Releases (Robert Sowula)
- KDB access using FUSE (Alexander Firbas)
- Default TOML plugin (Jakob Fischer)
- Improve Plugin Framework (Vid Leskovar)
- Improve 3-way merge (Dominic Jäger)
- Shell completion (Ulrike Schäfer)
- Ansible bindings (Thomas Waser)
We closed 20 issues for this release.
About 19 authors changed 515 files with 19081 insertions(+) and 10602 deletions(-) in 375 commits.
Thanks to all authors for making this release possible!
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/mpranj/workspace/ftp/releases/elektra-0.9.5.tar.gz
- size: 7636892
- md5sum: 2245727ed0042645d98de34a1872fbb4
- sha1: c0181bbee212a46b5a9eda3180ff7673f657d6ed
- sha256: 0b6ee9d6bf13c3749f4d014df444606f84a2f5a797a541002f8d4e745007c3a5
The release tarball is also available signed using GnuPG from here or on GitHub
The following GPG Key was used to sign this release: 12CC44541E1B8AD9B66AFAD55262E7353324914A
Already built API-Docu 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.
For more information, see https://libelektra.org
Best regards, Elektra Initiative
Files
ElektraInitiative/libelektra-0.9.5.zip
Files
(9.1 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:6528c0b30f2923ed0600c5723281a4dd
|
9.1 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/ElektraInitiative/libelektra/tree/0.9.5 (URL)