Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Finding GCC+GCJ greater than 3.4.2
Date: Mon, 25 Apr 2005 02:16:09
Message-Id: 200504242215.11988.vapier@gentoo.org
In Reply to: [gentoo-dev] Finding GCC+GCJ greater than 3.4.2 by Jared Rhine
1 On Sunday 24 April 2005 09:03 pm, Jared Rhine wrote:
2 > #pkg_setup() {
3 > # if [[ ! $(built_with_use gcc gcj) ]] ; then
4 > # eerror 'Chandler build requires that GCC be built with the "gcj"
5 > USE flag' # die "exiting because of GCJ dependency"
6 > # fi
7 > #}
8
9 first, that if statement is straight up wrong ... it should be (syntax wise):
10 if built_with_use gcc gcj ; then
11
12 to address the version issue, try something like:
13 local gccpkg=$(best_version '>=sys-devel/gcc-3.4.2')
14 if built_with_use ${gccpkg} gcj ; then
15
16 > My goal is to make this ebuild find and use a working GCC if it is
17 > present, even in the presence of slots and mixed use flags.
18
19 i'd say make the user run `gcc-config` themselves before emerging
20 -mike
21 --
22 gentoo-dev@g.o mailing list