From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FUPEm-0002vA-38 for garchives@archives.gentoo.org; Fri, 14 Apr 2006 14:25:28 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k3EEPkRv027321; Fri, 14 Apr 2006 14:25:46 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k3EEPjP5008354 for ; Fri, 14 Apr 2006 14:25:45 GMT Received: from nproxy.gmail.com ([64.233.182.185]) by smtp.gentoo.org with esmtp (Exim 4.54) id 1FUPF2-0000mm-Ny for gentoo-java@lists.gentoo.org; Fri, 14 Apr 2006 14:25:44 +0000 Received: by nproxy.gmail.com with SMTP id c31so49889nfb for ; Fri, 14 Apr 2006 07:25:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=lItCJL2s9FRVXc9hBxEWcU86iFc+X9fPIh9MmFT5GT82u07fjdViPPGkRVE9jPl1FCD/De2Cb5reuMqGBQ5eUsoasJpMPX13OJ6rcBwvYAM9qNoJUnXMW+yUcsQW6aG4OeV3LgL+c9wEKS3o97ihR3O/jf9wph2adhMwtSERVDM= Received: by 10.48.206.7 with SMTP id d7mr449332nfg; Fri, 14 Apr 2006 07:25:43 -0700 (PDT) Received: from portatil ( [83.54.245.16]) by mx.gmail.com with ESMTP id i1sm1793268nfe.2006.04.14.07.25.23; Fri, 14 Apr 2006 07:25:43 -0700 (PDT) Subject: Re: [gentoo-java] Re: problems compiling junit From: Henrique Ferreiro To: gentoo-java@lists.gentoo.org In-Reply-To: <443EFB00.3080309@gentoo.org> References: <1144843758.6927.10.camel@localhost> <1144846384.6927.18.camel@localhost> <1144889890.10780.0.camel@localhost> <443DD5C9.4010401@gentoo.org> <443DE9CB.2050205@severinsson.net> <1144929960.26742.3.camel@localhost> <443E3750.4030400@severinsson.net> <1144932831.26742.8.camel@localhost> <443E3EA6.4040709@severinsson.net> <1144937353.26742.19.camel@localhost> <443EFB00.3080309@gentoo.org> Content-Type: text/plain; charset=UTF-8 Date: Fri, 14 Apr 2006 17:24:06 +0200 Message-Id: <1145028246.26742.25.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k3EEPkSL027321 X-Archives-Salt: c02b9f3e-6301-4947-88fa-5afb9fcbbd3f X-Archives-Hash: 589827e90357e8955769e68a75c4143c Thank you very much. I unmerged and merged junit successfully. I am using java-1.5-fixer from migration overlay. It seems that it does not unmerge the offending packages first. When are you going to do another release? O Xov, 13-04-2006 =C3=A1s 20:29 -0500, Joshua Nichols escribiu: > Henrique Ferreiro wrote: > >>>> I did not modify jdk.conf. Every line is commented. > >> Then ant-core, as well as junit, should be build with 1.4. Is that t= he case? > > No. ant-core is being built with jdk-1.5. Anyway junit does not compi= le using=20 > > 1.4 with ant-core. > >=20 > >=20 >=20 >=20 > Alright... I'm pretty sure what the problem is. If you take a look at > /usr/bin/ant... at some point, it pulls in a bunch of jars from several > packages. This is necessary to make sure that all the ant tasks work > properly. One of these happens to be junit.... >=20 >=20 > So what I believe is happening... you have junit installed (and built > with 1.5), then go to rebuild with 1.4. The ebuild calls ant, which > pulls in junit compiled with 1.5 onto the classpath. When javac tries t= o > resolve junit classes... it's getting them from the 1.5-built junit, > instead of the junit which is being built. So, the workaround would be > to unmerge junit before trying to rebuidl it with 1.4. >=20 > Essentially, this problem comes down to who we handle /usr/bin/ant, and > how it pulls in all its dependencies. It is currently hardcoded to brin= g > in certain packages, which is less than ideal, because we need to have > fine-grain control over the classpath. In particular, when building > packages, we don't want to include the already-compiled version that is > living on the system. >=20 > Aside from this, I recommend you try the java-1.5-fixer I posted in a > different thread. It actually goes through all of ant's dependencies, > and if any were built with 1.5, will unmerge them, and merge them again. >=20 > Hope this helps, >=20 > Josh --=20 gentoo-java@gentoo.org mailing list