[SRU] ceph: replace javah usage with a call to javac
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceph (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Currently ceph 12.2.4-0ubuntu1 FTBFS on Bionic because it can't find the javah binary.
The javah binary has been removed from OpenJDK 10 and the java compiler should be used in its place to build native headers by calling "javac -h".
[Test Case]
Build ceph 12.2.4-0ubuntu1 in Bionic with a current default-jdk (ie. depends on openjdk-11-jdk), it should FTBFS with:
[ 41%] Generating native/
cd /<<PKGBUILDDIR>
/bin/sh: 1: Java_JAVAH_
When fixed the build is build is expected to succeed.
[Regression Potential]
No regression is expected as the generated headers are the same.
[Other Info]
* This SRU should not be backported to any Ubuntu release were the default-jdk depends on openjdk-8 (although it is supposed to be supported, I haven't tested that).
* The javac -h option has been available since OpenJDK 8 - see JEP-313 and JDK-8182758 [1].
* Please note that it is not usually possible to simply replace "javah" calls with "javac -h": the syntax and expected arguments are different; the "-h <output header directory>" argument should be added to the existing javac calls.
[References]
[1] https:/
tags: | added: ftbfs |
tags: | added: patch |
tags: |
added: verification-done-bionic removed: verification-needed verification-needed-bionic |
Debdiff that fixes this bug as well as bug #1766998.