Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572594 - oracle-jdk-bin-1.8.* should RDEPEND on libXtst
Summary: oracle-jdk-bin-1.8.* should RDEPEND on libXtst
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-22 11:27 UTC by Ortwin Glueck
Modified: 2016-01-22 13:46 UTC (History)
0 users

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 Ortwin Glueck 2016-01-22 11:27:07 UTC
This is on a headless machine, over SSH (ssh -Y):

~ $ jconsole
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/oracle-jdk-bin-1.8.0.66/jre/lib/amd64/libawt_xawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
        at java.lang.Runtime.load0(Runtime.java:809)
        at java.lang.System.load(System.java:1086)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1842)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at java.awt.Toolkit$3.run(Toolkit.java:1636)
        at java.awt.Toolkit$3.run(Toolkit.java:1634)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
        at java.awt.Toolkit.<clinit>(Toolkit.java:1668)
        at java.awt.Component.<clinit>(Component.java:593)

$ equery u oracle-jdk-bin
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-java/oracle-jdk-bin-1.8.0.72:
 U I
 - - alsa         : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - cups         : Add support for CUPS (Common Unix Printing System)
 - - derby        : Install bundled Derby (Java database)
 - - doc          : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of
                    globally
 - - examples     : Install examples, usually source code
 + - fontconfig   : Support for configuring and customizing font access via media-libs/fontconfig
 - - headless-awt : Don't install the X backend for AWT, needed by some GUIs (used to be X flag)
 - - javafx       : Install JavaFX libraries
 + + jce          : Install Java Cryptographic Extension Unlimited Strength Jurisdiction Policy Files
 - - nsplugin     : Build plugin for browsers supporting the Netscape plugin architecture (that is almost any modern
                    browser)
 - - pax_kernel   : Use paxctl to mark the JVM binaries
 - - source       : Install JVM (and optionally JavaFX) sources


After manually emerging libXtst it works fine.

I think the RDEPEND is incomplete:
RDEPEND="!x64-macos? (
                !headless-awt? (
                        x11-libs/libX11
                        x11-libs/libXext
                        x11-libs/libXi
                        x11-libs/libXrender
                )



Reproducible: Always
Comment 1 James Le Cuirot gentoo-dev 2016-01-22 13:46:50 UTC
Fixed, thanks! I did check the library dependencies very carefully a while ago but maybe they added this one since or I just missed it.