Bug#845270: jython: /usr/bin/jython sets broken python.home property
Gilles Filippini
pini at debian.org
Mon Nov 21 23:03:48 UTC 2016
Package: jython
Version: 2.5.3-11
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
/usr/bin/jython should set python.home = '/usr/share/jython', but it uses dirname(dirname($0)) instead, which returns '/usr'.
This setting comes from #705146, to support virtualenv. But it is incorrect when jython is launched directly: it then fails to found its system-wide registry at ${python.home}/registry.
A setting compatible with both use cases would be:
* install the jython launcher into /usr/share/jython/bin
* make /usr/bin/jython a symlink to /usr/share/jython/bin/jython
* replace dirname(dirname($0)) with dirname(dirname(abs_path($0)))
Thanks,
_g.
- -- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages jython depends on:
ii antlr3.2 3.2-14
ii default-jre-headless [java5-runtime-headless] 2:1.8-57
ii libasm3-java 3.3.2-3
ii libguava-java 19.0-1
ii libjffi-java 1.2.7-10
ii libjline-java 1.0-2
ii libjnr-constants-java 0.8.6-8
ii libjnr-netdb-java 1.1.6-1
ii libjnr-posix-java 3.0.12-2
ii libjnr-x86asm-java 1.0.2-5
ii liblivetribe-jsr223-java 2.0.6-1
ii libreadline-java 0.8.0.1+dfsg-4+b2
ii openjdk-8-jre-headless [java5-runtime-headless] 8u111-b14-2
pn python:any <none>
Versions of packages jython recommends:
ii default-jdk 2:1.8-57
ii openjdk-8-jdk [java-compiler] 8u111-b14-2
Versions of packages jython suggests:
ii jython-doc 2.5.3-11
pn libmysql-java <none>
pn libpostgresql-jdbc-java <none>
- -- Configuration Files:
/etc/jython/jython.conf changed [not included]
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCAAGBQJYM31KAAoJEO/obGx//s+D0PIH/37YT3SoxBmYdgKvIuE03z7N
CGtwNrFjR0jaUwj3gLtbPntK8NvKpeFbLAorMJi0owSvOZVRiFCFH3TSTjfOmN3x
gGm93OW/s/jyYWv5VR/5CxOJLg9evmU31/4w/Wii8tRm9mnvNgWiVbSfAXYZ/pd7
caj8LPsty7BqMn/bC9pL7Km0f3UKYuVtwusfYSDqeH1KNeM1Eyc+SQ0D8HPIx9IE
NpaXGNNAofgyZpIqLrH9xzQlcGo4TXSrAUkKksBOe1OpInM0jjVhlnzoP8s2wH6X
m5PkXoqtshM95/C+aeyYdVdxuqAtA+meUMonS0cONrD5gKX+nMDnqlnk6u9hD0M=
=8Na/
-----END PGP SIGNATURE-----
More information about the pkg-java-maintainers
mailing list