Bug 842610
| Summary: | libreoffice - compile with -target 1.5 or greater | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mikolaj Izdebski <mizdebsk> |
| Component: | libreoffice | Assignee: | Caolan McNamara <caolanm> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | caolanm, dtardon, erack, ltinkl, mstahl, sbergman |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-07-24 14:19:41 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 842394 | ||
|
Description
Mikolaj Izdebski
2012-07-24 09:25:40 UTC
As per the jsr14-rawhide-2012-07-23.gz linked from <https://bugzilla.redhat.com/show_bug.cgi?id=842394#c0>, within libreoffice-* packages, there are class files with versions < 49.0 only in jars that are not intended to compile against (/usr/lib64/libreoffice/share/extensions/writer2latex.oxt/writer2latex-filter.jar, /usr/lib64/libreoffice/share/extensions/writer2xhtml.oxt/writer2xhtml-filter.jar, and /usr/lib64/libreoffice/program/classes/saxon9.jar). Furthermore, upstream <http://cgit.freedesktop.org/libreoffice/core/commit/?id=26643fb59e0005f0bc83708b785d20d62d8e7411> "codemaker: write version 49 (1.5) class files," included in LibreOffice 3.6.0, already fixed this issue for LibreOffice jars that are intended to compile against (to address the same OpenJDK 7 issue discussed in bug 842394). (In reply to comment #1) > (/usr/lib64/libreoffice/share/extensions/writer2latex.oxt/writer2latex- > filter.jar, > /usr/lib64/libreoffice/share/extensions/writer2xhtml.oxt/writer2xhtml-filter. > jar These are not even part of libreoffice: they belong to writer2latex extension that is maintained separately (and not by the libreoffice team). (In reply to comment #2) > (In reply to comment #1) > > (/usr/lib64/libreoffice/share/extensions/writer2latex.oxt/writer2latex- > > filter.jar, > > /usr/lib64/libreoffice/share/extensions/writer2xhtml.oxt/writer2xhtml-filter. > > jar > > These are not even part of libreoffice: they belong to writer2latex > extension that is maintained separately (and not by the libreoffice team). writer2latex jars are fine. The suspicious jar file was /usr/lib64/libreoffice/program/classes/saxon9.jar, which belongs to libreoffice-core-1:3.6.0.2-1.fc18.x86_64, which was built from libreoffice-3.6.0.2-1.fc18.src.rpm. All classes in this jar have version 48.0. (In reply to comment #3) > writer2latex jars are fine. The suspicious jar file was > /usr/lib64/libreoffice/program/classes/saxon9.jar, > which belongs to libreoffice-core-1:3.6.0.2-1.fc18.x86_64, > which was built from libreoffice-3.6.0.2-1.fc18.src.rpm. > All classes in this jar have version 48.0. But that saxon9.jar is safe too. (It is an external jar that is bundled with LibreOffice, likely because a system-wide one, if any, does not meet certain requirements---this is an exception to the rule that has most likely been discussed elsewhere already. It is not beeing built during the LibreOffice build.) It is only included in LibreOffice so that other parts of LibreOffice can access its services indirectly via javax.xml.transform.TransformerFactory. The only place where LibreOffice code actually uses any saxon9.jar code during compilation is a use of net.sf.saxon.FeatureKeys.ALLOW_EXTERNAL_FUNCTIONS in filter/source/xsltfilter/com/sun/star/comp/xsltfilter/XSLTransformer.java, which should be safe (as further evidenced by the fact that LibreOffice does build fine with OpenJDK 7 already, see comment 1). |