Bug 2014770 - Consider to build from other forks due to new upstream
Summary: Consider to build from other forks due to new upstream
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-javabridge
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2007626
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-16 15:29 UTC by Raphael Groner
Modified: 2022-01-23 18:53 UTC (History)
2 users (show)

Fixed In Version: python-javabridge-1.0.19-7.20211221git61942d2.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-23 18:53:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Raphael Groner 2021-10-16 15:29:56 UTC
Description of problem:
Newer releases available from other github forks as it seems to be more current upstream.
Possible options:
o https://github.com/BjarneHerland/python-javabridge
o https://github.com/CellProfiler/python-javabridge

Version-Release number of selected component (if applicable):
-

How reproducible:
yes

Steps to Reproduce:
1. dnf install python3-javabridge
2.
3.

Actual results:
old version gets installed

Expected results:
new version

Additional info:

Comment 1 Raphael Groner 2021-10-16 15:33:09 UTC
(In reply to Didik Supriadi from comment #7, bug #2007626)
> as suggested by mizdebsk, you could also Requires javapackages-tools and
> execute `find-jar org.mozilla:rhino` to find the jar.

(In reply to Didik Supriadi from comment #6)
> The location of rhino is moved to %{_javadir}/rhino/rhino.jar instead of
> %{_javadir}/rhino.jar.
> Since previously this is not the case, I've added some backward
> compatibility in rhino:
> https://src.fedoraproject.org/rpms/rhino/c/
> 3ab80676f2e841b57c35c65836baab3c9cd22ca5.patch
> 
> You might try to build it once again.

Comment 2 Didik Supriadi 2021-10-17 18:19:57 UTC
I don't know how to build python packages.
here's the snippet of my patch for the current javabridge:

diff --git a/python-javabridge.spec b/python-javabridge.spec
index 58772e8..b15e27a 100644
--- a/python-javabridge.spec
+++ b/python-javabridge.spec
@@ -31,7 +31,9 @@ BuildRequires:  python%{python3_pkgversion}-sphinx
 BuildRequires:  python%{python3_pkgversion}-numpy
 BuildRequires:  python%{python3_pkgversion}-nose
 BuildRequires:  gcc
+BuildRequires:  javapackages-tools
 BuildRequires:  rhino
+BuildRequires:  xmvn-tools
 Requires:       rhino
 %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
 
@@ -45,7 +47,7 @@ ExclusiveArch:  i686 x86_64
 %autosetup -p1
 # unbundle
 find . -name \*.jar -print -delete
-ln -s %{_javadir}/rhino.jar %{modname}/jars
+ln -s $(find-jar org.mozilla:rhino) %{modname}/jars
 
 %build
 export JAVA_HOME=%{_prefix}/lib/jvm/java

Comment 3 Raphael Groner 2021-10-18 13:06:47 UTC
Thanks. Could you send as a pull request in pagure? That would be even more helpful.


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