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 | 6824c0c24578dd2a2c11fac36212e9a0cd49074b (patch) | |
tree | 1ca42a0552b229dfb07307279826c284f0fc7271 /sys-devel/crossdev | |
parent | version bump; 1.3.14 is security fix only and 1.4.8 is security fix *and* min... (diff) | |
download | gentoo-2-6824c0c24578dd2a2c11fac36212e9a0cd49074b.tar.gz gentoo-2-6824c0c24578dd2a2c11fac36212e9a0cd49074b.tar.bz2 gentoo-2-6824c0c24578dd2a2c11fac36212e9a0cd49074b.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.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-devel/crossdev')
-rw-r--r-- | sys-devel/crossdev/ChangeLog | 10 | ||||
-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 |
4 files changed, 50 insertions, 32 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/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 |