#!/usr/bin/env python
APPNAME = 'tdb'
-VERSION = '1.3.7'
+VERSION = '1.3.14'
blddir = 'bin'
'run-readonly-check',
'run-rescue',
'run-rescue-find_entry',
+ 'run-rdlock-upgrade',
'run-rwlock-check',
'run-summary',
'run-transaction-expand',
'run-traverse-in-transaction',
'run-wronghash-fail',
'run-zero-append',
+ 'run-fcntl-deadlock',
'run-marklock-deadlock',
'run-allrecord-traverse-deadlock',
'run-mutex-openflags2',
help=("Disable the use of pthread robust mutexes"),
action="store_true", dest='disable_tdb_mutex_locking',
default=False)
- if opt.IN_LAUNCH_DIR():
- opt.add_option('--disable-python',
- help=("disable the pytdb module"),
- action="store_true", dest='disable_python', default=False)
def configure(conf):
implied_deps='replace'):
conf.define('USING_SYSTEM_TDB', 1)
conf.env.building_tdb = False
- if conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytdb', 'tdb', minversion=VERSION):
+ if not conf.env.disable_python and \
+ conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytdb', 'tdb', minversion=VERSION):
conf.define('USING_SYSTEM_PYTDB', 1)
- conf.env.disable_python = getattr(Options.options, 'disable_python', False)
-
if (conf.CONFIG_SET('HAVE_ROBUST_MUTEXES') and
conf.env.building_tdb and
not conf.env.disable_tdb_mutex_locking):
abi_match='tdb_*',
hide_symbols=True,
vnum=VERSION,
- public_headers='include/tdb.h',
+ public_headers=('' if private_library else 'include/tdb.h'),
public_headers_install=not private_library,
pc_files='tdb.pc',
private_library=private_library)
realname='tdb.so',
cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
- for env in bld.gen_python_environments(['PKGCONFIGDIR']):
- bld.SAMBA_SCRIPT('_tdb_text.py',
- pattern='_tdb_text.py',
- installdir='python')
+ if not bld.env.disable_python:
+ for env in bld.gen_python_environments(['PKGCONFIGDIR']):
+ bld.SAMBA_SCRIPT('_tdb_text.py',
+ pattern='_tdb_text.py',
+ installdir='python')
- bld.INSTALL_FILES('${PYTHONARCHDIR}', '_tdb_text.py')
+ bld.INSTALL_FILES('${PYTHONARCHDIR}', '_tdb_text.py')
def testonly(ctx):
'''run tdb testsuite'''