<?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>118863</bug_id>
          
          <creation_ts>2006-01-13 03:37 0000</creation_ts>
          <short_desc>rhino installs jsscript with bad java-config reference</short_desc>
          <delta_ts>2006-01-15 10:52:16 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>Development</component>
          <version>2005.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>akos@maroy.hu</reporter>
          <assigned_to>java@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>akos@maroy.hu</who>
            <bug_when>2006-01-13 03:37:50 0000</bug_when>
            <thetext>after installing rhino, one gets a /usr/bin/jsscript like the following:

#!/bin/sh
exec $(java-config --java) -classpath $(java-config --classpath=rhino) org.mozilla.javascript.tools.shell.Main $@


the problem is, that java-config refers to the rhino package not as rhino, but as rhino-1.x:

$ java-config -l | grep rhino
[rhino-1.5] Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users (/usr/share/rhino-1.5/package.env)
[rhino-1.6] Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users (/usr/share/rhino-1.6/package.env)


thus the above jsscript will never find the rhino package, as:

$ java-config --classpath=rhino
Could not find package rhino


though the following works:

$ java-config --classpath=rhino-1.6
/usr/share/rhino-1.6/lib/js.jar


fixing this is simple, just add the version number into the jsscript script...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nichoj@gentoo.org</who>
            <bug_when>2006-01-15 10:52:16 0000</bug_when>
            <thetext>Fixed in CVS. Thanks for reporting.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>