summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-01-26 00:05:06 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-01-26 00:06:28 +0000
commitef5d254fef1645d472c71ed393c4d1d55767b792 (patch)
tree6c0d6482b63fe78bab5d7bdb18348518d3a5f2f6 /eclass
parentapp-portage/hackport: bump up to 0.6.3 (diff)
downloadgentoo-ef5d254fef1645d472c71ed393c4d1d55767b792.tar.gz
gentoo-ef5d254fef1645d472c71ed393c4d1d55767b792.tar.bz2
gentoo-ef5d254fef1645d472c71ed393c4d1d55767b792.zip
toolchain.eclass: use ${GCC_CONFIG_VER} in snapshot, don't mangle ${PV}
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 1 insertions, 5 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index aa70a11c4107..a535707f7ece 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -569,11 +569,7 @@ toolchain_src_prepare() {
if tc_version_is_at_least 4.1 ; then
if [[ -n ${SNAPSHOT} ]] || tc_is_live ; then
- # followed by an optional -pre string
- # eg. 4.5.1, 4.6.2-pre20120213, 4.7.0-pre9999
- # If BASE-VER differs from ${PV/_/-} then libraries get installed in
- # the wrong directory.
- echo ${PV/_/-} > "${S}"/gcc/BASE-VER
+ echo "${GCC_CONFIG_VER}" > "${S}"/gcc/BASE-VER
fi
fi