Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 857204

Summary: app-office/libreoffice DEPENDs on dev-java/openjdk{,-bin}:11 instead of >=virtual/jdk-11
Product: Gentoo Linux Reporter: Alexander Miller <alex.miller>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=785640
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 856673    
Bug Blocks:    

Description Alexander Miller 2022-07-09 21:34:04 UTC
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.
Comment 1 jospezial 2022-07-10 02:30:00 UTC
There are more lines in the libreoffice ebuilds where the java version is set.
Comment 2 Larry the Git Cow gentoo-dev 2022-07-14 11:45:33 UTC
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(-)