When trying to upgrade a package that depended on dev-java/jna:4, I was shocked to find that it was pulling in a bunch of x11 stuff, on my headless server. It turns out, it didn't in fact need x11-libs/libXt. (It specifies -Dheadless=true elsewhere in the ebuild, which should have suggested this.)
headless=true is only for tests as far as I'm aware and I tried to force build it without libXt (which provides Intrinsic.h) and then:
fatal error: X11/Intrinsic.h: No such file or directory
Very interesting. I wonder why it worked for me, or why it's required for you.
(In reply to Dennis Nezic from comment #2)
> Very interesting. I wonder why it worked for me, or why it's required for
I see now, it's because I had the default USE=awt (works without, but haven't thoroughly tested).
I guess it may(?) be possible to make it conditional, java team will know better.