unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: 29700@debbugs.gnu.org
Subject: bug#29700: Java packages need to retain references
Date: Wed, 13 Dec 2017 23:48:24 +0100	[thread overview]
Message-ID: <87tvwuutvr.fsf@elephly.net> (raw)

I installed the “axoloti-patcher” package today after “guix gc” and
noticed that not all dependencies are available at runtime.  Upon
running the “Axoloti” 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’t know if it is feasible to disable compression for jar files, or
if we should install a “.guix-dependencies” file that contains plain
text references.

I’ll investigate disabling compression first.  Looks like we can do this
in the strip-jar-timestamps phase where we use “zip” to repack the jar.
Adding “-0” to the arguments should be enough to make this work.

I’ll send a patch soon.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

             reply	other threads:[~2017-12-13 22:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-13 22:48 Ricardo Wurmus [this message]
2017-12-13 23:09 ` bug#29700: [PATCH] guix: ant-build-system: Do not compress jars Ricardo Wurmus
2017-12-14  8:23   ` Danny Milosavljevic
2017-12-14 22:59 ` bug#29700: Java packages need to retain references Ricardo Wurmus
2017-12-15  6:44   ` Gábor Boskovits
2017-12-15  7:49     ` Ricardo Wurmus
2017-12-15 14:55 ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2017-12-13 22:28 bug#29705: " Ricardo Wurmus
2017-12-14  7:07 ` Gábor Boskovits
2017-12-14 22:22   ` bug#29700: " Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tvwuutvr.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=29700@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).