Bug#857921: Unwritable cache for new jars

Gilles Filippini pini at debian.org
Thu Mar 23 18:17:49 UTC 2017


Gilles Filippini a écrit le 20/03/2017 à 21:58 :
> 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?

Actually $HOME/.jython is the user's registry file. I'll then go for
".jython-cache" as default cachedir, relative to $HOME.

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/20170323/f7a736bf/attachment.sig>


More information about the pkg-java-maintainers mailing list