Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 556960

Summary: sys-libs/tdb-1.3.7 fails at building (and fix)
Product: Gentoo Linux Reporter: jorgicio <jpizarrocallejas>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: chris
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The patch that fixes it

Description jorgicio 2015-08-07 15:10:53 UTC
Hi!

As tdb 1.3.7 comes out, it fails at building because of the following. However, I found a patch that fixes it, so I'll attach it then.

{noformat}
'configure' finished successfully (29.104s)
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_compile
"/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7/buildtools/bin/waf" build --verbose --jobs=1
Waf: Entering directory `/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7-abi_x86_32.x86/bin'
symlink: _tdb_text.py -> python/_tdb_text.py
Traceback (most recent call last):
  File "/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7/buildtools/bin/waf", line 76, in <module>
    Scripting.prepare(t, cwd, VERSION, wafdir)
  File "/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 145, in prepare
    prepare_impl(t, cwd, ver, wafdir)
  File "/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 135, in prepare_impl
    main()
  File "/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 188, in main
    fun(ctx)
  File "/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7/third_party/waf/wafadmin/Scripting.py", line 386, in build
    return build_impl(bld)
  File "/var/tmp/portage/sys-libs/tdb-1.3.7/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 "/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7/third_party/waf/wafadmin/Build.py", line 993, in add_subdirs
    self.recurse(dirs, 'build')
  File "/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7/third_party/waf/wafadmin/Utils.py", line 634, in recurse
    f(self)
  File "/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7-abi_x86_32.x86/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}'
 * ERROR: sys-libs/tdb-1.3.7 failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3453:  Called multilib-minimal_src_compile
 *   environment, line 1944:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 2168:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1811:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1809:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  371:  Called multilib-minimal_abi_src_compile
 *   environment, line 1938:  Called multilib_src_compile
 *   environment, line 2381:  Called waf-utils_src_compile
 *   environment, line 4047:  Called die
 * The specific snippet of code:
 *       "${WAF_BINARY}" ${_mywafconfig} ${jobs} || die "build failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/tdb-1.3.7'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/tdb-1.3.7'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/tdb-1.3.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/tdb-1.3.7/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7-abi_x86_32.x86'
 * S: '/var/tmp/portage/sys-libs/tdb-1.3.7/work/tdb-1.3.7'
{noformat}

Reproducible: Always
Comment 1 jorgicio 2015-08-07 15:11:24 UTC
Created attachment 408484 [details, diff]
The patch that fixes it
Comment 2 Felix Janda 2015-08-07 17:32:14 UTC
This is very likely a duplicate of bug 556920 . Please attach your patch there.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-08-08 09:09:27 UTC
Thanks for the patch

*** This bug has been marked as a duplicate of bug 556920 ***