Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857204 - app-office/libreoffice DEPENDs on dev-java/openjdk{,-bin}:11 instead of >=virtual/jdk-11
Summary: app-office/libreoffice DEPENDs on dev-java/openjdk{,-bin}:11 instead of >=vi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on: 856673
Blocks:
  Show dependency tree
 
Reported: 2022-07-09 21:34 UTC by Alexander Miller
Modified: 2022-07-14 11:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)