Bug 11457 - tdb 1.3.7 failes to compile with --disable-python
tdb 1.3.7 failes to compile with --disable-python
Status: NEW
Product: TDB
Classification: Unclassified
Component: libtdb
All FreeBSD
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2015-08-18 21:06 UTC by Timur Bakeyev
Modified: 2015-10-09 05:48 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Timur Bakeyev 2015-08-18 21:06:25 UTC
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
  File "/usr/ports/databases/tdb/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 188, in main
  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
  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
  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.