From 3f171e23da269c77dfa9cb3097737e33db853c8d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 19 Mar 2016 17:15:18 -0700 Subject: [PATCH] toolchain.eclass: install gcc-5 go binary as go-5 #567806 --- eclass/toolchain.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 7dade5cf192c..03e550dd6f72 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1684,10 +1684,12 @@ toolchain_src_install() { ln -sf ${CTARGET}-${x} ${CTARGET}-${x}-${GCC_CONFIG_VER} fi done - # Clear out the main go binaries as we don't want to clobber dev-lang/go + # Rename the main go binaries as we don't want to clobber dev-lang/go # when gcc-config runs. #567806 if tc_version_is_at_least 5 && is_go ; then - rm -f go gofmt + for x in go gofmt; do + mv ${x} ${x}-${GCCMAJOR} || die + done fi # Now do the fun stripping stuff -- 2.26.2