Gentoo Archives: gentoo-java

From: "W. Trevor King" <wking@×××××××.us>
To: gentoo-java@l.g.o
Subject: [gentoo-java] Depending on dev-java/icedtea-bin[X]
Date: Tue, 06 Mar 2012 18:02:30
Message-Id: 20120306151101.GA13507@odin.tremily.us
Hi folks,

I've got an ebuild that can install HDFView [1], which needs an X
interface.  My package depends on java via `virtual/jre` and
`virtual/jdk`, which eventually result in pulling in
`dev-java/icedtea-bin`.  However, I do not have the `X` USE flag
enabled globally on my system, so icedtea-bin does not pull in
`x11-libs/libXtst`, which leads to:

  Exception in thread "main" java.lang.UnsatisfiedLinkError:
    /opt/icedtea6-bin-1.10.4/jre/lib/i386/xawt/libmawt.so:
      libXtst.so.6: cannot open shared object file:
  No such file or directory
          ...
          at java.awt.Component.<clinit>(Component.java:582)
  Could not find the main class: ncsa.hdf.view.HDFView. Program will exit.

I could add something like:

  hdfview? ( dev-java/icedtea-bin[X] )

to my dependencies, but that would make life difficult for users who
use other Java implementations.  It seems to me that the virtual Java
packages should expose the union of USE flags from the underlying
implementations, but perhaps I am just missing something.

So, what's the best way to fix this?

Thanks,
Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-java] Depending on dev-java/icedtea-bin[X] Vlastimil Babka <caster@g.o>