maintainer-feedback requested: [Bug 287398] java/openjdk21: pkg check -da complains about "libreoffice is missing a required shared library: libjawt.so"

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 09 Jun 2025 17:18:27 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-java (Nobody)
<java@FreeBSD.org> for maintainer-feedback:
Bug 287398: java/openjdk21: pkg check -da complains about "libreoffice is
missing a required shared library: libjawt.so"
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287398



--- Description ---
Scenario:
- FreeBSD stable/14 ca. Feb. 1
- ports latest
- using DEFAULT_VERSIONS+=java=21 in /etc/make.conf
- editors/libreoffice is installed
- running: "pkg check -da"

Result:
- The command finishes with "libreoffice is missing a required shared library:
libjawt.so"

Expected result:
- There should be no such error message.

Notes:
- I was uing an older version of openjdk before (via /etc/make.conf), with
which this did not happen. If I remember correctly, it was openjdk17.
- The libreoffice file where ldd does not find libjawt.so is
/usr/local/lib/libreoffice/program/libofficebean.so.

-- Martin