The patch causes a load failure when trying to load graphical java programs,
because it created a hard dependency on libfontconfig.so from
libfontmanager.so. This should be handled by the jdk itself by dynamically
loading fontconfig if it's needed.
Details
Details
Run various graphical java programs and check that font rendering works as it
should.
Be sure to test on both old HD as well as Hi-DPI displays.
Diff Detail
Diff Detail
- Repository
- R11 FreeBSD ports repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Should the patch be removed from other JDK ports as well?
jrm@ser /usr/ports/java [main|✔] % fd patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c openjdk11/files/patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c openjdk17/files/patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c openjdk18/files/patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c openjdk19/files/patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c openjdk20/files/patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c openjdk21/files/patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c openjdk22/files/patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c openjdk23/files/patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c
Comment Actions
I don't know. If we do that, we should also remove the patch that adds the link to libfontconfig as well. I have not analyzed the previous OpenJDK versions, though, so I do not know if that patch was necessary at some point, and if so, when it did become necessary. I think I'd have to go through each port and check, but I don't think that's a good use of my time right now.
Comment Actions
I can confirm that removing this patch fixes the issue for java swing apps running with openjdk23 on my desktop