|
From: | Gábor Boskovits |
Subject: | bug#29700: Java packages need to retain references |
Date: | Fri, 15 Dec 2017 07:44:36 +0100 |
Hi Gábor,
The manifest file would not be sufficient. Take the example of
“java-usb4java”. It provides a file “share/java/usb4java.jar”, which
contains this manifest:
--8<---------------cut here---------------start------------->8---
Manifest-Version: 1.0
Created-By: 1.7.0_161 (Oracle Corporation)
--8<---------------cut here---------------end--------------->8---
When you open the Loader.class file that is included in the archive you
will notice that it contains this string:
/gnu/store/iwjqaqr98daqbgwswqi5fi4w891bqh 7d-libusb4java-0-1.396d642a5/ lib/libusb4java.so
This reference is currently dropped because it cannot be detected in a
compressed archive. The reference is not contained in the manifest, and
at build time we could only guess which references should be added to
the manifest.
Unless we extend the reference scanner to deal with compressed files I
think that disabling compression in jars is the best approach.
I’ll push this to master.
[Prev in Thread] | Current Thread | [Next in Thread] |