diff options
author | Zack Welch <zwelch@gentoo.org> | 2003-05-08 01:03:51 +0000 |
---|---|---|
committer | Zack Welch <zwelch@gentoo.org> | 2003-05-08 01:03:51 +0000 |
commit | 5ab98f4e17c4a8053bd6a21966159fd89ee6532c (patch) | |
tree | 65d029d84807ed8f1498210bc4f939949d539a76 /eclass/crosscompile.eclass | |
parent | Initial import of nForce Audio kernel driver. (diff) | |
download | gentoo-2-5ab98f4e17c4a8053bd6a21966159fd89ee6532c.tar.gz gentoo-2-5ab98f4e17c4a8053bd6a21966159fd89ee6532c.tar.bz2 gentoo-2-5ab98f4e17c4a8053bd6a21966159fd89ee6532c.zip |
modify cross-setslot to only set SLOT="${1}"; old tricks actually
prevent the arch-CCHOST category workaround from allowing multiple
versions
Diffstat (limited to 'eclass/crosscompile.eclass')
-rw-r--r-- | eclass/crosscompile.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/crosscompile.eclass b/eclass/crosscompile.eclass index 03a56966b81d..d6fa0d2d8374 100644 --- a/eclass/crosscompile.eclass +++ b/eclass/crosscompile.eclass @@ -1,7 +1,7 @@ # Copyright 2003 Gentoo Technologies, Inc. # Distributed under the term of the GNU General Public License v2 # Author: Zachary T Welch -# $Header: /var/cvsroot/gentoo-x86/eclass/crosscompile.eclass,v 1.3 2003/04/17 22:55:13 zwelch Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/crosscompile.eclass,v 1.4 2003/05/08 01:03:51 zwelch Exp $ ECLASS=crosscompile INHERITED="$INHERITED $ECLASS" @@ -69,7 +69,13 @@ cross-target() { # cross-setslot sets the SLOT for a cross-targetable ebuild # this prevents portage from unmerging the native version cross-setslot() { - cross-target && SLOT="${CCHOST}-${1}" || SLOT="${1}" + # IMPORTANT, this only works because cross-compiling uses + # arch-CCHOST categories in the portage overlay to fake + # portage into thinking it sees a new CATEGORY/PACKAGE + SLOT="${1}" + # in the future, we should be able to do the following: + # cross-target && SLOT="${1}-${CCHOST}" || SLOT="${1}" + } # The compiler will need to be able to find the header files |