public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] Depending on dev-java/icedtea-bin[X]
@ 2012-03-06 15:11 W. Trevor King
  2012-07-07 13:13 ` Vlastimil Babka
  0 siblings, 1 reply; 3+ messages in thread
From: W. Trevor King @ 2012-03-06 15:11 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]

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

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-java] Depending on dev-java/icedtea-bin[X]
  2012-03-06 15:11 [gentoo-java] Depending on dev-java/icedtea-bin[X] W. Trevor King
@ 2012-07-07 13:13 ` Vlastimil Babka
  2012-07-08 19:13   ` W. Trevor King
  0 siblings, 1 reply; 3+ messages in thread
From: Vlastimil Babka @ 2012-07-07 13:13 UTC (permalink / raw
  To: gentoo-java

Hi,

On 03/06/2012 04:11 PM, W. Trevor King wrote:
>  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?

Yes that would be the ideal solution. There's bug
https://bugs.gentoo.org/show_bug.cgi?id=291784 for it, but nobody
implemented that yet...

V.B.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-java] Depending on dev-java/icedtea-bin[X]
  2012-07-07 13:13 ` Vlastimil Babka
@ 2012-07-08 19:13   ` W. Trevor King
  0 siblings, 0 replies; 3+ messages in thread
From: W. Trevor King @ 2012-07-08 19:13 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

Vlastimil,

Thanks for getting back to me.

On Sat, Jul 07, 2012 at 03:13:17PM +0200, Vlastimil Babka wrote:
> On 03/06/2012 04:11 PM, W. Trevor King wrote:
> > 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?
> 
> Yes that would be the ideal solution. There's bug
> https://bugs.gentoo.org/show_bug.cgi?id=291784 for it, but nobody
> implemented that yet...

Thanks for the pointer.  I just posted a rough draft patch to that
issue.  I see you reported that bug, so I'm not sure if you're in a
possition to do anything about fixing it, but perhaps you can look
over the patch and see if it's what you had in mind?

Cheers,
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

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-08 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 15:11 [gentoo-java] Depending on dev-java/icedtea-bin[X] W. Trevor King
2012-07-07 13:13 ` Vlastimil Babka
2012-07-08 19:13   ` W. Trevor King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox