Fwd: JDK-8370719: [Linux] Use /etc/os-release values for font configuration file names

Philip Race philip.race at oracle.com
Mon Oct 27 20:12:00 UTC 2025


FYI


-------- Forwarded Message --------
Subject: 	JDK-8370719: [Linux] Use /etc/os-release values for font 
configuration file names
Date: 	Mon, 27 Oct 2025 13:10:10 -0700
From: 	Philip Race <philip.race at oracle.com>
To: 	client-libs-dev at openjdk.org <client-libs-dev at openjdk.org>



I expect this will be of interest to people who work on distro packaging.

https://bugs.openjdk.org/browse/JDK-8370719

Summary
In the JDk font startup code, stop look for files like 
/etc/redhat-release which doesn't work everywhere and
look only for /etc/os-release and extract ID and ID_VERSION out of it.
If a JDK bundled with a distro includes a custom fontconfig.properties 
file it will need to be named fontconfig.$ID.$ID_VERSION.properties
No more need to "know" what names are baked into JDK source code.

-phil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/distro-pkg-dev/attachments/20251027/2fdc0a71/attachment.htm>


More information about the distro-pkg-dev mailing list