Bug#857921: Unwritable cache for new jars

Gilles Filippini pini at debian.org
Mon Mar 20 20:58:05 UTC 2017


Hi,

On Thu, 16 Mar 2017 12:25:46 +0100 Ole Streicher <olebole at debian.org> wrote:
> Package: jython
> Version: 2.5.3-15
> Severity: normal
> 
> when I use jython to import from a jar as a user, I get the following
> messages:
> 
> >>> import sys
> >>> sys.path.append('/usr/share/java/adql.jar')
> >>> import adql
> *sys-package-mgr*: processing new jar, '/usr/share/java/adql-1.3.jar'
> *sys-package-mgr*: can't write cache file for '/usr/share/java/adql-1.3.jar'
> *sys-package-mgr*: can't write index file
> 
> since the cache dir is not writeable for the ordinary user.
> Maybe this should have been set to the user's home dir if started by a user?

Doh! This was supposed to be fixed by release 2.5.3-12. Big fail /o\
My mistake was to change CACHEDIR_DEFAULT_NAME only.

The problem is that when the cachedir path is not absolute, it is
considered relative to the installation prefix: /usr/share/jython.

How about considering it relative to - say - $HOME/.jython instead?

Thanks,

_g.

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


More information about the pkg-java-maintainers mailing list