diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-23 23:49:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-23 23:49:34 +0000 |
commit | 0592265efe6a630a5938ab2158d7010b70f1bbee (patch) | |
tree | 7fd50eb3851b58b3ed0d69ded63c771c4c7c47d5 /sys-devel | |
parent | version bump; 1.3.14 is security fix only and 1.4.8 is security fix *and* min... (diff) | |
download | historical-0592265efe6a630a5938ab2158d7010b70f1bbee.tar.gz historical-0592265efe6a630a5938ab2158d7010b70f1bbee.tar.bz2 historical-0592265efe6a630a5938ab2158d7010b70f1bbee.zip |
Touchup help output, add more error checking, clean more directories when uninstalling, be a bit more user friendly with cmdline options, add untested support for klibc, touchup internal syntax, and improve ABI faking out.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/crossdev/ChangeLog | 10 | ||||
-rw-r--r-- | sys-devel/crossdev/Manifest | 14 | ||||
-rw-r--r-- | sys-devel/crossdev/crossdev-0.9.9-r1.ebuild (renamed from sys-devel/crossdev/crossdev-0.9.9.ebuild) | 2 | ||||
-rwxr-xr-x | sys-devel/crossdev/files/crossdev | 70 | ||||
-rw-r--r-- | sys-devel/crossdev/files/digest-crossdev-0.9.9-r1 (renamed from sys-devel/crossdev/files/digest-crossdev-0.9.9) | 0 |
5 files changed, 57 insertions, 39 deletions
diff --git a/sys-devel/crossdev/ChangeLog b/sys-devel/crossdev/ChangeLog index 59fb869c1df8..7958210aa31d 100644 --- a/sys-devel/crossdev/ChangeLog +++ b/sys-devel/crossdev/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-devel/crossdev # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/ChangeLog,v 1.22 2005/08/17 22:48:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/ChangeLog,v 1.23 2005/08/23 23:49:34 vapier Exp $ + +*crossdev-0.9.9-r1 (23 Aug 2005) + + 23 Aug 2005; Mike Frysinger <vapier@gentoo.org> files/crossdev, + -crossdev-0.9.9.ebuild, +crossdev-0.9.9-r1.ebuild: + Touchup help output, add more error checking, clean more directories when + uninstalling, be a bit more user friendly with cmdline options, add untested + support for klibc, touchup internal syntax, and improve ABI faking out. *crossdev-0.9.9 (17 Aug 2005) diff --git a/sys-devel/crossdev/Manifest b/sys-devel/crossdev/Manifest index 78561fc68a9b..fbce5e00c9b5 100644 --- a/sys-devel/crossdev/Manifest +++ b/sys-devel/crossdev/Manifest @@ -1,15 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 9dca24e2997df89753b783b37c9307a4 crossdev-0.9.9.ebuild 593 MD5 e91cdaf464f515f3528da02cf06e54a1 metadata.xml 222 -MD5 1e329f96111ed957c3f8089b2bf3b4d4 ChangeLog 4379 -MD5 3f0e3c00d022d21814701cb2c38b8433 files/crossdev 12386 -MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-crossdev-0.9.9 0 +MD5 f17b4eb489fbac94504e96ca1b870e27 ChangeLog 4762 +MD5 21180bde90ef6efc6d7319cd550e0129 crossdev-0.9.9-r1.ebuild 596 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-crossdev-0.9.9-r1 0 +MD5 2ef272c03f4ad3c0e9a38b286a74d7e1 files/crossdev 12701 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) -iD8DBQFDB/mmgIKl8Uu19MoRAsNqAJ4i1TTHql619yVGkZjmdy++sjKtgwCeLIzd -UqVfq5WQlCZwwxVHQKC+2kc= -=05ou +iD8DBQFDC7ZAgIKl8Uu19MoRAmOIAJwN1MJNsCBN48Y8gH7Zx6xDucZcsgCfRGPJ +NQ2+7DC+HGhKX1GcUYc+oEQ= +=PnJ1 -----END PGP SIGNATURE----- diff --git a/sys-devel/crossdev/crossdev-0.9.9.ebuild b/sys-devel/crossdev/crossdev-0.9.9-r1.ebuild index 1270c2335c1e..898511de83a1 100644 --- a/sys-devel/crossdev/crossdev-0.9.9.ebuild +++ b/sys-devel/crossdev/crossdev-0.9.9-r1.ebuild @@ -1,6 +1,6 @@ # 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.9.ebuild,v 1.1 2005/08/17 22:48:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/crossdev-0.9.9-r1.ebuild,v 1.1 2005/08/23 23:49:34 vapier Exp $ DESCRIPTION="Gentoo Cross-toolchain generator" HOMEPAGE="http://www.gentoo.org/" diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev index 2701d11eee24..4cb8ae9b3c22 100755 --- a/sys-devel/crossdev/files/crossdev +++ b/sys-devel/crossdev/files/crossdev @@ -1,7 +1,9 @@ #!/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.32 2005/08/21 03:48:15 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.33 2005/08/23 23:49:34 vapier Exp $ + +cd / if [[ ${ROOT:-/} != "/" ]] ; then echo "Sorry, but crossdev does not support ROOT." @@ -75,6 +77,7 @@ parse_target() { alpha*) TARCH=alpha;; arm*) TARCH=arm;; hppa*) TARCH=hppa;; + parisc) TARCH=hppa; CPRE="hppa";; ia64*) TARCH=ia64;; i?86*) TARCH=x86;; x86) TARCH=x86; CPRE="i386";; @@ -120,41 +123,39 @@ parse_target() { GVER="3.2.2"; BVER="2.14"; STAGE=${STAGE_BINUTILS};; - ####################### - ### unknown targets ### + ############ + ### help ### help) cat <<-EOF Supported Architectures: alpha - arm - hppa + arm / armeb + hppa (parisc) ia64 - i386 (x86) - i[456]86 + i386 / i486 / i586 / i686 (x86) m68k - mips - powerpc64 (ppc64) - powerpc (ppc) - sparc - sparc64 - s390 - s390x - sh / sh[1-5] - sh64 + mips / mipsel / mips64 / mips64el + powerpc (ppc) / powerpc64 (ppc64) + sparc / sparc64 + s390 / s390x + sh / sh[1-5] / sh64 x86_64 (amd64) Supported C Libraries: gnu (glibc) - uclibc + klibc + uclibc [not all arches are ported] Special Targets: avr msp430 - ps2 (alias for the following 3 targets) - ee / iop / dvp (Playstation 2 targets) + ee / iop / dvp (ps2) [Playstation 2 targets] EOF exit 0 ;; + + ####################### + ### unknown targets ### *) usage 1;; esac @@ -194,14 +195,17 @@ uninstall() { cd /var/db/pkg for p in cross-${CTARGET}/* ; do - emerge -C =${p} + emerge -C =${p} || exit 1 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} + for d in /usr/${CTARGET} /usr/lib/gcc{,-lib}/${CTARGET} ; do + [[ -d ${d} ]] && rm -ri "${d}" + done rm -f /etc/env.d/{binutils,gcc}/config-${CTARGET} + rmdir /var/db/pkg/cross-${CTARGET} exit 0 } @@ -264,25 +268,31 @@ while [[ $# -gt 0 ]] ; do --ex-gcc) EX_GCC="yes";; --ex-gdb) EX_GDB="yes";; -b|-p|-v) UOPTS="${UOPTS} $1";; + -pv|-vp) UOPTS="${UOPTS} -p -v";; -h|--help) usage;; - *) eerror "UNKNOWN OPTION: '$1'" ; usage 1;; + -*) eerror "UNKNOWN OPTION: '$1'" ; usage 1;; + *) parse_target $1;; esac shift done + [[ -z ${CTARGET} ]] && usage 1 -[[ ${CTARGET} == *-uclibc ]] && LPKG="uclibc" [[ ${STAGE} == "COW" ]] && STAGE=${STAGE_C_CPP} +case ${CTARGET} in + *-uclibc) LPKG="uclibc";; + *-klibc) LPKG="klibc";; +esac ##################### ### sanity checks ### -if [[ -z $(portageq best_version / binutils-config) ]] ; then +if ! binutils-config -v &> /dev/null ; 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 -if [[ -z $(egrep 'inherit.*toolchain( |$)' /var/db/pkg/sys-devel/gcc-*/*.ebuild) ]] ; then +if ! egrep -qs 'inherit.*toolchain( |$)' /var/db/pkg/sys-devel/gcc-*/*.ebuild ; then eerror "Sorry, but your host system needs to have" eerror "an unstable version of gcc in order to" eerror "keep from screwing things up." @@ -378,8 +388,8 @@ set_portage() { } mkdir -p /etc/portage -[[ -z $(grep -s "^cross-${CTARGET}$" /etc/portage/categories) ]] \ - && echo cross-${CTARGET} >> /etc/portage/categories +grep -qs "^cross-${CTARGET}$" /etc/portage/categories \ + || echo cross-${CTARGET} >> /etc/portage/categories mkdir -p "${PORTDIR_OVERLAY}"/cross-${CTARGET} cd /etc/portage touch package.{keywords,mask,use} @@ -416,14 +426,14 @@ doemerge() { # we include the '-u' so that we don't re-emerge packages EOPTS="${UOPTS} -u --nodeps" +# make sure multilib crap doesn't screw us over +export ABI="pos" LIBDIR_pos="lib" CFLAGS_pos="" LDFLAGS_pos="" + ex_fast || { doemerge ${BPKG} is_s1 || exit 0 -# make sure multilib crap doesn't screw us over -export ABI="this-abi-var-sucks" - USE="-boundschecking -fortran -gcj -objc nocxx -static" \ doemerge ${GPKG} ${GPKG}-stage1 is_s2 || exit 0 diff --git a/sys-devel/crossdev/files/digest-crossdev-0.9.9 b/sys-devel/crossdev/files/digest-crossdev-0.9.9-r1 index e69de29bb2d1..e69de29bb2d1 100644 --- a/sys-devel/crossdev/files/digest-crossdev-0.9.9 +++ b/sys-devel/crossdev/files/digest-crossdev-0.9.9-r1 |