tweak the SLOT logic
authorMike Frysinger <vapier@gentoo.org>
Tue, 7 Dec 2004 00:09:02 +0000 (00:09 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 7 Dec 2004 00:09:02 +0000 (00:09 +0000)
eclass/toolchain.eclass

index 8f7125ce399e9ac93a21f115b0360d4a90cc6b63..408f2daa498305b66f92981ad6628744fdc9cade 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.62 2004/12/05 21:05:37 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.63 2004/12/07 00:09:02 vapier Exp $
 
 
 HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
@@ -99,9 +99,14 @@ else
        if [ -n "${HTB_VER}" ] ; then
                IUSE="${IUSE} boundschecking"
        fi
-       use multislot \
-               && SLOT="${CTARGET}-${MY_PV_FULL}" \
-               || SLOT="${CTARGET}-${MY_PV}"
+       # Support upgrade paths here or people get pissed
+       if use multislot ; then
+               SLOT="${CTARGET}-${MY_PV_FULL}"
+       elif [[ ${CTARGET} != ${CHOST} ]] ; then
+               SLOT="${CTARGET}-${MY_PV}"
+       else
+               SLOT="${MY_PV}"
+       fi
 fi
 #----<< SLOT+IUSE logic >>----