Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/crossdev/files: crossdev
Date: Fri, 28 Nov 2008 09:21:12
Message-Id: E1L5zXC-0005Fm-9K@stork.gentoo.org
1 vapier 08/11/28 09:21:10
2
3 Modified: crossdev
4 Log:
5 Initial cygwin support.
6 (Portage version: 2.2_rc16/cvs/Linux 2.6.27.4 x86_64)
7
8 Revision Changes Path
9 1.109 sys-devel/crossdev/files/crossdev
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/crossdev/files/crossdev?rev=1.109&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/crossdev/files/crossdev?rev=1.109&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/crossdev/files/crossdev?r1=1.108&r2=1.109
14
15 Index: crossdev
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v
18 retrieving revision 1.108
19 retrieving revision 1.109
20 diff -u -r1.108 -r1.109
21 --- crossdev 27 Oct 2008 05:57:43 -0000 1.108
22 +++ crossdev 28 Nov 2008 09:21:10 -0000 1.109
23 @@ -1,7 +1,7 @@
24 #!/bin/bash
25 # Copyright 1999-2007 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.108 2008/10/27 05:57:43 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.109 2008/11/28 09:21:10 vapier Exp $
29
30 cd /
31 umask 0022 #159111
32 @@ -148,6 +148,10 @@
33 LCAT="dev-embedded"; LPKG="avr-libc";
34 GUSE=${GUSE_DISABLE};;
35
36 + # due to upstream lameness, build C/C++ at first glance
37 + *-cygwin)
38 + GUSE_DISABLE=${GUSE_DISABLE/nocxx};;
39 +
40 mingw*|*-mingw*)
41 WITH_DEF_HEADERS="yes";
42 KCAT="dev-util"; KPKG="w32api";
43 @@ -197,6 +201,12 @@
44 *-uclibc*) LPKG="uclibc";;
45 *-uclinux) LPKG="uclibc";;
46
47 + # Windows targets
48 + *-cygwin)
49 + LCAT="dev-libs"; LPKG="cygwin";
50 + KPKG="[none]";
51 + ;;
52 +
53 # Bare metal targets
54 *-newlib|*-elf)
55 LPKG="newlib"
56 @@ -210,6 +220,8 @@
57 KPKG="[none]"
58 ;;
59 esac
60 +
61 + : ${LPKG=[none]}
62 }
63
64 setup_portage_vars() {
65 @@ -329,8 +341,9 @@
66 KCAT="sys-kernel" ; KPKG="linux-headers" ; KVER="" ; KUSE=""
67 LCAT="sys-libs" ; LPKG="" ; LVER="" ; LUSE=""
68 DEFAULT_VER="[latest]"
69 -GUSE_DISABLE="-boundschecking -d -fortran -gtk -gcj -libffi -mudflap -objc -objc++ -objc-gc -openmp"
70 +GUSE_DISABLE="-boundschecking -d -fortran -gtk -gcj -libffi -mudflap nocxx -objc -objc++ -objc-gc -openmp"
71 GUSE_DISABLE_STAGE_2=${GUSE_DISABLE/-fortran}
72 +GUSE_DISABLE_STAGE_2=${GUSE_DISABLE_STAGE_2/nocxx}
73 WITH_HEADERS="COW" WITH_DEF_HEADERS="yes" #227065 gcc-4.3+ is a pita w/out headers
74 EX_FAST="no"
75 EX_GCC="no"
76 @@ -616,7 +629,7 @@
77 USE="${LUSE} ${USE}" CROSSCOMPILE_OPTS="headers-only" \
78 doemerge ${LPKG} ${LPKG}-headers
79 fi
80 -USE="${GUSE} ${USE} ${GUSE_DISABLE} nocxx" CROSSCOMPILE_OPTS="bootstrap" \
81 +USE="${GUSE} ${USE} ${GUSE_DISABLE}" CROSSCOMPILE_OPTS="bootstrap" \
82 doemerge ${GPKG} ${GPKG}-stage1
83
84 is_s2 || exit 0