Red Hat Bugzilla – Bug 1479085
Last modified: 2017-09-20 09:07:37 EDT
Description of problem:
I'm encountering a FTBFS of libkml on armv7hl due to 
Could NOT find JNI (missing: JAVA_AWT_LIBRARY)
Previously (using java-1.8.0-openjdk-aarch32-1:220.127.116.11-3.161109.fc26) this succeeded with
-- Found JNI: /usr/lib/jvm/jre/lib/aarch32/libjawt.so
It looks like now with (with java-1.8.0-openjdk-aarch32-1:18.104.22.168-1.170721.fc27), stuff is placed under /usr/lib/jvm/jre/lib/arm/ (which is also scanned by FindJNI.cmake), but the libjawt.so is missing there.
Version-Release number of selected component (if applicable):
That change is not intended, will look at it.
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.
Sorry for the delay, it will take another week, I currently cannot access the hardware I need to check this.
Reproduced the problem with libkml Commit 180363.
Symlinks from jre/lib/arm to jre/lib/aarch32 are the same in both 8u141 and 8u131. The problem is that in F27 java-1.8.0-openjdk-aarch32-headless for some reason started depending on java-1.8.0-openjdk-headless. With java-1.8.0-openjdk-headless installed, /usr/lib/jvm/jre alternative is switched to it. This path is used by FindJNI.cmake.
java-1.8.0-openjdk-headless does not contain jre/lib/arm/libjawt.so, it is placed into java-1.8.0-openjdk package (that is not installed in our case). Thus CMake looks only into /usr/lib/jvm/jre fails to find it. Though libjawt.so is available inside java-1.8.0-openjdk-aarch32 installation (on both jre/lib/aarch32 an jre/lib/arm paths) and libkml Commit 4b5da7 (with workaround that looks for libjawt.so manually) builds fine.
F26 is unaffected.
The reason for invalid dependency in F27 is not clear, going to find this out and include the fix into pending 8u144 update.
java-1.8.0-openjdk-aarch32-22.214.171.124-1.170809.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bbd3c5749b
java-1.8.0-openjdk-aarch32-126.96.36.199-1.170809.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-bbd3c5749b