summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-04 03:27:27 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-04 03:27:27 +0000
commit3fa73a766b859416382a8dfe379d9ab7bc29c940 (patch)
tree81ac13143c9e11d36d4d4ea59303ab5f1988df73 /sys-devel/crossdev/files
parentold (diff)
downloadgentoo-2-3fa73a766b859416382a8dfe379d9ab7bc29c940.tar.gz
gentoo-2-3fa73a766b859416382a8dfe379d9ab7bc29c940.tar.bz2
gentoo-2-3fa73a766b859416382a8dfe379d9ab7bc29c940.zip
Add sanity checks to keep from breaking the host system.
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-devel/crossdev/files')
-rwxr-xr-xsys-devel/crossdev/files/crossdev21
-rw-r--r--sys-devel/crossdev/files/digest-crossdev-0.9-r20
2 files changed, 16 insertions, 5 deletions
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev
index e3ef3c037fe5..b5904d12ef1a 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.2 2005/03/04 02:59:52 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.3 2005/03/04 03:27:27 vapier Exp $
source /sbin/functions.sh || exit 1
die() {
@@ -88,11 +88,12 @@ hr() {
echo ${br}
}
-#################
+##################
+### setup vars ###
EOPTS=
UOPTS=
TARCH=
-HARCH=
+HARCH=$(env -uARCH portageq envvar ARCH)
CTARGET=
STAGE=3
BVER="[latest]"
@@ -118,8 +119,18 @@ done
[[ -z ${CTARGET} ]] && usage 1
[[ ${CTARGET} == *-uclibc ]] && LPKG="uclibc"
-#################
-HARCH=$(env -uARCH portageq envvar ARCH)
+#####################
+### sanity checks ###
+if [[ -z $(portageq best_version / binutils-config) ]] ; then
+ eerror "Sorry, but your host system needs to have binutils-config"
+ eerror "in order to keep from screwing things up."
+ eerror "That means you must be running unstable versions of"
+ eerror "both binutils and binutils-config."
+ exit 1
+fi
+
+#####################
+### do the emerge ###
PORTDIR_OVERLAY=$(portageq envvar PORTDIR_OVERLAY)
PORTDIR=$(portageq envvar PORTDIR)
PORT_LOGDIR=$(portageq envvar PORT_LOGDIR)
diff --git a/sys-devel/crossdev/files/digest-crossdev-0.9-r2 b/sys-devel/crossdev/files/digest-crossdev-0.9-r2
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sys-devel/crossdev/files/digest-crossdev-0.9-r2