Bug#845360: jython: the default cachedir path should be set at the library intialization step
Gilles Filippini
pini at debian.org
Tue Nov 22 19:15:40 UTC 2016
Package: jython
Version: 2.5.3-11
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
The jython launcher currently forces the cachedir to $HOME/.jython-cache. But when the library is used directly the cachedir is still set from the upstream default in src/org/python/core/PySystemState.java:
protected static final String CACHEDIR_DEFAULT_NAME = "cachedir";
Which results in the non-writable path /usr/share/jython/cachedir.
I think it would be more consistent to change the default directly into the PySystemState class and drop the corresponding configuration from the launcher.
Please see the attached patch proposal. I'm willing to team-upload it in a few days, unless you object.
thanks,
- -- 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)
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCAAGBQJYNJlRAAoJEO/obGx//s+DjpgH/3cSm00TLH4+AhQ/Slv5PpGb
1nunZGfS/sBsKPezfGayNhezZCiWE+BFjUyi8ErL/Gb7hiHEGDGdBZYanJcAgQc8
XzyoIvXdVn3UuoZ0Uwlic5EMGNdgh/8uZNVs/ZhommZHs+VxuDDjATP0IAZ2pPhY
wH13hX4amZ7LVliTbKoCV6Wip4cookjdROyxvf5Q7sMVIpdZA6hWtc5RdczONF0j
cgXjnwWEc3aZEw6yEk12ZMcsEY40HmrE9lRtHL6AqPXj0ZUhvX+Lrt5HlgxfRf7m
QsFJz85HID0ZxCJCqCkIed13IuQ7xxWaHo1N9Hoeh/tU3Wok4FbK7vLwnxLrpb8=
=D7MZ
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jython_2.5.3-11.1.debdiff
Type: text/x-diff
Size: 4063 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161122/d5bcf418/attachment.diff>
More information about the pkg-java-maintainers
mailing list