Bug 1256490 - Package also Python, Perl and Java bindings
Summary: Package also Python, Perl and Java bindings
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: sword
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: greg.hellings
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-24 18:01 UTC by Matěj Cepl
Modified: 2019-01-09 12:54 UTC (History)
5 users (show)

Fixed In Version: sword-1.7.4-6.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-27 02:08:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 640614 0 None None None Never

Description Matěj Cepl 2015-08-24 18:01:28 UTC
Description of problem:
There is a number of scripts which can be used especially for the authoring Bible modules, which require Python or Perl bindings to the libsword library.

There is a parallel Debian bug at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640614

Comment 1 Matěj Cepl 2015-08-24 18:04:23 UTC
Instructions are at http://crosswire.org/svn/sword/trunk/bindings/README

Javan bindings are a bit questionable because one can always use JSword http://crosswire.org/wiki/DevTools:JSword

Comment 2 greg.hellings 2015-08-24 18:09:39 UTC
Python bindings already exist: sword-python

Perl bindings were attempted, but I still haven't gotten the installation to work within RPM builds correctly. There's some deficiency in the generation of the build files that I've never been able to diagnose, largely because I know nothing about how to build Perl bindings outside of what is already in the CMake files.

Java bindings are not supported, as the Java JNI bindings are only targeting Android.

I'm curious - what helpful scripts are you referencing?

Comment 3 Matěj Cepl 2015-08-24 18:17:19 UTC
Right, actually it is possible just to rebuild Rawhide package on EPEL-7 and I get working Python bindings.

After git merge master on epel7 branch I get something which builds in Koji (http://koji.fedoraproject.org/koji/taskinfo?taskID=10808772) and I can build xiphos against it.

Comment 4 Matěj Cepl 2015-08-24 18:19:04 UTC
(In reply to greg.hellings from comment #2)
> I'm curious - what helpful scripts are you referencing?

Mainly stuff from http://crosswire.org/svn/sword-tools/trunk/ (e.g., versification/), see http://thread.gmane.org/gmane.comp.literature.sword.devel/27571/focus=27574

Comment 5 greg.hellings 2015-08-24 18:19:57 UTC
I already have a build of the latest Xiphos in Bodhi waiting to go stable. If you want to test that instead, you can take a look. But I didn't need to update sword to do it, only biblesync.

https://bodhi.fedoraproject.org/updates/xiphos-4.0.3-1.el7

Comment 6 greg.hellings 2015-08-24 18:23:49 UTC
All of those should run fine with the Python bindings alone. I didn't find anything that uses the Perl bindings in there. I believe the Perl bindings are only used locally by a select group of individuals. I'd like to get them fixed up, but I haven't had time to fix up the deficiencies with the CMake script to get them build.

Are you also saying the Sword version on EPEL doesn't have sword-python?

Comment 7 Matěj Cepl 2015-08-24 20:23:16 UTC
(In reply to greg.hellings from comment #6)
> All of those should run fine with the Python bindings alone. I didn't find
> anything that uses the Perl bindings in there. I believe the Perl bindings
> are only used locally by a select group of individuals. I'd like to get them
> fixed up, but I haven't had time to fix up the deficiencies with the CMake
> script to get them build.

Good. Then that's great. I have been already using xiphos from git repo, so yes, I have xiphos-gtk3-4.0.3-1.el7.x86_64 working just fine (BTW, why do we need gtk2 package on anything above EL6? Don't all these distros have gtk3 already?)

> Are you also saying the Sword version on EPEL doesn't have sword-python?

The latest sword on EL7 is http://koji.fedoraproject.org/koji/buildinfo?buildID=596486 which still didn't have it.

Comment 8 greg.hellings 2015-08-26 15:33:17 UTC
On the issue of GTK2 vs GTK3 builds, the preferred default for the project is still GTK2. There have been long-running known issues with GTK3 on some window managers and the official workaround within Xiphos is to use GTK2 until the bugs in GTK3 itself are worked out. As such, for as long as Xiphos supports it and GTK2 is available, I plan to maintain 2 as the default build until upstream advises otherwise. I also plan to keep both around so long as they are supported, as having both available helps triage when a bug might be a result of the toolchain-specific code.

Comment 9 greg.hellings 2015-08-26 16:03:41 UTC
As I'm reviewing the changes necessary to get 1.7.4 into the EPEL-7 branch, it will require a rebuild of both Xiphos and BibleTime. As there is currently a Xiphos update in flight which should resolve out in a few days, I will push the new build of Sword after the current update to Xiphos is released. Hopefully Friday I can get Xiphos 4.0.3 update out and make this build sometime over the weekend.

1.7.4 is when I introduced SOVERSION. All versions prior to that are improperly keyed to the release version, which necessitated a rebuild of Xiphos and BibleTime after every Sword update.

Comment 10 Matěj Cepl 2016-01-16 23:12:49 UTC
Is there any hope 1.7.4 finally making it (together with Python-bindings) to EPEL-7, please?

Comment 11 greg.hellings 2016-02-08 17:18:19 UTC
Building in the version with Python right now. Perl is still not properly building upstream, and Java has never been supported outside of Android.

Comment 12 Fedora Update System 2016-02-08 17:36:08 UTC
sword-1.7.4-6.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-0cf47875b0

Comment 13 Fedora Update System 2016-02-10 11:52:57 UTC
sword-1.7.4-6.el7 has been pushed to the Fedora EPEL 7 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-EPEL-2016-0cf47875b0

Comment 14 Fedora Update System 2016-02-27 02:08:15 UTC
sword-1.7.4-6.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, 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.