#11611: Adapt Libreoffice to JDK11
-------------------------+-----------------------
 Reporter:  renodr       |      Owner:  blfs-book
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  8.4
Component:  BOOK         |    Version:  SVN
 Severity:  normal       |   Keywords:
-------------------------+-----------------------
 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.

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/11611>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to