Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118863 - rhino installs jsscript with bad java-config reference
Summary: rhino installs jsscript with bad java-config reference
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-13 03:37 UTC by Ákos Maróy
Modified: 2006-01-15 10:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ákos Maróy 2006-01-13 03:37:50 UTC
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...
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-01-15 10:52:16 UTC
Fixed in CVS. Thanks for reporting.