Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762940 - dev-java/jna-4.2.2-r1[-awt] may not need x11-libs/libXt
Summary: dev-java/jna-4.2.2-r1[-awt] may not need x11-libs/libXt
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-01 16:21 UTC by Dennis Nezic
Modified: 2021-01-01 17:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nezic 2021-01-01 16:21:42 UTC
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.)

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2021-01-01 16:55:55 UTC
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
Comment 2 Dennis Nezic 2021-01-01 17:02:59 UTC
Very interesting. I wonder why it worked for me, or why it's required for you.
Comment 3 Ionen Wolkens gentoo-dev 2021-01-01 17:10:01 UTC
(In reply to Dennis Nezic from comment #2)
> Very interesting. I wonder why it worked for me, or why it's required for
> you.
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.