summaryrefslogtreecommitdiff
path: root/lib/tdb/wscript
AgeCommit message (Collapse)AuthorFilesLines
2026-01-20tdb: version 1.4.15tdb-1.4.15Björn Jacke1-1/+1
tdb: Fix parse_hex during `tdbtool storehex` Signed-off-by: Bjoern Jacke <bjacke@samba.org> Signed-off-by: Jule Anger <janger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2025-08-07tdb: version 1.4.14tdb-1.4.14Jule Anger1-1/+1
* let tdbtool return error on failure (BUG 15890) Signed-off-by: Jule Anger <janger@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2025-02-06tdb: version 1.4.13tdb-1.4.13Jule Anger1-1/+1
* Add LGPLv3 LICENSE file Signed-off-by: Jule Anger <janger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-08-06tdb: version 1.4.12tdb-1.4.12Stefan Metzmacher1-1/+1
* Regression fix for ABI problem TDB_1_4_11 vs. TDB_1.4.11 BUG: https://bugzilla.samba.org/show_bug.cgi?id=15673 Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Aug 6 16:16:27 UTC 2024 on atb-devel-224
2024-07-29tdb: version 1.4.11tdb-1.4.11Jule Anger1-1/+1
* Add tdbdump -x option to output all data as hex values * Add missing overflow check for num_values in pytdb.c * Remove Py2 related tests * Update times in tdb_transaction_commit per fd, not per name * Fix compilation with TDB_TRACE=1 * Allow tracing of internal tdb Signed-off-by: Jule Anger <janger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-04-16tdb: Add test for tdbdump -xChristof Schmitt1-1/+1
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2024-04-16tdb: Add test for tdbdump commandChristof Schmitt1-1/+2
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2024-01-29tdb: release 1.4.10tdb-1.4.10Jule Anger1-1/+1
- build with Python 3.12 (bug #15513) - documentation fixes - minor build fixes BUG: https://bugzilla.samba.org/show_bug.cgi?id=15513 Signed-off-by: Jule Anger <janger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2023-07-19tdb: release 1.4.9tdb-1.4.9Stefan Metzmacher1-1/+1
* Remove remaining, but broken python2 support * Spelling fixes * python: Safely clear structure members Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2023-01-18tdb: version 1.4.8tdb-1.4.8Stefan Metzmacher1-1/+1
* Support python 3.12 Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jule Anger <janger@samba.org>
2022-06-08tdb: version 1.4.7tdb-1.4.7Stefan Metzmacher1-1/+1
* Fix build problems BUG: https://bugzilla.samba.org/show_bug.cgi?id=15071 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Jun 8 17:57:53 UTC 2022 on sn-devel-184
2022-01-24tdb: version 1.4.6tdb-1.4.6Stefan Metzmacher1-1/+1
* Use atomic operations for tdb_[increment|get]_seqnum Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jule Anger <janger@samba.org>
2021-12-15tdb: Raw performance torture to beat tdb_increment_seqnumVolker Lendecke1-0/+5
Running this on sn-devel-184 takes ~14 seconds with the atomic ops. Without them I did not wait for it to finish. After reducing NPROCS from 500 to 50 it still ran for more than a minute. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Dec 15 01:03:56 UTC 2021 on sn-devel-184
2021-07-20tdb: version 1.4.5tdb-1.4.5Stefan Metzmacher1-1/+1
* fix standalone usage of tdb.h Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 20 11:48:38 UTC 2021 on sn-devel-184
2021-07-14tdb: version 1.4.4tdb-1.4.4Stefan Metzmacher1-1/+1
- Fix a memory leak on error - python: remove all 'from __future__ import print_function' - Fix CID 1471761 String not null terminated - Use hex_byte() in parse_hex() - Use hex_byte() in read_data() - fix studio compiler build - Fix some signed/unsigned comparisons - also use __has_attribute macro to check for attribute support - Fix clang 9 missing-field-initializer warnings - pytdb tests: add test for storev() - pytdb: add python binding for storev() - tdbtorture: Use ARRAY_DEL_ELEMENT() - py3: Remove #define PyInt_FromLong PyLong_FromLong - py3: Remove #define PyInt_AsLong PyLong_AsLong - py3: Remove #define PyInt_Check PyLong_Check - tdb: Align integer types Signed-off-by: Stefan Metzmacher <metze@samba.org>
2019-11-18tdb: Release tdb 1.4.3tdb-1.4.3Uri Simchoni1-1/+1
* Upgrade waf to version 2.0.18 to fix a cross-compilation issue. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13846 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-08-20tdb: Release tdb 1.4.2tdb-1.4.2Stefan Metzmacher1-1/+1
* Build fixes * Improve the performance by inlining the tdb_oob() checks Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Aug 20 14:45:41 UTC 2019 on sn-devel-184
2019-05-17tdb: Release tdb 1.4.1tdb-1.4.1Andrew Bartlett1-1/+1
* Do not propogate any errors from tdb_repack() to to tdb_transaction_commit() The repack may fail due to lock ordering or memory limits, but the original data has been written so the call must succeed. (bug 13952) Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri May 17 08:21:52 UTC 2019 on sn-devel-184
2019-03-21tdb: Release tdb 1.4.0tdb-1.4.0Andrew Bartlett1-1/+1
* Remove Python 2.x support except to build just the bare C library * Remove --extra-python (a build time mode to produce Python2 and Python3 bindings at the same time) * New minor version to allow Samba 4.10 to release a tdb if required from that branch Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2019-03-21build: Standardise on calling conf.SAMBA_CHECK_PYTHON() in librariesAndrew Bartlett1-8/+2
We do this by removing the confusing mandatory option to conf.SAMBA_CHECK_PYTHON{,_HEADERS}(), instead just use the value of --disable-python internally This follows the default minimum of Python 3.4 and keeps things consistent with the main Samba build where --disable-python is required to skip building python bindings. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2019-03-21build: Remove bld.gen_python_environments()Andrew Bartlett1-13/+11
This was part of --extra-python support. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2019-02-26tdb: version 1.3.18tdb-1.3.18Stefan Metzmacher1-1/+1
* Fix build problems with older python versions. * C99 build fixes. * Fix standalone build of tdb. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2019-01-20tdb: Fix compatibility of wscript with older pythonLukas Slebodnik1-1/+1
Traceback (most recent call last): File "tdb-1.3.17/third_party/waf/waflib/Scripting.py", line 158, in waf_entry_point run_commands() File "tdb-1.3.17/third_party/waf/waflib/Scripting.py", line 251, in run_commands ctx = run_command(cmd_name) File "tdb-1.3.17/third_party/waf/waflib/Scripting.py", line 235, in run_command ctx.execute() File "tdb-1.3.17/third_party/waf/waflib/Context.py", line 204, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "tdb-1.3.17/third_party/waf/waflib/Context.py", line 286, in recurse user_function(self) File "tdb-1.3.17/wscript", line 225, in testonly cmd = "BINDIR={} {}".format(blddir, sh_test) ValueError: zero length field name in format Signed-off-by: Lukas Slebodnik <lslebodn@fedoraproject.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Jan 20 03:49:59 CET 2019 on sn-devel-144
2018-11-06tdb: Version 1.3.17 for tdb_traverse_chainVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-11-06tdb: Add test for tdb_traverse_chainVolker Lendecke1-0/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-10-08tdb: Basic test for circular freelist fixVolker Lendecke1-0/+1
Try to store a record for which the (circular) freelist does not have any entry. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-10-08tdb: Basic test for circular hash chain fixVolker Lendecke1-0/+1
This just walks tdb_find by searching for a nonexistent record Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-09-05lib/tdb/wscript: update to handle waf 2.0.4Alexander Bokovoy1-15/+16
Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-09-05build:wafsamba: Build on waf 1.9Thomas Nagy1-4/+4
Signed-off-by: Thomas Nagy <tnagy@waf.io> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-08-06tdb: test for readonly locks mode on tdbbackup commandAaron Haslett1-0/+11
Simple bash test for readonly locks on tdbbackup: 1. Running tdbbackup on a database with and without readonly locks enabled. 2. Dump both backups and original. 3. Check all three dumps match. A binary sample_tdb.tdb file is included for the test because the existing sample tdbs in lib/tdb/test are either corrupt or empty. Signed-off-by: Aaron Haslett <aaron.haslett@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2018-07-12tdb: version 1.3.16tdb-1.3.16Stefan Metzmacher1-1/+1
* Fix build on AIX * Python3 compatibility fixes * Use tdb_wipe_all in "erase" command * Harden allocating the tdb recovery area * Make sure the hash size fits * Harden tdb_check_used_record against overflow * Harden tdb_rec_read * Handle TDB_NEXT_LOCK_ERR in tdb_traverse_internal * Fix build warnings Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-08-24tdb: version 1.3.15tdb-1.3.15Stefan Metzmacher1-1/+1
* Add protection against EINTR. * Truncate the file after expand failure, ENOSPC * Use posix_fallocate() to expand the file * Fix GCC compiler warnings Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 24 21:17:48 CEST 2017 on sn-devel-144
2017-07-02tdb: version 1.3.14tdb-1.3.14Stefan Metzmacher1-1/+1
* allow tdb_traverse_read before tdb_transaction[_prepare]_commit() * Improve documentation for tdb_transaction_start() * Add new function tdb_transaction_active() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-06-15tdb: add run-fcntl-deadlock testStefan Metzmacher1-0/+1
This verifies the F_RDLCK => F_WRLCK upgrade logic in the kernel for conflicting locks. This is a standalone test to check the traverse_read vs. allrecord_lock/prepare_commit interaction. This is based on the example from https://lists.samba.org/archive/samba-technical/2017-April/119861.html from Douglas Bagnall <douglas.bagnall@catalyst.net.nz> and Volker Lendecke <vl@samba.org>. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2017-04-27tdb: version 1.3.13tdb-1.3.13Stefan Metzmacher1-1/+1
* documentation for the tdbbackup -n option * correctly upgrade F_RDLCK to F_WRLCK locks * tdbtool: Add "storehex" command * fix robust mutex detection in threaded applications (bug #12593) * improve debugging of transaction lock failures Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Apr 27 18:50:10 CEST 2017 on sn-devel-144
2017-04-11tdb: Test for readonly lock upgrade bugVolker Lendecke1-0/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Apr 11 00:33:31 CEST 2017 on sn-devel-144
2017-03-10waf: disable-python - align tdb's wscriptIan Stakenvicius1-7/+2
Drop the configure option for --disable-python as it is now global in wafsamba. If samba is set to use a system copy of tdb, and tdb wasn't built with python support, then the system pytevent will not be found. If samba is being built without python support then pytdb is not needed, so do not bother to try and find it. Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2016-11-30tdb: version 1.3.12tdb-1.3.12Stefan Metzmacher1-1/+1
* Bug 12455 - tdb mutexes don't work on FreeBSD Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Nov 30 20:02:28 CET 2016 on sn-devel-144
2016-08-29tdb: Add tdb_storevVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2016-07-28tdb: version 1.3.10tdb-1.3.10Stefan Metzmacher1-1/+1
* performance improvements * make pthread mutex code more portable * builf fixes Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2016-04-11tdb: version 1.3.9tdb-1.3.9Stefan Metzmacher1-1/+1
* avoid a race condition when checking for robust mutexes (bug #11808) * Remove use of strcpy in tdb test. * eliminate deprecation warnings in python tests * Only set public headers field when installing as a public library. * Refuse to load a database with hash size 0 * Fix various spelling errors Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Apr 11 18:48:26 CEST 2016 on sn-devel-144
2016-01-13tdb: Only set public headers field when installing as a public library.Jelmer Vernooij1-1/+1
Signed-Off-By: Jelmer Vernooij <Jelmer@samba.org>
2015-11-05tdb: version 1.3.8tdb-1.3.8Stefan Metzmacher1-1/+1
* Fix broken build with --disable-python * Minor build fixes Signed-off-by: Stefan Metzmacher <metze@samba.org>
2015-07-23tdb: Fix broken build with --disable-pythonMartin Schwenke1-5/+6
With --disable-python, we should not install any python files. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Thu Jul 23 18:50:25 CEST 2015 on sn-devel-104
2015-07-21tdb: version 1.3.7tdb-1.3.7Stefan Metzmacher1-1/+1
* first fix deadlock in the interaction between fcntl and mutex locking (bug #11381) * improved python3 bindings Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2015-07-21pyldb: Add a text-based interface for Python 3Petr Viktorin1-0/+7
Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2015-07-21pytdb: Build for two versions of Python at oncePetr Viktorin1-8/+8
Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2015-07-21pytdb: Port to Python 3Petr Viktorin1-1/+4
- Use bytes for all data, text strings for repr() - Use PyLong instead of PyInt on py3 - Use new module initialization - Update tests - Run tests in "make test" Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2015-07-09tdb: Reproducer for Bug 11381Volker Lendecke1-0/+1
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11381 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-06-12tdb: version 1.3.6tdb-1.3.6Stefan Metzmacher1-1/+1
* Fix runtime detection for robust mutexes in the standalone build. bug #11326 * Possible fix for the build with robust mutexes on solaris 11 bug #11319 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 12 19:55:34 CEST 2015 on sn-devel-104