app-office/libreoffice-{7.3.3.2-r3,7.3.4.2,7.3.9999,9999} hardcode dev-java/openjdk{,-bin}:11 in DEPEND if USE=java is enabled. According to its configure script, it needs java 9 or newer. I understand that when the dependency was first added, a suitable gentoo vm didn't exist yet. But the situation has changed, and we now have virtual/jdk:{11,17} (both stable). So I guess the dependency should be changed to >=virtual/jdk-11, allowing to build with either version. (Keeping support for openjdk{,-bin}[-gentoo-vm] would certainly be possible, but imho it's pointless by now.) If that doesn't work for some reason, please document why pinning to openjdk:11 is necessary.
There are more lines in the libreoffice ebuilds where the java version is set.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=293cc7291594848a49365fe6d1a74d9911f90e0c commit 293cc7291594848a49365fe6d1a74d9911f90e0c Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2022-07-14 10:57:51 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2022-07-14 11:45:04 +0000 app-office/libreoffice: media-libs/zxing-cpp slot op, update JDK handling Drop x86 pkg_setup message about non-existing features, virtual/jdk:11 was keyworded at last. Also raise minimum JRE to 11. Bug: https://bugs.gentoo.org/785640 Closes: https://bugs.gentoo.org/857204 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../libreoffice/libreoffice-7.3.4.2-r1.ebuild | 656 +++++++++++++++++++++ app-office/libreoffice/libreoffice-7.3.9999.ebuild | 33 +- app-office/libreoffice/libreoffice-9999.ebuild | 33 +- 3 files changed, 672 insertions(+), 50 deletions(-)