[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#893298: libsbml FTBFS with openjdk-9

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

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

      message(FATAL_ERROR "Cannot generate java documentation, please
specify the Java_JAVADOC_JAR.")

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.



Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: