Bug 11457 - tdb 1.3.7 failes to compile with --disable-python
Summary: tdb 1.3.7 failes to compile with --disable-python
Status: RESOLVED FIXED
Alias: None
Product: TDB
Classification: Unclassified
Component: libtdb (show other bugs)
Version: unspecified
Hardware: All FreeBSD
: P5 normal
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-18 21:06 UTC by Timur Bakeyev
Modified: 2018-04-24 07:08 UTC (History)
2 users (show)

See Also:


Attachments

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
    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.
Comment 1 Stefan Metzmacher 2018-04-24 07:08:45 UTC
Should be fixed with commit 509c37da1300b843e089dfcd6657e68fa8c8c746
in tdb-1.3.8