Bug#845270: jython: /usr/bin/jython sets broken python.home property

Gilles Filippini pini at debian.org
Tue Nov 22 19:20:24 UTC 2016


On Tue, 22 Nov 2016 00:03:48 +0100 Gilles Filippini <pini at debian.org> wrote:
> 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)))

I intend to team-upload this change in a few days if you don't object.
Please let me know.

Thanks,

_g.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 480 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161122/9b47e108/attachment.sig>


More information about the pkg-java-maintainers mailing list