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

Bug 756415

Summary: app-office/libreoffice-7.0.3.1 requires dev-java/openjdk-11
Product: Gentoo Linux Reporter: Attila Tóth <atoth>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://cgit.freedesktop.org/libreoffice/core/commit/?id=941b567a41569260fef14a7337511e8f42337323
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: libreoffice-7-java.diff
01-libreoffice-7-revert-openjdk-9-dependency.patch
02-libreoffice-7-revert-openjdk-9-dependency.patch

Description Attila Tóth 2020-11-25 08:29:49 UTC
While app-office/libreoffice-6.4.7.2 pulled virtual/jdk-1.8, the latest libreoffice-7.0.3.1 want dev-java/openjdk:11.
The reason for that is written in the commit referenced in the URL of this bug:
They've added a java module requires at least openjdk-9 to compile, while the runtime requirement is still openjdk-8 (that icedtea can provide). The compilation actually dies at calling java with --release argument, that was not implemented before. I'm really curious how it would behave if I alter that to be compatible, but I don't have enough time for that right now.

Reproducible: Always
Comment 1 Attila Tóth 2020-11-25 08:48:16 UTC
Created attachment 674809 [details, diff]
libreoffice-7-java.diff

Necessary changes to the ebuild in order to still make it compile with icedtea.
Comment 2 Attila Tóth 2020-11-25 08:49:52 UTC
Created attachment 674812 [details, diff]
01-libreoffice-7-revert-openjdk-9-dependency.patch

First part of patch to make libreoffice openjdk-8 compatible again reverting changes.
Comment 3 Attila Tóth 2020-11-25 08:50:34 UTC
Created attachment 674815 [details, diff]
02-libreoffice-7-revert-openjdk-9-dependency.patch

Second part of patch to make libreoffice openjdk-8 compatible again reverting changes.
Comment 4 Attila Tóth 2020-11-25 08:51:43 UTC
Sorry for the noise, but I just wanted to leave it here of any other person interested.
Comment 5 Andreas Sturmlechner gentoo-dev 2020-11-25 13:22:11 UTC
The answer to $summary is *yes*.