summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-20 17:47:25 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-20 17:47:25 +0000
commita192cbaa98f630d8fad9bcf5be995aa781665da9 (patch)
treeab00fdd2eacd3cba7d3024fa0624fe6b7c7fb5bf /sys-devel/crossdev
parentStable on hppa, mips, ppc, sparc, x86. (diff)
downloadgentoo-2-a192cbaa98f630d8fad9bcf5be995aa781665da9.tar.gz
gentoo-2-a192cbaa98f630d8fad9bcf5be995aa781665da9.tar.bz2
gentoo-2-a192cbaa98f630d8fad9bcf5be995aa781665da9.zip
add sanity check to make sure people dont try creating a cross-compiler with same name as native target
(Portage version: 2.0.53_rc5)
Diffstat (limited to 'sys-devel/crossdev')
-rwxr-xr-xsys-devel/crossdev/files/crossdev8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev
index 6db314d1859f..69c7378de173 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.39 2005/10/16 10:35:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.40 2005/10/20 17:47:25 vapier Exp $
cd /
@@ -323,6 +323,12 @@ if [[ -z ${PORTDIR_OVERLAY} ]] ; then
exit 1
fi
+if [[ $(env -u CHOST portageq envvar CHOST) == ${CTARGET} ]] ; then
+ eerror "Refusing to create a cross-compiler using the same"
+ eerror "target name as your host utils."
+ exit 1
+fi
+
#####################
### do the emerge ###
(