Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-java
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-java@g.o
From: Wiktor Wandachowicz <siryes@...>
Subject: migration-overlay take three
Date: Tue, 7 Feb 2006 12:14:41 +0100
<span style="font-family: courier new,monospace;">Hello group!</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">During several last months I was testing axxo-overlay in hope to see what is
<br>interesting in there. But the gentooexperimental outage stopped me for a while.<br>Now I've found out that the new, migration-overlay is recommended:<br><br><a href=""></a><br><a href=""></a><br>
<br>Anyway, I was trying for two straight days to switch to this overlay,<br>but without success. And today I've found the solution!<br>I thought that this may be beneficial to some users/testers, so below<br>I described roughly the steps that helped me overcome the dreadful warning
<br>while emerging sun-jdk:<br><br>/usr/local/overlays/migration-overlay/dev-java/sun-jdk/sun-jdk-\<br>&nbsp;line 164: java_pkg_postinst: command not found<br><br></span><span style="font-family: courier new,monospace;">
and continuous recommendation to rebuild that package ad infinitum.<br>H</span><span style="font-family: courier new,monospace;">ere's what I did finally.<br><br><br>### Update the migration-overlay using SVN (</span><span style="font-family: courier new,monospace;">
it needs to be checked out first)</span><br><span style="font-family: courier new,monospace;"># svn up /usr/local/overlays/migration-overlay<br><br>### Make sure that sun-jdk is unmasked:<br># grep sun-jdk /etc/portage/package.keywords
<br>=dev-java/sun-jdk-1.4* ~x86<br><br>### Correct the ebuild: </span><span style="font-family: courier new,monospace;">java_pkg_postinst --&gt; java-vm-2_pkg_postinst</span><br><span style="font-family: courier new,monospace;">
# cd /usr/local/overlays/migration-overlay/dev-java/sun-jdk<br># sed 's/java_pkg_postinst/java-vm-2_pkg_postinst/' sun-jdk- &gt; sun-jdk-<br># ebuild sun-jdk- digest
<br><br>### Emerge Generation-1 JDK:<br># emerge -av =sun-jdk-*<br># env-update &amp;&amp; . /etc/profile<br><br></span><span style="font-family: courier new,monospace;">### Emerge Generation-2 JDK:<br></span><span style="font-family: courier new,monospace;">
# rm /etc/env.d/java/20sun-jdk-<br># emerge -av =sun-jdk-*<br># env-update &amp;&amp; . /etc/profile<br><br>### Add required environment variables:<br># grep PROVIDES files/sun-jdk-1.4 &gt;&gt; /etc/env.d/java/20sun-
jdk-<br># grep BOOTCLASSPATH files/sun-jdk-1.4 &gt;&gt; /etc/env.d/java/20sun-jdk-<br># echo &quot;GENERATION=2&quot; &gt;&gt; /etc/env.d/java/20sun-jdk-<br># env-update &amp;&amp; . /etc/profile<br>
&gt;&gt;&gt; Regenerating /etc/<br>&nbsp;* === Java Environment Checker ===<br>&nbsp;* The purpose of this script is to check the sanity of your Java Environment.<br><br>&nbsp;* We have significantly changed and improved the way Java is handled in many respects.
<br>&nbsp;* Please refer to <a href=""></a> for details<br><br><br>Performing the following checks: vm_environment_files user_settings generation_1_system_vm
<br><br>Checking vm_environment_files<br>Checking user_settings<br>&nbsp;* Running as root. Don't need to check user settings.<br>Checking generation_1_system_vm<br>&nbsp;* Java environment is sane. Congratulations!<br><br></span><span style="font-family: courier new,monospace;">
### Make sure everything is okay:<br>
</span><span style="font-family: courier new,monospace;"># java -version<br>java version &quot;1.4.2_10&quot;<br>Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)<br>Java HotSpot(TM) Client VM (build 
1.4.2_10-b03, mixed mode)<br># which java<br>/usr/bin/java<br># java-config-1 -L<br>[sun-jdk-] &quot;Sun JDK <a href=""></a>&quot; (/etc/env.d/java/20sun-jdk- *<br># java-config-2 -L
<br>*) Sun JDK <a href=""></a> [sun-jdk-] (/etc/env.d/java/20sun-jdk-<br><br><br>I guess that the small problems (java -&gt; java-vm-2 renaming, missing<br>env vars) will be resolved soon. I hope to see more interesting things
<br>in migration-overlay and finally in official portage tree. :-D<br><br>Friendly,<br>Wiktor Wandachowicz<br><br></span><span style="font-family: courier new,monospace;">--</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Registered Linux user #390131 (<a href=""></a>)</span><br style="font-family: courier new,monospace;">
migration-overlay (was: Re: migration-overlay take three)
-- Joshua Nichols
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Wanted: AppFuse webapplications [Auf Viren geprüft]
Next by thread:
migration-overlay (was: Re: migration-overlay take three)
Previous by date:
Wanted: AppFuse webapplications [Auf Viren geprüft]
Next by date:
migration-overlay (was: Re: migration-overlay take three)

Updated Jun 17, 2009

Summary: Archive of the gentoo-java mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.