Bug 29958

Summary: libreoffice-core java requirement is too strict
Product: Mageia Reporter: Radek Raczkowski <rdkracz>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: java, rdkracz
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: libreoffice-7.2.5.2-1.mga8.src.rpm CVE:
Status comment:

Description Radek Raczkowski 2022-01-29 13:25:28 CET
libreoffice-core depends on java-11-openjdk.
I use JDK 17 on my machine which should be compatible with any Java packages that were built with JDK 11 because of forward/upward/backward compatibility.
The issue is that even with JDK 17 installed DNF wants to install JDK 11.

This is only the case on Mageia according to the requires list here:
https://mageia.pkgs.org/8/mageia-core-updates-x86_64/libreoffice-core-7.2.5.2-1.mga8.x86_64.rpm.html

Other distributions:
https://fedora.pkgs.org/35/fedora-updates-x86_64/libreoffice-core-7.2.5.2-1.fc35.x86_64.rpm.html
https://ubuntu.pkgs.org/21.04/libreoffice-amd64/libreoffice-core_7.2.5~rc2-0ubuntu0.21.04.1~lo1_amd64.deb.html
https://debian.pkgs.org/11/debian-main-amd64/libreoffice-core_7.0.4-4+deb11u1_amd64.deb.html
Radek Raczkowski 2022-01-29 13:26:21 CET

CC: (none) => rdkracz

Comment 1 Radek Raczkowski 2022-01-29 13:27:18 CET
Basically Mageia is the only distribution that have marked JDK 11 as a dependency for libreoffice-core
Comment 2 Lewis Smith 2022-01-29 20:44:30 CET
Thank you for the report.

Yes, our LibreOffice does indeed specifically require 'java-11-openjdk'.
Although I believe it is OK to have >1 Java version installed, it is certainly not sensible if more recent ones really are backward compatible with the specified version. 'If' is a big word.

Assigning to tv for LO; CC'ing Java for their comment.

CC: (none) => java
Assignee: bugsquad => thierry.vignaud
Source RPM: libreoffice-core => libreoffice-7.2.5.2-1.mga8.src.rpm