Summary: | dev-java/icedtea-web - configure says sun.applet.AppletImageRef not found due to headless-awt flag | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeff Hubbs <jeffrey.hubbs> |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | darkbasic, fordfrog |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: |
https://github.com/gentoo/gentoo/pull/24610 https://github.com/gentoo/gentoo/pull/25989 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
config.log |
Description
Jeff Hubbs
2018-06-25 19:52:26 UTC
Please attach config.log. Created attachment 537388 [details]
config.log
Config.log attachment added.
I've learned via IRC/Freenode/#java that sun.applet.AppletImageRef is generally supposed to be in rt.jar, which on Gentoo/icedtea lives in /usr/lib64/icedtea8/jre/lib/. Oracle's JRE does have sun.applet.AppletImageRef in /opt/oracle-jre-bin-1.8.0.172/lib/ and I'm told on Freenode/#java that icedtea 3.8.0 (which I'm running the source-based package of (i.e., dev-java/icedtea-3.8.0) has sun.applet.AppletImageRef in its rt.jar - specifically, Gentoo's icedtea-bin-3.8.0, so it seems there's some divergence between the icedtea and icedtea-bin ebuilds that is leading to breakage. I think my workaround is to dump icedtea for icedtea-bin. I confirmed my initial suspicions and found that it is the headless-awt flag. Please disable this. Fixing this isn't entirely straightforward though. The virtual packages do not currently have any flags because additional work would be required to make use of them. icedtea-web selects the JVM in a different way to other Java packages but the virtual flags would still not help much as you can manually select any JVM you want. the same error with openjdk:11[-headless-awt] as system java-vm. The same error with current dev-java/icedtea-web-1.8.8. It's the same with dev-java/icedtea-web-1.8.4-r1 I've found that selecting either openjdk-8 or openjdk-bin-8 as system java-vm allows me to compile dev-java/icedtea-web-1.8.8. If openjdk-11 is set as the system one it fails with sun.applet.AppletImageRef not found. Hello. My system Linux 5.15.32-gentoo-r1 x86_64 Build error. checking if sun.applet.AppletImageRef is available from sun.applet (module "java.desktop")... no configure: error: sun.applet.AppletImageRef not found. !!! Please attach the following file when seeking support: !!! /mnt/tmp/portage/dev-java/icedtea-web-1.8.8/work/IcedTea-Web-icedtea-web-1.8.8/config.log * ERROR: dev-java/icedtea-web-1.8.8::gentoo failed (configure phase): * econf failed serv0 ~ # eselect java-vm show Current system-vm openjdk-bin-8 Current user-vm (unset) serv0 ~ # eselect java-vm list Available Java Virtual Machines: [1] icedtea-bin-8 [2] openjdk-bin-11 qlist -Iv | egrep 'jdk|java' app-eselect/eselect-java-0.4.3 dev-java/icedtea-bin-3.16.0 dev-java/icedtea-web-1.8.8 dev-java/java-config-2.3.1 dev-java/jnlp-api-6.0.18 dev-java/openjdk-bin-11.0.14_p9-r1 sys-apps/baselayout-java-0.1.0-r1 virtual/jdk-11-r2 virtual/jdk-1.8.0-r6 ls -al /etc/java-config-2/ итого 12 drwxr-xr-x 2 root root 4096 апр 29 08:35 . drwxr-xr-x 77 root root 4096 апр 29 08:13 .. lrwxrwxrwx 1 root root 27 апр 29 08:35 current-system-vm -> /usr/lib/jvm/openjdk-bin-11 -rw-r--r-- 1 root root 61 июн 23 2020 virtuals The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47bad21c79c7886701279312dc6923538dd12fd2 commit 47bad21c79c7886701279312dc6923538dd12fd2 Author: Yuan Liao <liaoyuan@gmail.com> AuthorDate: 2022-03-16 18:22:19 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-05-11 19:51:03 +0000 dev-java/icedtea-web: EAPI 8, restrict build VM to 1.8 - java-pkg-2.eclass is inherited to set up JDK 8 as the build VM properly, so a JAVA_HOME that points to JDK 8 is always passed to the ./configure script regardless of the eselect-java system VM setting. - The 'itw-modularjdk.args' file is now installed to an FHS-compliant path to allow the programs from this package to be run with JRE 9+. These programs are compatible with JRE 9+ under the condition that this file is installed. The file is required for integration with the Java Platform Module System introduced in Java 9. - README.gentoo is updated to convey the USE="-headless-awt" requirement for any JRE used to run those programs. This seems to be a runtime-only requirement, as using a JDK with this USE flag disabled would not cause any build errors during testing. Bug: https://bugs.gentoo.org/659174 Bug: https://bugs.gentoo.org/698582 Bug: https://bugs.gentoo.org/783027 Bug: https://bugs.gentoo.org/831895 Signed-off-by: Yuan Liao <liaoyuan@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/24610 Signed-off-by: Florian Schmaus <flow@gentoo.org> dev-java/icedtea-web/files/README.gentoo-r3 | 16 +++ dev-java/icedtea-web/icedtea-web-1.8.8-r1.ebuild | 118 +++++++++++++++++++++++ 2 files changed, 134 insertions(+) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6d64b078ac431a26142e7bd0f81852492003cee commit f6d64b078ac431a26142e7bd0f81852492003cee Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2022-06-20 05:21:53 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-06-20 06:49:26 +0000 dev-java/icedtea-web: drop 1.8.4-r1, 1.8.8 Closes: https://bugs.gentoo.org/586810 Closes: https://bugs.gentoo.org/659174 Closes: https://bugs.gentoo.org/698582 Closes: https://bugs.gentoo.org/783027 Closes: https://bugs.gentoo.org/831895 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/25989 Signed-off-by: Florian Schmaus <flow@gentoo.org> dev-java/icedtea-web/Manifest | 1 - dev-java/icedtea-web/icedtea-web-1.8.4-r1.ebuild | 94 ------------------------ dev-java/icedtea-web/icedtea-web-1.8.8.ebuild | 94 ------------------------ 3 files changed, 189 deletions(-) |