FS#57221 - [python-pyenchant] [python2-pyenchant] broken by enchant -> enchant-2 pkgconfig rename

Attached to Project: Community Packages
Opened by Jeb Rosen (jebrosen) - Thursday, 25 January 2018, 04:34 GMT
Last edited by Balló György (City-busz) - Thursday, 25 January 2018, 10:44 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In the upgrade from enchant 2.1.2 to enchant 2.2.1, enchant's pkgconfig name changed from "enchant" to "enchant-2". This completely breaks python-pyenchant. The following patch appears to fix, tested by being able to use the spellcheck feature in zim after the patch is applied.

diff -ur pyenchant2-2.0.0/enchant/_enchant.py pyenchant2-2.0.0_fix/enchant/_enchant.py
--- pyenchant2-2.0.0/enchant/_enchant.py 2018-01-24 21:13:42.680056632 -0700
+++ pyenchant2-2.0.0_fix/enchant/_enchant.py 2018-01-24 21:14:20.620017925 -0700
@@ -72,6 +72,7 @@
yield "libenchant.so"
# See if ctypes can find the library for us, under various names.
yield find_library("enchant")
+ yield find_library("enchant-2")
yield find_library("libenchant")
yield find_library("libenchant-1")
# Special-case handling for enchant installed by macports.

( Reported upstream at https://github.com/rfk/pyenchant/issues/125 )
This task depends upon

Closed by  Balló György (City-busz)
Thursday, 25 January 2018, 10:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-pyenchant 2.0.0-2

Loading...