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

Bug 726180

Summary: =dev-libs/fribidi-1.0.9 does not respect CC/CC_FOR_BUILD variable
Product: Gentoo Linux Reporter: Sergei Trofimovich <slyfox>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: CONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    

Description Sergei Trofimovich gentoo-dev 2020-05-30 08:22:17 UTC
On sys-devel/gcc-config[-native-symlinks] system fribidi fails to build in configure phase as:

checking size of void *... 4
checking size of wchar_t... 4
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/portage/dev-libs/fribidi-1.0.9/work/fribidi-1.0.9-abi_x86_32.x86':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

sys-devel/gcc-config[-native-symlinks] removes default 'cc' and 'gcc' symlinks and relies on ebuilds passing CC/CXX variables.

In this case CC_FOR_BUILD variable is not set in the ebuild.

The following seems to be enough to get fribidi going again:

--- a/dev-libs/fribidi/fribidi-1.0.9.ebuild
+++ b/dev-libs/fribidi/fribidi-1.0.9.ebuild
@@ -3,7 +3,7 @@


-inherit multilib-minimal
+inherit multilib-minimal toolchain-funcs

 DESCRIPTION="A free implementation of the unicode bidirectional algorithm"
@@ -22,6 +22,12 @@ BDEPEND="

 DOCS=( AUTHORS NEWS ChangeLog THANKS ) # README points at which wasn't disted with EAPI-7

+src_prepare() {
+	default
+	export CC_FOR_BUILD="$(tc-getBUILD_CC)"
 multilib_src_configure() {
 	local myeconfargs=(