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 1FU03r-0001k6-7g for garchives@archives.gentoo.org; Thu, 13 Apr 2006 11:32:31 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k3DBWkBE000684; Thu, 13 Apr 2006 11:32: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 k3DBWjY6016714 for ; Thu, 13 Apr 2006 11:32:45 GMT Received: from mxfep01.bredband.com ([195.54.107.70]) by smtp.gentoo.org with esmtp (Exim 4.54) id 1FU044-0007fV-UC for gentoo-java@lists.gentoo.org; Thu, 13 Apr 2006 11:32:45 +0000 Received: from smtp.severinsson.net ([213.112.13.225] [213.112.13.225]) by mxfep01.bredband.com with ESMTP id <20060413113243.MKOC16061.mxfep01.bredband.com@smtp.severinsson.net> for ; Thu, 13 Apr 2006 13:32:43 +0200 Received: from [192.168.80.254] (jon.computers.severinsson.net [192.168.80.254]) by smtp.severinsson.net (Postfix) with ESMTP id ACCDF280003 for ; Thu, 13 Apr 2006 13:32:43 +0200 (CEST) Message-ID: <443E3750.4030400@severinsson.net> Date: Thu, 13 Apr 2006 13:34:40 +0200 From: Jon Severinsson Organization: LiU User-Agent: Thunderbird 1.5 (X11/20060401) 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 To: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] Re: problems compiling junit 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> In-Reply-To: <1144929960.26742.3.camel@localhost> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 93d6d0c8-8223-4edd-a6a5-b54f7167ed78 X-Archives-Hash: bb572f614d7cee1f1220c0f0aba8f5ee -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> I'm running java-1.5 as a *generation 2* system vm without any >> problems. The only problem is if you at one point where using 1.5 as >> a *generation 1* system vm (e.g. before you started using the >> migration overlay). >> You can safely do "java-config-2 -S sun-jdk-1.5", as long as >> "java-config-1 -f" doesn't list a 1.5 jdk and >> /etc/java-config-2/build/jdk.conf doesn't list a 1.5 jdk for 1.4. >> (e.g. doesn't give a version if you use the *=sun-jdk syntax) > Then, the migration document should state how to set the generation-2 > system vm. It only tells about java-config-2 -s ... Perhaps it should. On the other hand you don't have to, it will be set automatically during the vm update process (which is described). java-config-2 -s is only mentioned because it differers from the plain portage case. >> Anyway I have two problems right now: >> 1. If I do java-config-2 -S sun-jdk-1.4, ant-core continues to build >> with sun-java-1.5 Because system vm has nothing to do with emerge. For that you set the build jdk. Note that system vm can be a jre or a jdk, while compilation jdk has to be a jdk. This procedure differs from a plain portage installation, and should perhaps be mentioned somewhere. >> 2. Junit does not compile even having compiled ant-core with 1.4 vm >> (I had to modify jdk.conf) The the default jdk.conf will not make 1.4 sources build with a 1.5 jdk, so you do not *have* to modify jdk.conf. However, you *must not* changee jdk.conf to an invalid state, which is currently possible (and you must have done). Perhaps there should be a warning in the sample file? (something like "# Warning: Do NOT set a 1.5 jdk for use with anything but 1.5 sources!") If Junit doesn't compile after having (re-)emerged all java-packages with a corrected jdk.conf, file a bugreport. To find all packages you have to re-emerge use java-1.5-fixer from the list. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEPjdQOOpxqcksWu4RAjjqAJ42uRyFXdqavyXNszJvqHOGiB8wTgCgnHsu wqQylcrz1/tz8ArfaK9ovoM= =bc0Z -----END PGP SIGNATURE----- -- gentoo-java@gentoo.org mailing list