From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#29700: Java packages need to retain references Date: Wed, 13 Dec 2017 23:48:24 +0100 Message-ID: <87tvwuutvr.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePFpq-0004ry-8C for bug-guix@gnu.org; Wed, 13 Dec 2017 17:49:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePFpm-0003n0-7X for bug-guix@gnu.org; Wed, 13 Dec 2017 17:49:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52258) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePFpm-0003mo-37 for bug-guix@gnu.org; Wed, 13 Dec 2017 17:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ePFpl-0002Jg-TH for bug-guix@gnu.org; Wed, 13 Dec 2017 17:49:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePFpP-0004qd-3B for bug-guix@gnu.org; Wed, 13 Dec 2017 17:48:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePFpK-0003WO-VR for bug-guix@gnu.org; Wed, 13 Dec 2017 17:48:39 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ePFpK-0003W0-Oy for bug-guix@gnu.org; Wed, 13 Dec 2017 17:48:34 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 29700@debbugs.gnu.org I installed the =E2=80=9Caxoloti-patcher=E2=80=9D package today after =E2= =80=9Cguix gc=E2=80=9D and noticed that not all dependencies are available at runtime. Upon running the =E2=80=9CAxoloti=E2=80=9D command I got this error: Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: = Can't load library: /gnu/store/nrx5nmwynmsl7aqxdpgwpsm8ff9b0h4d-libusb4java= -0-1.396d642a5/lib/libusb4java.so The store item does not exist. The problem here is that jar archives are compressed and thus any references they contain are thus hidden from the scanner. I don=E2=80=99t know if it is feasible to disable compression for jar files= , or if we should install a =E2=80=9C.guix-dependencies=E2=80=9D file that conta= ins plain text references. I=E2=80=99ll investigate disabling compression first. Looks like we can do= this in the strip-jar-timestamps phase where we use =E2=80=9Czip=E2=80=9D to rep= ack the jar. Adding =E2=80=9C-0=E2=80=9D to the arguments should be enough to make this = work. I=E2=80=99ll send a patch soon. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net