Page MenuHomeFreeBSD

Bug 284503: Delete patch for fontmanager/freetypeScaler.c
ClosedPublic

Authored by haraldei_anduin.net on Feb 3 2025, 11:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 17, 3:13 AM
Unknown Object (File)
Sat, Mar 1, 4:32 PM
Unknown Object (File)
Fri, Feb 21, 11:03 PM
Unknown Object (File)
Feb 12 2025, 6:16 PM
Unknown Object (File)
Feb 10 2025, 10:14 PM
Unknown Object (File)
Feb 10 2025, 10:07 AM
Unknown Object (File)
Feb 9 2025, 2:19 AM
Unknown Object (File)
Feb 8 2025, 10:42 AM

Details

Summary

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.

Test Plan

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

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

haraldei_anduin.net created this revision.

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
In D48806#1113261, @jrm wrote:

Should the patch be removed from other JDK ports as well?

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.

Sounds good. You also need to bump PORTREVSION.

In D48806#1113263, @jrm wrote:

Sounds good. You also need to bump PORTREVSION.

Thanks, was wondering about that :)

It looks like this originally came from PR 215636 in an older OpenJDK
CC @dmgk

I can confirm that removing this patch fixes the issue for java swing apps running with openjdk23 on my desktop

Anything missing for this to be merged?

This revision was not accepted when it landed; it landed in state Needs Review.Sat, Mar 1, 7:59 PM
This revision was automatically updated to reflect the committed changes.