Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lmdbxx for openSUSE:Factory checked in at 2026-10-07 19:33:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lmdbxx (Old) and /work/SRC/openSUSE:Factory/.lmdbxx.new.3698736 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lmdbxx" Wed Oct 7 19:33:02 2026 rev:3 rq:1382890 version:1.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/lmdbxx/lmdbxx.changes 2026-09-28 10:48:46.067772429 +0200 +++ /work/SRC/openSUSE:Factory/.lmdbxx.new.3698736/lmdbxx.changes 2026-10-07 19:33:46.727581180 +0200 @@ -1,0 +2,6 @@ +Wed Oct 7 03:01:42 UTC 2026 - Dead Mozay <[email protected]> + +- Update to version 1.0.3: + * No changelog. + +------------------------------------------------------------------- Old: ---- lmdbxx-1.0.2.tar.gz New: ---- lmdbxx-1.0.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lmdbxx.spec ++++++ --- /var/tmp/diff_new_pack.I4S7CT/_old 2026-10-07 19:33:47.675620772 +0200 +++ /var/tmp/diff_new_pack.I4S7CT/_new 2026-10-07 19:33:47.676620814 +0200 @@ -17,7 +17,7 @@ Name: lmdbxx -Version: 1.0.2 +Version: 1.0.3 Release: 0 Summary: C++ wrapper for the LMDB embedded B+ tree database library License: PDDL-1.0 ++++++ lmdbxx-1.0.2.tar.gz -> lmdbxx-1.0.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lmdbxx-1.0.2/README.md new/lmdbxx-1.0.3/README.md --- old/lmdbxx-1.0.2/README.md 2026-09-21 16:02:55.000000000 +0200 +++ new/lmdbxx-1.0.3/README.md 2026-10-02 14:42:57.000000000 +0200 @@ -99,6 +99,7 @@ library. On Ubuntu Linux 14.04 and newer, these prerequisites can be satisfied by installing the `liblmdb-dev` package. +Both LMDB 1.0 and 0.9 series are supported, although the DB formats are not compatible with each-other. @@ -366,6 +367,8 @@ This C++17 version is a fork of Arto Bendiken's C++11 version with the following changes: +* Supports LMDB 1.0 series as well as 0.9. + * `lmdb::val` has been removed and replaced with `std::string_view`. See the [string::view section](#string_view) for more details. * The templated versions of the `get` and `put` methods have been removed. See the conversion methods described in [string_view Conversions](#string_view-conversions) for an alternative. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lmdbxx-1.0.2/VERSION new/lmdbxx-1.0.3/VERSION --- old/lmdbxx-1.0.2/VERSION 2026-09-21 16:02:55.000000000 +0200 +++ new/lmdbxx-1.0.3/VERSION 2026-10-02 14:42:57.000000000 +0200 @@ -1 +1 @@ -1.0.2 +1.0.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lmdbxx-1.0.2/check.cc new/lmdbxx-1.0.3/check.cc --- old/lmdbxx-1.0.2/check.cc 2026-09-21 16:02:55.000000000 +0200 +++ new/lmdbxx-1.0.3/check.cc 2026-10-02 14:42:57.000000000 +0200 @@ -8,6 +8,12 @@ int main() { + std::cerr << "\n-----------------------------------------------------" << std::endl; + std::cerr << "lmdbxx test suite: https://github.com/hoytech/lmdbxx"<< std::endl; + std::cerr << "LMDB version: " << MDB_VERSION_STRING << std::endl; + std::cerr << "-----------------------------------------------------\n" << std::endl; + + unsigned int envFlags = 0; #ifdef __OpenBSD__ @@ -75,7 +81,16 @@ std::string_view key, val; if (!cursor.get(key, val, MDB_FIRST)) throw std::runtime_error("emptyDb cursor err 1"); - if (key != "mydb") throw std::runtime_error("emptyDb cursor err 2"); + + std::string dbName; + #if MDB_VERSION_MAJOR >= 1 + // As of LMDB 1.0, db names are NUL terminated + dbName = std::string("mydb", 5); + #else + dbName = "mydb"; + #endif + + if (key != dbName) throw std::runtime_error("emptyDb cursor err 2"); if (cursor.get(key, val, MDB_NEXT)) throw std::runtime_error("emptyDb cursor err 3"); @@ -316,7 +331,15 @@ caught = true; } - if (!caught) throw std::runtime_error("bad nested tx 2.1"); + bool expectedException; + #if MDB_VERSION_MAJOR >= 1 + // This is possible in LMDB 1.0, but not prior + expectedException = false; + #else + expectedException = true; + #endif + + if (caught != expectedException) throw std::runtime_error("bad nested tx 2.1"); } txn.commit(); @@ -371,7 +394,7 @@ txn.commit(); } } - catch (const lmdb::error& error) { + catch (const std::exception &error) { std::cerr << "Failed with error: " << error.what() << std::endl; return 1; } @@ -423,5 +446,6 @@ } } + std::cout << "Success." << std::endl; return 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lmdbxx-1.0.2/meson.build new/lmdbxx-1.0.3/meson.build --- old/lmdbxx-1.0.2/meson.build 2026-09-21 16:02:55.000000000 +0200 +++ new/lmdbxx-1.0.3/meson.build 2026-10-02 14:42:57.000000000 +0200 @@ -1,7 +1,7 @@ project( 'lmdbxx', 'cpp', - version : '1.0.2', + version : '1.0.3', license: 'Unlicense', default_options : ['warning_level=3', 'cpp_std=c++17'] )
