Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645306 - dev-java/oracle-jdk-bin:9 USE=javafx installs no glassgtk2/glassgtk3 in library path
Summary: dev-java/oracle-jdk-bin:9 USE=javafx installs no glassgtk2/glassgtk3 in libra...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-21 23:22 UTC by Pascal Flöschel
Modified: 2019-01-17 19:43 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 Pascal Flöschel 2018-01-21 23:22:36 UTC
The ebuild deletes lib/glassgtk2.* or lib/glassgtk3.* depending on the the gtk2 or gtk3 use flag. This seems to have worked for Java 8 but leads to problems with Java 9. The error message is "UnsatisfiedLinkError: no glassgtk2 in java.library.path".

An environment variable "-Djdk.gtk.version=3" or "-Djdk.gtk.version=2" can be used to select the GTK version.

JDK 9.04 works with the deleted file if the correct GTK version is set. I tried several Java environment variables and JAVA_TOOLS_OPTIONS=-Djdk.gtk.version=3 works with use flag gtk3.

I suggest to not delete the files and just set the appropriate variable based upon  the use flag.
Comment 1 James Le Cuirot gentoo-dev 2018-01-22 14:56:48 UTC
That's unfortunate. I haven't had good experiences with setting variables like JAVA_TOOLS_OPTIONS in the past. On the other hand, leaving references to libraries that haven't been accounted for in the enabled dependencies can also confuse Portage. Do you have an example? I guess any JavaFX program will trigger it.
Comment 2 Pascal Flöschel 2018-01-22 15:33:31 UTC
The rewritten control panel "jcontrol" triggers it as it seems to use JavaFX.

FYI I found the property in this change: https://bugs.openjdk.java.net/browse/JDK-8087516
Comment 3 James Le Cuirot gentoo-dev 2018-01-22 21:23:49 UTC
I also forgot to remove jcontrol when javafx is disabled. Just noting it here so I get that fixed too.
Comment 4 Miroslav Šulc gentoo-dev 2019-01-17 19:43:53 UTC
oracle-jdk-bin:9 was removed from the main tree. please use oracle-jdk-bin:11 or another available jdk.