From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j3P2G9l0008067 for ; Mon, 25 Apr 2005 02:16:09 GMT Received: from localhost ([127.0.0.1] helo=home.wh0rd.org) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DPt8t-00003N-8k for gentoo-dev@lists.gentoo.org; Mon, 25 Apr 2005 02:16:11 +0000 Received: (qmail 6582 invoked from network); 24 Apr 2005 22:12:54 -0400 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 24 Apr 2005 22:12:54 -0400 From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Finding GCC+GCJ greater than 3.4.2 Date: Sun, 24 Apr 2005 22:15:11 -0400 User-Agent: KMail/1.8 References: <87oec3ekhm.wl@badger.wordzoo.com> In-Reply-To: <87oec3ekhm.wl@badger.wordzoo.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504242215.11988.vapier@gentoo.org> X-Archives-Salt: 81e0459a-5095-4c6a-8ff0-18088434c551 X-Archives-Hash: dc227324d4f568c1c40f2116f9efabd1 On Sunday 24 April 2005 09:03 pm, Jared Rhine wrote: > #pkg_setup() { > # if [[ ! $(built_with_use gcc gcj) ]] ; then > # eerror 'Chandler build requires that GCC be built with the "gcj" > USE flag' # die "exiting because of GCJ dependency" > # fi > #} first, that if statement is straight up wrong ... it should be (syntax wise): if built_with_use gcc gcj ; then to address the version issue, try something like: local gccpkg=$(best_version '>=sys-devel/gcc-3.4.2') if built_with_use ${gccpkg} gcj ; then > My goal is to make this ebuild find and use a working GCC if it is > present, even in the presence of slots and mixed use flags. i'd say make the user run `gcc-config` themselves before emerging -mike -- gentoo-dev@gentoo.org mailing list