[Debian-med-packaging] Bug#893298: libsbml FTBFS with openjdk-9

Markus Koschany apo at debian.org
Sun Mar 18 16:59:10 UTC 2018


Hello Andreas,

Am 18.03.2018 um 09:30 schrieb Andreas Tille:
> Control: tags -1 help
> 
> On Sat, Mar 17, 2018 at 10:07:50PM +0200, Adrian Bunk wrote:
>> ...
>> CMake Error at docs/CMakeLists.txt:212 (message):
>>   Cannot generate java documentation, please specify the Java_JAVADOC_JAR.
> 
> I need to admit I have no idea how to fix this.  Any help from the
> debian-java team?
> 
> Kind regards
> 
>       Andreas.


This issue is caused by the removal of tools.jar in OpenJDK 9. In
debian/rules you can remove this line:

CMAKE_OPTS += -DJava_JAVADOC_JAR=$(JDK_PATH)/lib/tools.jar
-DJAVA_INCLUDE_PATH=$(JAVA_INCLUDE_PATH)

and then you should patch docs/CMakeLists.txt and remove this line:

if (NOT EXISTS "${Java_JAVADOC_JAR}")
      message(FATAL_ERROR "Cannot generate java documentation, please
specify the Java_JAVADOC_JAR.")
endif()

This will work around the FTBFS because tools.jar is "only" needed on
the classpath when building the documentation. The build succeeds
afterwards but there might be some documentation for classes missing
which were provided by tools.jar. I would report this as an upstream bug.

Regards,

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20180318/2385a636/attachment.sig>


More information about the Debian-med-packaging mailing list