Opened 3 years ago

Closed 3 years ago

#11611 closed defect (fixed)

Adapt Libreoffice to JDK11

Reported by: Douglas R. Reno Owned by: Douglas R. Reno
Priority: normal Milestone: 8.4
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Since upgrading to JDK11, Libreoffice no longer builds:

[build CFG] driver_hsqldb
[build UPK] 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
[build PAT] hsqldb
    [javac] /sources/libreoffice-6.1.4.2/libreoffice-6.1.4.2/workdir/UnpackedTarball/hsqldb/build/build.xml:143: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Note: /sources/libreoffice-6.1.4.2/libreoffice-6.1.4.2/workdir/UnpackedTarball/hsqldb/src/org/hsqldb/util/CodeSwitcher.java uses unchecked or unsafe operations.
    [javac] /sources/libreoffice-6.1.4.2/libreoffice-6.1.4.2/workdir/UnpackedTarball/hsqldb/build/build.xml:342: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Note: /sources/libreoffice-6.1.4.2/libreoffice-6.1.4.2/workdir/UnpackedTarball/hsqldb/src/org/hsqldb/store/ValuePoolHashMap.java uses or overrides a deprecated API.
    [javac] /sources/libreoffice-6.1.4.2/libreoffice-6.1.4.2/workdir/UnpackedTarball/hsqldb/build/build.xml:353: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] /sources/libreoffice-6.1.4.2/libreoffice-6.1.4.2/workdir/UnpackedTarball/hsqldb/src/org/hsqldb/lib/java/JavaSystem.java:163: error: cannot find symbol
/sources/libreoffice-6.1.4.2/libreoffice-6.1.4.2/workdir/UnpackedTarball/hsqldb/build/build.xml:353: Compile failed; see the compiler error output for details.
make[1]: *** [/sources/libreoffice-6.1.4.2/libreoffice-6.1.4.2/external/hsqldb/ExternalProject_hsqldb.mk:17: /sources/libreoffice-6.1.4.2/libreoffice-6.1.4.2/workdir/ExternalProject/hsqldb/build] Error 1

In it's infinite wisdom, Libreoffice does not tell us exactly what went wrong. Upon further investigation (like 16 hours worth), it seems to be that hsql won't compile on JDK11 without a patch (adapts it to no longer use a certain method that was removed). There is also a build problem later on due to JDK's changes to Javadoc as well.

The two relevant commits upstream are:

https://cgit.freedesktop.org/libreoffice/core/commit/external/hsqldb?id=1d3f2ed0606cc971513dab5932ec7d1dd2a15f90

https://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-6-1-5&id=98daad73b52bdeebef137dd4791a8e072d7394f2

I'll generate a patch for the book and submit it.

Change History (2)

comment:1 by Douglas R. Reno, 3 years ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned
Type: enhancementdefect

comment:2 by Douglas R. Reno, 3 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r21078

Note: See TracTickets for help on using tickets.