Bug#912392: scilab FTBFS with OpenJDK 11
Control: tags -1 + patch I sent a merge request on Salsa [1]. It's only build tested, please check if it's also ok at runtime. [1] https://salsa.debian.org/science-team/scilab/merge_requests/2
Bug#912392: scilab FTBFS with OpenJDK 11
Later the build fails when generating the javadoc, because the "--add-modules=java.activation,java.xml.bind" option was specified to build with Java 9, but these modules have been removed in Java 11.
Bug#912392: scilab FTBFS with OpenJDK 11
With javax.activation.jar added to the classpath the build now fails due to the removal of JAXB: [javac] import javax.xml.bind.JAXBContext; [javac] ^ [javac] /build/scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/palette/PaletteManager.java:27: error: package javax.xml.bind does not exist [javac] import javax.xml.bind.JAXBException; [javac] ^ [javac] /build/scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/palette/PaletteManager.java:28: error: package javax.xml.bind does not exist [javac] import javax.xml.bind.Marshaller; [javac] ^ So a new dependency on libjaxb-java is also needed.
Bug#912392: scilab FTBFS with OpenJDK 11
The @Generated annotations can be safely removed, they only have a documentation purpose at the source level. But after removing them there is another issue related to the removal of the javax.activation API in Java 11: [javac] /build/scilab-6.0.1/modules/helptools/src/java/org/scilab/modules/helptools/image/ImageConverter.java:33: error: package javax.activation does not exist [javac] import javax.activation.MimetypesFileTypeMap; [javac]^ [javac] /build/scilab-6.0.1/modules/helptools/src/java/org/scilab/modules/helptools/image/ImageConverter.java:50: error: cannot find symbol [javac] private MimetypesFileTypeMap mimeMap = new MimetypesFileTypeMap(); [javac] ^ [javac] symbol: class MimetypesFileTypeMap [javac] location: class ImageConverter [javac] 2 errors [javac] 3 warnings
Bug#912392: scilab FTBFS with OpenJDK 11
Source: scilab Version: 6.0.1-5 Severity: serious Tags: ftbfs https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/scilab.html ... [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.netbeans.modules.openide.util.NbBundleProcessor' less than -source '8' [javac] warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.ServiceProviderProcessor' less than -source '8' [javac] warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.NamedServiceProcessor' less than -source '8' [javac] warning: No processor claimed any of these annotations: javax.annotation.Generated [javac] /build/1st/scilab-6.0.1/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/CSSParser.java:17: error: package javax.annotation does not exist [javac] @javax.annotation.Generated("JFlex") [javac] ^ [javac] 1 error [javac] 4 warnings BUILD FAILED /build/1st/scilab-6.0.1/modules/prebuildjava/build.xml:65: The following error occurred while executing this line: /build/1st/scilab-6.0.1/build.incl.xml:111: Compile failed; see the compiler error output for details. Total time: 8 seconds make[4]: *** [Makefile:757: java] Error 1