Depending on dev-java/icedtea-bin[X]

"W. Trevor King" <[email protected]> Tue, 06 Mar 2012 10:11:01 -0500
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

--=20
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

--W/nzBZO5zC0uMSeA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQEcBAEBAgAGBQJPVikDAAoJEPe7CdOcrcTZ4JwH/RRU2Z60bXXWCSbMAJNZjaL+
SzpYR+p/C+IyaoI74o9QoG15T/ahNfzuuYwSjha47NbbBQ+2/RH4cbl2dn4d+dKw
Z1vP83H+iULkSJzlRB+PeUtM5xSQJm/0NlfD9Qra7E46uh/Oq0vNGwpT0eYT8Kk1
YY+HGMztQYbfNY1i6DjKprdYohQzSRfUCsXiq1+l/dp9tfGozeOFxb3+rg1vP/FC
4gArRgNCMHF9Z+tgxoPlaXuXDYnab0CA7pz1UEk2kNrP1Ror94QyWDX/FcNHr95W
lt5qZlFa2+jRD+0PlgK3maZsqaKlqPy2jcLXENe2Xg1jPWXrE+BsFdgL05h1h80=
=BP7O
-----END PGP SIGNATURE-----

--W/nzBZO5zC0uMSeA--