<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>26925</bug_id>
          
          <creation_ts>2003-08-19 06:36 0000</creation_ts>
          <short_desc>Java plugin doesn&apos;t work on Mozilla/SPARC</short_desc>
          <delta_ts>2006-02-04 06:05:29 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>Sparc</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gustavoz@gentoo.org</reporter>
          <assigned_to>sparc@gentoo.org</assigned_to>
          <cc>java@gentoo.org</cc>
    
    <cc>todd@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2003-08-19 06:36:34 0000</bug_when>
            <thetext>Java plugin doesn&apos;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 -&gt;
/opt/blackdown-jre-1.4.1/plugin/i386/mozilla/javaplugin_oji.so
On sparc you get: javaplugin_oji.so -&gt;
/opt/blackdown-jdk-1.4.1/jre/plugin//mozilla/javaplugin_oji.so



Expected Results:  
It should be: javaplugin_oji.so -&gt;
/opt/blackdown-jdk-1.4.1/jre/plugin/sparc/mozilla/javaplugin_oji.so            
                                                                               
                                     
It&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>todd@gentoo.org</who>
            <bug_when>2003-08-19 07:56:40 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-08-19 12:16:31 0000</bug_when>
            <thetext>todd, that&apos;s cause you have &quot;cvs&quot; in FEATURES.  For a user it should download only the appropriate tarball</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2003-08-19 14:01:23 0000</bug_when>
            <thetext>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       &gt;&gt;&gt; md5 src_uri ;-) j2sdk-1.4.1-01-linux-i586-gcc3.2.bin
&gt;&gt;&gt; md5 src_uri ;-) j2sdk-1.4.1-01-linux-sparc-gcc3.2.bin
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking j2sdk-1.4.1-01-linux-sparc-gcc3.2.bin...
&gt;&gt;&gt; Source unpacked.

&gt;&gt;&gt; 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&apos;d the java team onto this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2003-08-19 14:18:00 0000</bug_when>
            <thetext>Thanks to gustavoz&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2003-08-19 14:22:59 0000</bug_when>
            <thetext>Created an attachment (id=16339)
Patch to apply Todd&apos;s changes to current 1.4.1 ebuild.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2003-08-19 14:24:04 0000</bug_when>
            <thetext>Hi Java Team, 
I&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2003-09-01 04:57:34 0000</bug_when>
            <thetext>Fixed, thanks for the bug report.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16339</attachid>
            <date>2003-08-19 14:22 0000</date>
            <desc>Patch to apply Todd&apos;s changes to current 1.4.1 ebuild.</desc>
            <filename>blackdown-jdk-1.4.1-sparc.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGJsYWNrZG93bi1qZGstMS40LjEuZWJ1aWxkLm9yaWcgICAgIDIwMDMtMDgtMTkgMTc6MjE6
MjQuMDAwMDAwMDAwIC0wNDAwCisrKyBibGFja2Rvd24tamRrLTEuNC4xLmVidWlsZCAgMjAwMy0w
OC0xOSAxNzoyMTozMC4wMDAwMDAwMDAgLTA0MDAKQEAgLTgwLDYgKzgwLDEwIEBACiAgICAgICAg
ICAgICAgICBQTEFURk9STT0iaTM4NiIKICAgICAgICBmaQoKKyAgICAgICBpZiBbICIke0FSQ0h9
IiA9ICJzcGFyYyIgXSA7IHRoZW4KKyAgICAgICAgICAgICAgIFBMQVRGT1JNPSJzcGFyYyIKKyAg
ICAgICBmaQorCiAgICAgICAgaW5zdF9wbHVnaW4gL29wdC8ke1B9L2pyZS9wbHVnaW4vJHtQTEFU
Rk9STX0vbW96aWxsYS9qYXZhcGx1Z2luX29qaS5zbwoKICAgICAgICBmaW5kICR7RH0vb3B0LyR7
UH0gLXR5cGUgZiAtbmFtZSAiKi5zbyIgLWV4ZWMgY2htb2QgK3ggXHtcfSBcOwo=
</data>        

          </attachment>
    </bug>

</bugzilla>