#1096127 trixie: openjdk-21-jre must depend on libharfbuzz-bin

Package:
openjdk-21-jre
Source:
openjdk-21-jre
Description:
OpenJDK Java runtime, using Hotspot JIT
Submitter:
Mark de Does
Date:
2025-04-23 09:57:05 UTC
Severity:
normal
Tags:
#1096127#5
Date:
2025-02-16 15:54:52 UTC
From:
To:
When running a Java 21 application that uses fonts on trixie (13), I get
the message:
java.lang.UnsatisfiedLinkError:
/usr/lib/jvm/java-21-openjdk-amd64/lib/libfontmanager.so:
libharfbuzz.so.0: cannot open shared object file: No such file or directory

Manually installing libharfbuzz-bin solves the issue for me.

I attach the Dockerfile of the container image that I use to run the
application as an example. (I.E. with the manual fix for my situation)

Greetings.. Mark

#1096127#10
Date:
2025-04-23 09:55:22 UTC
From:
To:
this is packaged this way by intent. you don't need a dependency on
libharfbuzz-bin, but on libharfbuzz0b.

openjdk-21-jre-headless recommends libharfbuzz0b, and openjdk-21-jre
depends on it.  So either install the recommendations, or install the
openjdk-21-jre package.