summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-21 04:50:55 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-21 04:50:55 +0000
commit78774ed45b7a37811f5224f7fda3d9ae3127352b (patch)
treeca98d5aef752c9d2e0efa66d5248bcd6e99c9c68 /sys-devel/crossdev
parentversion bump (bug #85846) (diff)
downloadhistorical-78774ed45b7a37811f5224f7fda3d9ae3127352b.tar.gz
historical-78774ed45b7a37811f5224f7fda3d9ae3127352b.tar.bz2
historical-78774ed45b7a37811f5224f7fda3d9ae3127352b.zip
less interactive cleaning
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'sys-devel/crossdev')
-rw-r--r--sys-devel/crossdev/Manifest2
-rwxr-xr-xsys-devel/crossdev/files/crossdev15
2 files changed, 14 insertions, 3 deletions
diff --git a/sys-devel/crossdev/Manifest b/sys-devel/crossdev/Manifest
index c9b71ecce28c..045ec0de24e8 100644
--- a/sys-devel/crossdev/Manifest
+++ b/sys-devel/crossdev/Manifest
@@ -4,5 +4,5 @@ MD5 5bebfeed684c75c8f16a488d34cb6d7b crossdev-0.4-r1.ebuild 1216
MD5 e1f62609a53741b380caed5a7bc01f18 crossdev-0.9.5.ebuild 558
MD5 bbb032e270728ffb39276e95e5653b62 files/crossdev-0.4-fixes-one.patch 1675
MD5 e797084ae210cc0ff10ba4185eefb5e7 files/digest-crossdev-0.4-r1 64
-MD5 0d23c54102d285708556c885bdd7cfc8 files/crossdev 9246
+MD5 778adfb2bb48966b4e13c2b714e6861b files/crossdev 9589
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-crossdev-0.9.5 0
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev
index dbf00294c062..ba54d8b60289 100755
--- a/sys-devel/crossdev/files/crossdev
+++ b/sys-devel/crossdev/files/crossdev
@@ -1,7 +1,12 @@
#!/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.13 2005/03/18 03:28:07 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.14 2005/03/21 04:50:55 vapier Exp $
+
+if [[ ${ROOT:-/} != "/" ]] ; then
+ echo "Sorry, but crossdev does not support ROOT."
+ exit 2
+fi
source /sbin/functions.sh || exit 1
die() {
@@ -102,8 +107,10 @@ setup_portage_vars() {
uninstall() {
setup_portage_vars
+ ewarn "Uninstalling target '${CTARGET}' ..."
+
[[ -d ${PORTDIR_OVERLAY}/cross-${CTARGET} ]] \
- && rm -ri ${PORTDIR_OVERLAY}/cross-${CTARGET}
+ && rm -r ${PORTDIR_OVERLAY}/cross-${CTARGET}
for f in mask keywords use ; do
f="/etc/portage/package.${f}"
[[ ! -e ${f} ]] && continue
@@ -119,6 +126,10 @@ uninstall() {
for p in cross-${CTARGET}/* ; do
emerge -C =${p}
done
+ for b in addr2line ar as c++filt ld nm objcopy objdump ranlib readelf size strings strip ; do
+ rm -f /usr/bin/${CTARGET}-${b} /usr/${CTARGET}/bin/${b}
+ done
+ rm -f /usr/bin/${CTARGET}-{gcc,{c,g}++}
[[ -d /usr/${CTARGET} ]] && rm -ri /usr/${CTARGET}
rm -f /etc/env.d/{binutils,gcc}/config-${CTARGET}