<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="https://projects.gentooexperimental.org/expj/wiki/">
https://projects.gentooexperimental.org/expj/wiki/</a><br><a href="https://projects.gentooexperimental.org/expj/wiki/Using_migration-overlay">https://projects.gentooexperimental.org/expj/wiki/Using_migration-overlay</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-1.4.2.10-r11.ebuild:\<br> 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 --> 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-1.4.2.10-r11.ebuild > sun-jdk-1.4.2.10-r12.ebuild<br># ebuild sun-jdk-1.4.2.10-r12.ebuild digest
<br><br>### Emerge Generation-1 JDK:<br># emerge -av =sun-jdk-1.4.2.10*<br># env-update && . /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-1.4.2.10<br># emerge -av =sun-jdk-1.4.2.10*<br># env-update && . /etc/profile<br><br>### Add required environment variables:<br># grep PROVIDES files/sun-jdk-1.4 >> /etc/env.d/java/20sun-
jdk-1.4.2.10<br># grep BOOTCLASSPATH files/sun-jdk-1.4 >> /etc/env.d/java/20sun-jdk-1.4.2.10<br># echo "GENERATION=2" >> /etc/env.d/java/20sun-jdk-1.4.2.10<br># env-update && . /etc/profile<br>
>>> Regenerating /etc/ld.so.cache...<br> * === Java Environment Checker ===<br> * The purpose of this script is to check the sanity of your Java Environment.<br><br> * We have significantly changed and improved the way Java is handled in many respects.
<br> * Please refer to <a href="https://projects.gentooexperimental.org/expj/wiki/">https://projects.gentooexperimental.org/expj/wiki/</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> * Running as root. Don't need to check user settings.<br>Checking generation_1_system_vm<br> * 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 "1.4.2_10"<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-1.4.2.10] "Sun JDK <a href="http://1.4.2.10">1.4.2.10</a>" (/etc/env.d/java/20sun-jdk-1.4.2.10) *<br># java-config-2 -L
<br>*) Sun JDK <a href="http://1.4.2.10">1.4.2.10</a> [sun-jdk-1.4.2.10] (/etc/env.d/java/20sun-jdk-1.4.2.10)<br><br><br>I guess that the small problems (java -> 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="http://counter.li.org">http://counter.li.org</a>)</span><br style="font-family: courier new,monospace;">
|