Bug 1865294 - python-javabridge: FTBFS in Fedora rawhide/f33
Summary: python-javabridge: FTBFS in Fedora rawhide/f33
Alias: None
Product: Fedora
Classification: Fedora
Component: python-javabridge
Version: 33
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2020-08-03 20:50 UTC by Fedora Release Engineering
Modified: 2020-09-08 20:50 UTC (History)
2 users (show)

Fixed In Version: python-javabridge-1.0.19-1.fc34, python-javabridge-1.0.19-1.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-09-08 20:22:44 UTC
Type: ---

Attachments (Terms of Use)
build.log (11.48 KB, text/plain)
2020-08-03 20:50 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2020-08-03 20:50:24 UTC
python-javabridge failed to build from source in Fedora rawhide/f33


For details on the mass rebuild see:

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:

Comment 1 Fedora Release Engineering 2020-08-03 20:50:25 UTC
Created attachment 1709058 [details]

Comment 2 Raphael Groner 2020-08-04 07:17:47 UTC
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?

Comment 3 Raphael Groner 2020-08-04 09:18:32 UTC
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.

Comment 4 Raphael Groner 2020-08-04 09:23:56 UTC
export JAVA_HOME=%{_prefix}/lib/jvm/java

Comment 5 Ben Cotton 2020-08-11 15:06:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 6 Charalampos Stratakis 2020-09-07 16:34:08 UTC
(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

Comment 7 Raphael Groner 2020-09-08 05:02:16 UTC
Thanks. Are there any other rebuilds for branches or bodhi updates needed?

Comment 8 Charalampos Stratakis 2020-09-08 11:15:12 UTC
(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.

Comment 9 Fedora Update System 2020-09-08 20:22:44 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.