The new beta for sun-jdk is out, and therefore it seems you can't d/l the old beta. Anyway, the ebuild for sun-jdk needs updating. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 32298 [details] Ebuild for sun-jdk-1.5.0_beta2 Modified for the beta 1 ebuild. The jar unpack in src_unpack now seems unnecessary. The workdir needed modification as well.
*** Bug 52537 has been marked as a duplicate of this bug. ***
*** Bug 52724 has been marked as a duplicate of this bug. ***
Created attachment 32501 [details] do not use - contains error don't know whats going on at sun that they do not have a consistent naming scheme for their distribution files. last time (beta1) it was "j2dsk-" (the jdk-naming since 1.2.2) now its the old one ('deprecated'?) "jdk-". Dont they have automated distribution tools?
Created attachment 32502 [details] Updated ebuild - x86 filename finally corrected ok this was my fault. i forgot to add the little 2 after beta. sorry.
The attached ebuild fails to unpack the tools.pack and rt.pack meaning it cannot be used
Created attachment 32504 [details] environment settings for jdk1.5.0 beta2 this file is needed in the 'files' directory inside the package directory sun-jdk. btw: the path "${JAVA_HOME}/javaws" is not needed for 1.5. webstart is inside the bin directory too.
when emerging i get several errors: cp: could not get owner for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/lib/i386/client/libjsig.so : file or directory not found cp: could not get owner for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/lib/i386/server/libjsig.so : file or directory not found cp: could not get owner for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/man/ja: file or directory not found mozilla /usr/sbin/ebuild.sh: line 73: /usr/local/portage/dev-java/sun-jdk/files/sun-jdk-1.5.0_beta2: file or directory not found (i have manually translated the error messages) all mentioned files are actually symlinks. they are however copied and nothing is wrong but it would be nice if someone could modify the ebuild that these errors do not occur.
As Daniel Massie reported tools.pack and rt.pack are not unpacked I continue: There are several other *.pack files which arent unpacked. Is this 'pack200' which packs java classes to 1/8 of they original file size as stated on several sites? A warning message should be added to the build script that beta2's java compiler uses "-source 1.5" as default! This may be very problematic because in 1.5 several identifiers have been added which makes several existing java project incompatible. eg. apache axis uses 'enum' as package identifier which is forbidden with '-source 1.5' (a warning is displayed when using a smaller version)
this are the errors i get when trying to emerge on amd64 >>> Install sun-jdk-1.5.0_beta2 into /var/tmp/portage/sun-jdk-1.5.0_beta2/image/ category dev-java cp: failed to preserve ownership for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/lib/amd64/server/libjsig.so: No such file or directory cp: failed to preserve ownership for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/man/ja: No such file or directory * No plugin available for amd64 arch sed: can't read /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/plugin/desktop/sun_java.desktop: No such file or directory * Sorry no kde, gnome support for your arch now. /usr/sbin/ebuild.sh: line 73: /usr/local/portage/dev-java/sun-jdk/files/sun-jdk-1.5.0_beta2: No such file or directory
Wrt the kde/gnome support, there's an explicit test for x86 in the ebuild for something related to sun java desktop. I'm unsure if it would work for amd64 or if it's required.
Created attachment 32516 [details] Updated ebuild file Drawing on the other attachments in this list, I've modified the ebuild to now do the unpacking required. The unpack command, unpack200 was located in the bin directory. I've also added in amd64 for the kde/gnome integration and for copying over the src.zip file. I still get this problem (as others have) for amd64: cp: failed to preserve ownership for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/lib/amd64/server/libjsig.so: No such file or directory
Comment on attachment 32516 [details] Updated ebuild file D'oh. The gnome/kde integration doesn't work for amd64 as the file it's looking for doesn't exist - it slipped passed me. I'll modify and reattach a new ebuild
Created attachment 32517 [details] Updated ebuild - uses unpack200, etc. See my previous comments.
ping? what's the status on the new release? i want to see if it fixes a large number of problems that the earlier beta and even blackdown has. we only have 64bit java betas and release candidates on amd64. :/
Created attachment 33038 [details] updated ebuild containing warning latest ebuild works for me but I added warning message because of implicit '-source 1.5' in this beta.
i hope nobody kills me for this, but i've committed an ebuild for the new beta. both main java devs are apparently busy with real life things :)