Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726180 - =dev-libs/fribidi-1.0.9 does not respect CC/CC_FOR_BUILD variable
Summary: =dev-libs/fribidi-1.0.9 does not respect CC/CC_FOR_BUILD variable
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2020-05-30 08:22 UTC by Sergei Trofimovich
Modified: 2020-05-30 08:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 @@

 EAPI=7

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

 DESCRIPTION="A free implementation of the unicode bidirectional algorithm"
 HOMEPAGE="https://fribidi.org/"
@@ -22,6 +22,12 @@ BDEPEND="

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

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