diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-03-04 03:27:27 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-03-04 03:27:27 +0000 |
commit | 364ad9a19cc9197b6c88f78940754eb11e59a579 (patch) | |
tree | 00ec6d97e76a4e4302bbb318f5f3f35c42b3f30b /sys-devel | |
parent | old (diff) | |
download | historical-364ad9a19cc9197b6c88f78940754eb11e59a579.tar.gz historical-364ad9a19cc9197b6c88f78940754eb11e59a579.tar.bz2 historical-364ad9a19cc9197b6c88f78940754eb11e59a579.zip |
Add sanity checks to keep from breaking the host system.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/crossdev/ChangeLog | 8 | ||||
-rw-r--r-- | sys-devel/crossdev/Manifest | 8 | ||||
-rw-r--r-- | sys-devel/crossdev/crossdev-0.9-r2.ebuild | 20 | ||||
-rwxr-xr-x | sys-devel/crossdev/files/crossdev | 21 | ||||
-rw-r--r-- | sys-devel/crossdev/files/digest-crossdev-0.9-r2 | 0 |
5 files changed, 47 insertions, 10 deletions
diff --git a/sys-devel/crossdev/ChangeLog b/sys-devel/crossdev/ChangeLog index b49314b40f12..6c277e203cdb 100644 --- a/sys-devel/crossdev/ChangeLog +++ b/sys-devel/crossdev/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-devel/crossdev # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/ChangeLog,v 1.8 2005/03/04 02:59:52 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/ChangeLog,v 1.9 2005/03/04 03:27:27 vapier Exp $ + +*crossdev-0.9-r2 (03 Mar 2005) + + 03 Mar 2005; Mike Frysinger <vapier@gentoo.org> files/crossdev, + +crossdev-0.9-r2.ebuild: + Add sanity checks to keep from breaking the host system. *crossdev-0.9-r1 (03 Mar 2005) diff --git a/sys-devel/crossdev/Manifest b/sys-devel/crossdev/Manifest index 67dae57a01da..f0b9097dad49 100644 --- a/sys-devel/crossdev/Manifest +++ b/sys-devel/crossdev/Manifest @@ -1,8 +1,8 @@ -MD5 b53137a28b1161c9d3043b334fbba2a7 ChangeLog 1487 +MD5 15fd5b66ea1ccca12e42f214e9d13224 ChangeLog 1672 MD5 e91cdaf464f515f3528da02cf06e54a1 metadata.xml 222 -MD5 973a7ac674de12bc18d5292f8a293dc4 crossdev-0.9-r1.ebuild 512 MD5 5bebfeed684c75c8f16a488d34cb6d7b crossdev-0.4-r1.ebuild 1216 +MD5 d1b1fb5c7fee5412148043bbabb5316f crossdev-0.9-r2.ebuild 512 MD5 bbb032e270728ffb39276e95e5653b62 files/crossdev-0.4-fixes-one.patch 1675 MD5 e797084ae210cc0ff10ba4185eefb5e7 files/digest-crossdev-0.4-r1 64 -MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-crossdev-0.9-r1 0 -MD5 c072ff8244822382d1d00ac177ca8409 files/crossdev 5990 +MD5 6e61a96f1d690713e75dae5dd550ffcd files/crossdev 6374 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-crossdev-0.9-r2 0 diff --git a/sys-devel/crossdev/crossdev-0.9-r2.ebuild b/sys-devel/crossdev/crossdev-0.9-r2.ebuild new file mode 100644 index 000000000000..37c5b2175e68 --- /dev/null +++ b/sys-devel/crossdev/crossdev-0.9-r2.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/crossdev-0.9-r2.ebuild,v 1.1 2005/03/04 03:27:27 vapier Exp $ + +DESCRIPTION="Gentoo Cross-toolchain generator" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND="sys-apps/portage + app-shells/bash + sys-apps/coreutils" + +src_install() { + dobin "${FILESDIR}"/crossdev || die +} 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 |