Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain.eclass
Date: Sun, 05 Sep 2010 05:52:54
Message-Id: 20100905055246.BAD3F20051@flycatcher.gentoo.org
1 dirtyepic 10/09/05 05:52:46
2
3 Modified: toolchain.eclass
4 Log:
5 Use ecj-4.5.jar for >=4.5 (bug #336045).
6
7 Revision Changes Path
8 1.439 eclass/toolchain.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.439&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.439&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.438&r2=1.439
13
14 Index: toolchain.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
17 retrieving revision 1.438
18 retrieving revision 1.439
19 diff -u -r1.438 -r1.439
20 --- toolchain.eclass 14 Aug 2010 01:26:05 -0000 1.438
21 +++ toolchain.eclass 5 Sep 2010 05:52:46 -0000 1.439
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.438 2010/08/14 01:26:05 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.439 2010/09/05 05:52:46 dirtyepic Exp $
27 #
28 # Maintainer: Toolchain Ninjas <toolchain@g.o>
29
30 @@ -367,9 +367,13 @@
31 # >= gcc-4.3 uses ecj.jar and we only add gcj as a use flag under certain
32 # conditions
33 if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
34 - tc_version_is_at_least "4.3" && \
35 + if tc_version_is_at_least "4.5" ; then
36 + GCC_SRC_URI="${GCC_SRC_URI}
37 + gcj? ( ftp://sourceware.org/pub/java/ecj-4.5.jar )"
38 + elif tc_version_is_at_least "4.3" ; then
39 GCC_SRC_URI="${GCC_SRC_URI}
40 gcj? ( ftp://sourceware.org/pub/java/ecj-4.3.jar )"
41 + fi
42 fi
43
44 echo "${GCC_SRC_URI}"
45 @@ -1057,9 +1061,14 @@
46 fi
47
48 # >= gcc-4.3 doesn't bundle ecj.jar, so copy it
49 - if [[ ${GCCMAJOR}.${GCCMINOR} > 4.2 ]] &&
50 - use gcj ; then
51 - cp -pPR "${DISTDIR}/ecj-4.3.jar" "${S}/ecj.jar" || die
52 + if [[ ${GCCMAJOR}.${GCCMINOR} > 4.2 ]] && use gcj ; then
53 + if tc_version_is_at_least "4.5" ; then
54 + einfo "Copying ecj-4.5.jar"
55 + cp -pPR "${DISTDIR}/ecj-4.5.jar" "${S}/ecj.jar" || die
56 + elif tc_version_is_at_least "4.3" ; then
57 + einfo "Copying ecj-4.3.jar"
58 + cp -pPR "${DISTDIR}/ecj-4.3.jar" "${S}/ecj.jar" || die
59 + fi
60 fi
61
62 # disable --as-needed from being compiled into gcc specs