After working on the build process for almost 2 hours I successfully got the ebuild to work by solving the 2 bugs apparently associated with it. 1. issues with partitions lower than 1GB 2. issues with ALT_BOOTDIR not working. I fixed the first bug by simply moving the portage tmp dir to another partition that was of 6GBs of space and that solved that issue. Next I copied this lib file "libstdc++-libc6.1-1.so.2" to the $JAVA_HOME/jre/lib/i386 folder to 'trick' it into thinking I had a gcc 2.x build. After that the ebuild worked beautifully.
/usr/lib/libstdc++-libc6.1-1.so.2 is provided by sys-libs/lib-compat-1.0-r2, so I guess we need to depend on that and have the ebuild do the copying trick. I guess this is PreZ's child, so I'm Cc-ing him. If he decides not to pick it up, I'll see if I can't fix it.
I did more additional stress testing on the ebuild solution to make sure it worked on 3 workstations. 2 of the 3 workstations had a sucessful j2sdk build however on the 3rd machine just before the end of the src_install() process it died. The error concerned a part of the make process in the j2ee folder I do not have the snippet anymore ( lost it to a power outage doh! ) but it means the ebuild works somewhat well. At least this is better results then it not working at all.
Created attachment 5456 [details] sun-j2sdk.tbz2 This is a working java source ebuild, as long as you have * sun-jdk as your java compiler and interpreter * enough disk space ~ 1.5Gb I have tested it with gcc-3.2 and glibc-2.3.1 ( glibc 2.2.5 will not be a problem) With this ebuild the mozilla java plugin works for me (the aim). Included is the ebuild, and patches to enable it to compile with the most up to date tools. Stefan (The Cretin on IRC)
Due to the lack of bug reports and positve feedback I guess the ebuild works, closing the bug.