/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.
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. >>>
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 :(