commit:     3490f9e410e06c62f18b746cffbdb5d079ee5439
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Thu Jun 11 21:49:24 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Jul  5 08:24:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3490f9e4

media-gfx/gimp: fix gimp does not respect CC/CC_FOR_BUILD variable

This issue was reported for media-gfx/gimp-2.10.18-r1
and proposed patch is applied here for gimp-2.10.20

Closes: https://bugs.gentoo.org/726176

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/16199
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-gfx/gimp/gimp-2.10.20.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/media-gfx/gimp/gimp-2.10.20.ebuild 
b/media-gfx/gimp/gimp-2.10.20.ebuild
index 0200a27872c..9b52b5175a3 100644
--- a/media-gfx/gimp/gimp-2.10.20.ebuild
+++ b/media-gfx/gimp/gimp-2.10.20.ebuild
@@ -6,7 +6,7 @@ PYTHON_COMPAT=( python2_7 )
 GNOME2_EAUTORECONF=yes
 WANT_AUTOMAKE=
 
-inherit autotools gnome2 python-single-r1 virtualx
+inherit autotools gnome2 python-single-r1 toolchain-funcs virtualx
 
 DESCRIPTION="GNU Image Manipulation Program"
 HOMEPAGE="https://www.gimp.org/";
@@ -107,6 +107,8 @@ src_prepare() {
 
        sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' 
-i configure || die #615144
        fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
+
+       export CC_FOR_BUILD="$(tc-getBUILD_CC)"
 }
 
 _adjust_sandbox() {

Reply via email to