summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-10 06:13:39 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-10 06:13:39 +0000
commitb3089836dc01b7ec75c38ebac242911fcbf1b924 (patch)
treed1bd79de477009a94d977ec5048e344aeebca85f /sys-devel
parent(#98457) Parallel build broken. (diff)
downloadgentoo-2-b3089836dc01b7ec75c38ebac242911fcbf1b924.tar.gz
gentoo-2-b3089836dc01b7ec75c38ebac242911fcbf1b924.tar.bz2
gentoo-2-b3089836dc01b7ec75c38ebac242911fcbf1b924.zip
default to a pc vendor only for x86/amd64
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-devel')
-rwxr-xr-xsys-devel/crossdev/files/crossdev9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev
index 7daf0784d84b..e8e59426bb7d 100755
--- a/sys-devel/crossdev/files/crossdev
+++ b/sys-devel/crossdev/files/crossdev
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.24 2005/07/08 02:04:03 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.25 2005/07/10 06:13:39 vapier Exp $
if [[ ${ROOT:-/} != "/" ]] ; then
echo "Sorry, but crossdev does not support ROOT."
@@ -51,7 +51,12 @@ parse_target() {
local CPRE=${CTARGET%%-*} CPOST=${CTARGET#*-}
# Did they give us just an ARCH or the full TARGET ?
- [[ ${CTARGET/-} == ${CTARGET} || -z ${CPOST} ]] && CPOST="pc-linux-gnu"
+ if [[ ${CTARGET/-} == ${CTARGET} || -z ${CPOST} ]] ; then
+ case ${CPRE} in
+ x86|i?86*|amd64|x86_64*) CPOST="pc-linux-gnu";;
+ *) CPOST="unknown-linux-gnu"
+ esac
+ fi
# Let's accept ARCH in both the portage and the standard forms ...
# CTARGET is in the standard form while TARCH is in the portage form