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 | f12079e52cd07ed1911e2048bfb27ce804f5c6c1 (patch) | |
tree | 5d5364ce15055357f4f8df22aa35dff32677d8ca /eclass/crosscompile.eclass | |
parent | Initial import of nForce Audio kernel driver. (diff) | |
download | historical-f12079e52cd07ed1911e2048bfb27ce804f5c6c1.tar.gz historical-f12079e52cd07ed1911e2048bfb27ce804f5c6c1.tar.bz2 historical-f12079e52cd07ed1911e2048bfb27ce804f5c6c1.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 |