Adapt Libreoffice to JDK11
|Reported by:||Douglas R. Reno||Owned by:||Douglas R. Reno|
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-220.127.116.11/libreoffice-18.104.22.168/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-22.214.171.124/libreoffice-126.96.36.199/workdir/UnpackedTarball/hsqldb/src/org/hsqldb/util/CodeSwitcher.java uses unchecked or unsafe operations. [javac] /sources/libreoffice-188.8.131.52/libreoffice-184.108.40.206/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-220.127.116.11/libreoffice-18.104.22.168/workdir/UnpackedTarball/hsqldb/src/org/hsqldb/store/ValuePoolHashMap.java uses or overrides a deprecated API. [javac] /sources/libreoffice-22.214.171.124/libreoffice-126.96.36.199/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-188.8.131.52/libreoffice-184.108.40.206/workdir/UnpackedTarball/hsqldb/src/org/hsqldb/lib/java/JavaSystem.java:163: error: cannot find symbol /sources/libreoffice-220.127.116.11/libreoffice-18.104.22.168/workdir/UnpackedTarball/hsqldb/build/build.xml:353: Compile failed; see the compiler error output for details. make: *** [/sources/libreoffice-22.214.171.124/libreoffice-126.96.36.199/external/hsqldb/ExternalProject_hsqldb.mk:17: /sources/libreoffice-188.8.131.52/libreoffice-184.108.40.206/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:
I'll generate a patch for the book and submit it.