Java plugin doesn't work on Mozilla on SPARC. Fix is minor, just a symlink problem, but dunno in which ebuild this is taken care of. Reproducible: Always Steps to Reproduce: Java plugin is incorrectly symlinked in mozilla. On i386 you get: javaplugin_oji.so -> /opt/blackdown-jre-1.4.1/plugin/i386/mozilla/javaplugin_oji.so On sparc you get: javaplugin_oji.so -> /opt/blackdown-jdk-1.4.1/jre/plugin//mozilla/javaplugin_oji.so Expected Results: It should be: javaplugin_oji.so -> /opt/blackdown-jdk-1.4.1/jre/plugin/sparc/mozilla/javaplugin_oji.so It's missing the ARCH variable when getting installed it seems. Versions: mozilla-1.4-r3, blackdown-jdk-1.4.1, java-config 0.2.8-r1.
I gave a shot at re-working this ebuild, there was what looked like an issue defining the PLATFORM variable. Can someone test this out for me to see if it works properly? http://dev.gentoo.org/~todd/blackdown-jdk-1.4.1.ebuild Added lines to check for the platform, and define the platform variable to install into the proper location. Another part I noticed, was that it downloads both the i586 and sparc binaries. Need to look into this, and see how to fix it. Any help would be appreciated.
todd, that's cause you have "cvs" in FEATURES. For a user it should download only the appropriate tarball
Todd, It appears your modifications work, however something is still not working right there at the end of the ebuild. excelsior blackdown-jdk # ebuild blackdown-jdk-1.4.1.ebuild clean install >>> md5 src_uri ;-) j2sdk-1.4.1-01-linux-i586-gcc3.2.bin >>> md5 src_uri ;-) j2sdk-1.4.1-01-linux-sparc-gcc3.2.bin >>> Unpacking source... >>> Unpacking j2sdk-1.4.1-01-linux-sparc-gcc3.2.bin... >>> Source unpacked. >>> Install blackdown-jdk-1.4.1 into /var/tmp/portage/blackdown-jdk-1.4.1/image/ category dev-java cp: failed to preserve ownership for /var/tmp/portage/blackdown-jdk-1.4.1/image//opt/blackdown-jdk-1.4.1/jre/lib/sparc/server/libjsig.so: No such file or directory cp: failed to preserve ownership for /var/tmp/portage/blackdown-jdk-1.4.1/image//opt/blackdown-jdk-1.4.1/jre/lib/sparc/client/libjsig.so: No such file or directory cp: failed to preserve ownership for /var/tmp/portage/blackdown-jdk-1.4.1/image//opt/blackdown-jdk-1.4.1/man/ja: No such file or directory * Not creating symlink for the plugin, because one already exists /usr/sbin/ebuild.sh: line 67: /usr/local/portage/dev-java/blackdown-jdk/files/blackdown-jdk-1.4.1: No such file or directory !!! ERROR: dev-java/blackdown-jdk-1.4.1 failed. !!! Function set_java_env, Line 73, Exitcode 1 !!! (no error message) CC'd the java team onto this.
Thanks to gustavoz's suggestion of copying the files/ dir for blackdown-jdk over into my $PORTDIR_OVERLAY this works just fine and the error messages go away.
Created attachment 16339 [details] Patch to apply Todd's changes to current 1.4.1 ebuild.
Hi Java Team, I've attached a patch to this bug to fix up blackdown-jdk-1.4.1 so it works correctly for sparc. Please review and comment. Thanks.
Fixed, thanks for the bug report.