Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147243 - jython-2.1-r9 java launcher launches jythonc
Summary: jython-2.1-r9 java launcher launches jythonc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-11 17:16 UTC by Joel
Modified: 2006-09-12 01:10 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 Joel 2006-09-11 17:16:23 UTC
/usr/bin/jython launches jythonc instead of jython in 2.1-r9

# jython server.py
processing server

Required packages:

Creating adapters:

Creating .java files:
  metamacs_server module

Compiling .java to .class...
....

The output is identical to jythonc and does not launch any code.  
Looking at /usr/bin/jython, I also suspect that libreadline-java has been left out as well.
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-11 23:26:01 UTC
Can't reproduce here:

caster@gehinom ~ $ jython helloworld.py
Hello World
caster@gehinom ~ $ jythonc helloworld.py
processing helloworld

Required packages:

Creating adapters:

Creating .java files:
  helloworld module

Compiling .java to .class...
Compiling with args: ['/opt/sun-jdk-1.6.0.0_beta98/bin/javac', '-classpath', '.:/usr/share/jython/lib/jython.jar:/usr/share/libreadline-java/lib/libreadline-java.jar:./jpywork::/usr/share/jython/tools/jythonc:/home/caster/.:/usr/share/jython/Lib', './jpywork/helloworld.java']
0

# cat /usr/bin/jython
#!/bin/bash
gjl_main="org.python.util.jython"
gjl_java_args="-Dpython.home="/usr/share/jython""
gjl_package=jython
source /usr/share/java-config-2/launcher/launcher.bash

libreadline-java is added automagically by launcher.bash. you can verify by running
$ GJL_DEBUG=1 jython
Using:
Running: exec java  -classpath .:/usr/share/jython/lib/jython.jar:/usr/share/libreadline-java/lib/libreadline-java.jar -Djava.library.path=/usr/lib/libreadline-java -Dpython.home=/usr/share/jython org.python.util.jython
Jython 2.1 on java1.6.0-rc (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>>



Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-12 01:10:32 UTC
Ok I found this to be caused by recent changes to java-utils-2.eclass. Consequent calls to dolauncher in ebuild were repeating variable assignments from previous calls, so jython launcher really picked up jythonc's gjl_pkg_args="/usr/share/jython/tools/jythonc/jythonc.py" and behaved the same. I fixed the eclass and revbumped jython to ensure everyone gets the fix. Please sync in few hours and update jython. Thanks for reporting, I hope not much other stuff got broken the same way :(