python-javabridge failed to build from source in Fedora rawhide/f33 https://koji.fedoraproject.org/koji/taskinfo?taskID=48350842 For details on the mass rebuild see: https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Please fix python-javabridge at your earliest convenience and set the bug's status to ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks, python-javabridge will be orphaned. Before branching of Fedora 34, python-javabridge will be retired, if it still fails to build. For more details on the FTBFS policy, please visit: https://fedoraproject.org/wiki/Fails_to_build_from_source
Created attachment 1709058 [details] build.log
Relevant snippet from build.log: In file included from /usr/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822, from /usr/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:4, from _javabridge.c:610: /usr/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ _javabridge.c:615:10: fatal error: jni.h: No such file or directory 615 | #include "jni.h" | ^~~~~~~ Is JNI not available with Java 11 as in Fedora 33?
An easy fix could be to explicitly set JAVA_HOME environment variable to let skip the hackery code for trying to find the java binary with version in path. https://github.com/LeeKamentsky/python-javabridge/blob/master/javabridge/locate.py#L71 https://github.com/LeeKamentsky/python-javabridge/blob/master/setup.py#L85
export JAVA_HOME=%{_prefix}/lib/jvm/java
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle. Changing version to 33.
(In reply to Raphael Groner from comment #4) > export JAVA_HOME=%{_prefix}/lib/jvm/java PR: https://src.fedoraproject.org/rpms/python-javabridge/pull-request/1
Thanks. Are there any other rebuilds for branches or bodhi updates needed?
(In reply to Raphael Groner from comment #7) > Thanks. Are there any other rebuilds for branches or bodhi updates needed? F33 as well as it failed to build there also.
FEDORA-2020-cb0a399bf1 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.