Source: orthanc-imagej Severity: important Tags: ftbfs sid bookworm User: debian-j...@lists.debian.org Usertags: default-java17
orthanc-imagej fails to build with OpenJDK 17 because it invokes javac with the source/target options set to 6. Since OpenJDK 12 the minimum version supported is 7. [ 33%] Building Java objects for Orthanc_Import.jar cd /<<PKGBUILDDIR>> && /usr/bin/cmake -DCMAKE_JAVA_CLASS_OUTPUT_PATH=/<<PKGBUILDDIR>>/Build/CMakeFiles/Orthanc_Import.dir -DCMAKE_JAR_CLASSES_PREFIX= -P /usr/share/cmake-3.18/Modules/UseJava/ClearClassFiles.cmake cd /<<PKGBUILDDIR>> && /usr/bin/javac -source 1.6 -target 1.6 -classpath :/usr/share/java/ij.jar:/usr/share/java/json-simple.jar:/<<PKGBUILDDIR>>:/<<PKGBUILDDIR>>/Build -d /<<PKGBUILDDIR>>/Build/CMakeFiles/Orthanc_Import.dir @/<<PKGBUILDDIR>>/Build/CMakeFiles/Orthanc_Import.dir/java_sources warning: [options] bootstrap class path not set in conjunction with -source 6 error: Source option 6 is no longer supported. Use 7 or later. error: Target option 6 is no longer supported. Use 7 or later. make[4]: *** [CMakeFiles/Orthanc_Import.dir/build.make:100: CMakeFiles/Orthanc_Import.dir/java_compiled_Orthanc_Import] Error 2