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.60) (envelope-from ) id 1FvilR-0003I2-CO for garchives@archives.gentoo.org; Wed, 28 Jun 2006 22:44:05 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k5SMgw7a000652; Wed, 28 Jun 2006 22:42:58 GMT Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.198]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k5SMgvd3021930 for ; Wed, 28 Jun 2006 22:42:57 GMT Received: by wx-out-0102.google.com with SMTP id t5so1039401wxc for ; Wed, 28 Jun 2006 15:42:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dd6H0yyxRIUUIbCI0p1vSHvGrBJIauq87iujEGv9v6sPQrH+RbtFe9vEXgdbJgSaM/nX4p+/hNLk5wcgEjmSGKT16VsdGDtx1CS3QTy3I4lCZUx6Jy3q7Smd/T8e7dPPwI7X+7qtuDWxSecRojQbooHc864gsv0AOT8ir+GwZF8= Received: by 10.70.47.5 with SMTP id u5mr2061809wxu; Wed, 28 Jun 2006 15:42:55 -0700 (PDT) Received: by 10.70.63.16 with HTTP; Wed, 28 Jun 2006 15:42:55 -0700 (PDT) Message-ID: <254054bc0606281542u70501ce0u13f468b6fdfc77a4@mail.gmail.com> Date: Thu, 29 Jun 2006 00:42:55 +0200 From: "Wiktor Wandachowicz" To: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] migration-overlay entering main tree In-Reply-To: <44A2A3C7.2000408@gentoo.org> 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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <449F020F.7010208@gentoo.org> <200606261604.53701.ivan@yosifov.net> <449FDD87.3080909@gentoo.org> <44A06F50.6070806@seznam.cz> <44A2A3C7.2000408@gentoo.org> X-Archives-Salt: de4fe22f-61ab-4943-a807-8b3b6e6ac653 X-Archives-Hash: 660d67c8732149e27d4816cacb642557 Here are my experiences with Java upgrade on a second machine, done step after step like in the Java Upgrade Guide. Sorry for the length, but I wanted to be as specific as possible. After unmasking packages, I removed sun-jdk-1.4*, sun-jdk-1.5* and java-config. Then I emerged java-config-1* and java-config-2*. All was fine. After emerging the first JVM I've noticed an error: # emerge -av =sun-jdk-1.4* ... !!! ERROR: The active vm could not be found * After installing sun-jdk-1.4.2.12 this * was set as the default JVM to run. * No valid generation-1 system-vm set, setting to sun-jdk-1.4.2.12 Nothing serious that a simple "/usr/sbin/env-update && source /etc/profile" couldn't resolve. And only after two last commands the "java-check-environment" was able to report success with generation_1_system_vm. I double checked via "java-config-1 -L" and "java-config-2 -L" that only one JVM was present at the moment. All was fine. Then I emerged sun-jdk-1.5 and run the "java-1.5-fixer". Now it became interesting, because the tool reported *twice* missing packages: # java-1.5-fixer * You need to emerge portage-utils. # emerge -av portage-utils * You need to emerge >=javatoolkit-0.1.6 # emerge -av javatoolkit # java-1.5-fixer Well, that's was a little surprise, because the Guide didn't mention these two packages at all. Not actually confusing for me, but the Guide could at least explain that need. Less fluent Gentooers can be surprised and completely unnecessary topics on the forums may arise. Another intriguing thing was the output while emerging javatoolkit. I've seen: ... >>> /usr/share/doc/javatoolkit-9.9.9/ >>> /usr/share/doc/javatoolkit-9.9.9/sun-fetch/ >>> /usr/share/doc/javatoolkit-9.9.9/sun-fetch/AUTHORS >>> /usr/share/doc/javatoolkit-9.9.9/sun-fetch/README >>> /usr/share/doc/javatoolkit-9.9.9/COPYING >>> /usr/share/doc/javatoolkit-9.9.9/NEWS >>> /usr/share/doc/javatoolkit-9.9.9/findclass/ >>> /usr/share/doc/javatoolkit-9.9.9/findclass/AUTHORS >>> /usr/share/doc/javatoolkit-9.9.9/findclass/README >>> /usr/share/doc/javatoolkit-9.9.9/AUTHORS >>> /usr/share/doc/javatoolkit-9.9.9/README >>> /usr/share/doc/javatoolkit-9.9.9/ChangeLog >>> /usr/share/doc/javatoolkit-9.9.9/TODO even though I installed javatoolkit-0.1.9 and not -0.9.9 Last problematic thing I've noticed was the number and order of packages java-fixer was about to repair: # java-1.5-fixer * Generating a list of jars which ant uses ... [ ok ] * Checking for > 1.4 bytecode in ant jars ... [ ok ] * Generating a list of jars in the system ... [ ok ] * Checking for > 1.4 bytecode in system jars ... [ ok ] * Attempting to fix broken packages ... * Packages to fix this run: =dev-db/hsqldb-1.7.3.1-r2 =dev-db/hsqldb-1.7.3.1-r2 =dev-db/hsqldb-1.7.3.1-r2 =dev-java/servletapi-2.3-r2 =sys-libs/db-4.3.29 I turned out that even though hsqldb was listed three times, it still depended on servletapi, which was scheduled fourth. So it broke: classes: [javac] Compiling 111 source files to /var/tmp/portage/hsqldb-1.7.3.1-r2/work/hsqldb/classes [javac] /var/tmp/portage/hsqldb-1.7.3.1-r2/work/hsqldb/src/org/hsqldb/Servlet.java:73: cannot access javax.servlet.ServletConfig [javac] bad class file: /var/tmp/portage/hsqldb-1.7.3.1-r2/work/hsqldb/lib/servlet.jar(javax/servlet/ServletConfig.class) [javac] class file has wrong version 49.0, should be 48.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] import javax.servlet.ServletConfig; [javac] ^ [javac] 1 error I needed to remerge servletapi manually and restart java-1.5-fixer. Which, of course, built hsqldb three times :-( Which was, of course, unnecessary. How about at least making the packages that java-1.5-fixer is going to fix unique? And how about figuring a better ordering of packages? After all the above I think I've finally migrated my machine to Generation-2. Whoopiee! In general all was fun and problems were minor IMHO. But migration was not automatic, like some users would like it to see. Maybe some things coul dbe improved before stabilization? HTH, Wiktor Wandachowicz -- Registered Linux user #390131 (http://counter.li.org) -- gentoo-java@gentoo.org mailing list