With the --disable-python flag specified tdb build fails to install with the: Waf: Entering directory `/usr/ports/databases/tdb/work/tdb-1.3.7/bin' symlink: _tdb_text.py -> python/_tdb_text.py Traceback (most recent call last): File "buildtools/bin/waf", line 76, in <module> Scripting.prepare(t, cwd, VERSION, wafdir) File "/usr/ports/databases/tdb/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 145, in prepare prepare_impl(t, cwd, ver, wafdir) File "/usr/ports/databases/tdb/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 135, in prepare_impl main() File "/usr/ports/databases/tdb/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 188, in main fun(ctx) File "/usr/ports/databases/tdb/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 386, in build return build_impl(bld) File "/usr/ports/databases/tdb/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 399, in build_impl bld.add_subdirs([os.path.split(Utils.g_module.root_path)[0]]) File "/usr/ports/databases/tdb/work/tdb-1.3.7/third_party/waf/wafadmin/Build.py", line 993, in add_subdirs self.recurse(dirs, 'build') File "/usr/ports/databases/tdb/work/tdb-1.3.7/third_party/waf/wafadmin/Utils.py", line 634, in recurse f(self) File "/usr/ports/databases/tdb/work/tdb-1.3.7/wscript", line 195, in build bld.INSTALL_FILES('${PYTHONARCHDIR}', '_tdb_text.py') File "./buildtools/wafsamba/wafsamba.py", line 843, in INSTALL_FILES destname=destname, base_name=base_name) File "./buildtools/wafsamba/wafsamba.py", line 807, in install_file destdir = bld.EXPAND_VARIABLES(destdir) File "./buildtools/wafsamba/samba_utils.py", line 363, in EXPAND_VARIABLES ret = SUBST_VARS_RECURSIVE(ret, ctx.env) File "./buildtools/wafsamba/samba_utils.py", line 330, in SUBST_VARS_RECURSIVE string = subst_vars_error(string, env) File "./buildtools/wafsamba/samba_utils.py", line 239, in subst_vars_error raise KeyError("Failed to find variable %s in %s" % (vname, string)) KeyError: 'Failed to find variable PYTHONARCHDIR in ${PYTHONARCHDIR}' ===> Compilation failed unexpectedly. Apparently, installation target doesn't take into account the fact that Python was disabled and still tries to install _tdb_text.py file unconditionally.
Should be fixed with commit 509c37da1300b843e089dfcd6657e68fa8c8c746 in tdb-1.3.8