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

Bug 602398

Summary: sys-libs/tdb-1.3.12 Build fails with FEATURES="distcc"
Product: Gentoo Linux Reporter: Chris Pritchard <chris>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: UNCONFIRMED ---    
Severity: normal CC: mlspamcb, samba
Priority: Low    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge -pvq
emerge --info
environment file
build.log

Description Chris Pritchard 2016-12-12 00:28:03 UTC
Created attachment 455946 [details]
emerge -pvq

sys-libs/tdb-1.3.12 failes when using distcc with the following error:

TypeError: expected a string or other character buffer object
 [31;01m*[0m ERROR: sys-libs/tdb-1.3.12::gentoo failed (configure phase):
 [31;01m*[0m   configure failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  115:  Called src_configure
 [31;01m*[0m   environment, line 2496:  Called multilib-minimal_src_configure
 [31;01m*[0m   environment, line 1123:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 [31;01m*[0m   environment, line 1337:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 [31;01m*[0m   environment, line  984:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 [31;01m*[0m   environment, line  982:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 [31;01m*[0m   environment, line  255:  Called multilib-minimal_abi_src_configure
 [31;01m*[0m   environment, line 1117:  Called multilib_src_configure
 [31;01m*[0m   environment, line 1558:  Called waf-utils_src_configure
 [31;01m*[0m   environment, line 3105:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       CCFLAGS="${CFLAGS}" LINKFLAGS="${CFLAGS} ${LDFLAGS}" "${WAF_BINARY}" "--prefix=${EPREFIX}/usr" "${libdir[@]}" "$@" configure || die "configure failed"
Comment 1 Chris Pritchard 2016-12-12 00:28:29 UTC
Created attachment 455948 [details]
emerge --info
Comment 2 Chris Pritchard 2016-12-12 00:28:58 UTC
Created attachment 455950 [details]
environment file
Comment 3 Chris Pritchard 2016-12-12 00:29:13 UTC
Created attachment 455952 [details]
build.log
Comment 4 Nico Baggus 2021-11-02 17:28:11 UTC
This is still an issue with sys-libs/tdb-1.4.5

# FEATURES="-distcc" emerge -1 tdb
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-libs/tdb-1.4.5::gentoo
>>> Installing (1 of 1) sys-libs/tdb-1.4.5::gentoo



# emerge -1 tdb
...
...
...
Checking for stylesheet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl : ok 
Checking for program 'python3'                                                                  : /usr/bin/python3.9 
Checking for program 'python'                                                                   : /usr/bin/python3.9 
Checking for program 'python3'                                                                  : /var/tmp/portage/sys-libs/tdb-1.4.5/temp/python3.9/bin/python3 
Checking for python version >= 3.6.0                                                            : 3.9.7 
python-config                                                                                   : /usr/bin/python3.9-config 
Asking python-config for pyembed '--cflags --libs --ldflags --embed' flags                      : yes 
Testing pyembed configuration                                                                   : Could not find a .d dependency file, are cflags/cxxflags overwritten?
Could not build a python embedded interpreter 
Testing pyembed configuration                                                                   : Could not find a .d dependency file, are cflags/cxxflags overwritten?
Could not build a python embedded interpreter 
The configuration failed
(complete log in /var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/config.log)
 * ERROR: sys-libs/tdb-1.4.5::gentoo failed (configure phase):
 *   configure failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_configure
 *   environment, line 2636:  Called multilib-minimal_src_configure
 *   environment, line 1574:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 1827:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1504:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1502:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  454:  Called multilib-minimal_abi_src_configure
 *   environment, line 1568:  Called multilib_src_configure
 *   environment, line 2048:  Called waf-utils_src_configure
 *   environment, line 3450:  Called die
 * The specific snippet of code:
 *       env "${CMD[@]}" || die "configure failed"
 *
Comment 5 Nico Baggus 2021-11-02 17:29:39 UTC
it might be expected if the distcc server system doesn't have the same config as the distcc client i guess.

The config appearantly doesn;t know how to handle distcc enabled enviroenments.