Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26925 - Java plugin doesn't work on Mozilla/SPARC
Summary: Java plugin doesn't work on Mozilla/SPARC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High major (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-19 06:36 UTC by Gustavo Zacarias (RETIRED)
Modified: 2006-02-04 06:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to apply Todd's changes to current 1.4.1 ebuild. (blackdown-jdk-1.4.1-sparc.patch,446 bytes, text/plain)
2003-08-19 14:22 UTC, Jason Wever (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Zacarias (RETIRED) gentoo-dev 2003-08-19 06:36:34 UTC
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.
Comment 1 Todd Sunderlin (RETIRED) gentoo-dev 2003-08-19 07:56:40 UTC
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.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-08-19 12:16:31 UTC
todd, that's cause you have "cvs" in FEATURES.  For a user it should download only the appropriate tarball
Comment 3 Jason Wever (RETIRED) gentoo-dev 2003-08-19 14:01:23 UTC
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.
Comment 4 Jason Wever (RETIRED) gentoo-dev 2003-08-19 14:18:00 UTC
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.
Comment 5 Jason Wever (RETIRED) gentoo-dev 2003-08-19 14:22:59 UTC
Created attachment 16339 [details]
Patch to apply Todd's changes to current 1.4.1 ebuild.
Comment 6 Jason Wever (RETIRED) gentoo-dev 2003-08-19 14:24:04 UTC
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.
Comment 7 Jason Wever (RETIRED) gentoo-dev 2003-09-01 04:57:34 UTC
Fixed, thanks for the bug report.