14
0

Accepting request 717096 from home:alarrosa:branches:devel:languages:python

- Modified enchant2.patch so the enchant-2 library is used when both
  enchant 1 and enchant 2 are installed on the system (boo#1141993).

OBS-URL: https://build.opensuse.org/request/show/717096
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyenchant?expand=0&rev=23
This commit is contained in:
Tomáš Chvátal
2019-07-22 07:50:07 +00:00
committed by Git OBS Bridge
parent ffea347a31
commit 461ccc4c4f
2 changed files with 13 additions and 7 deletions

View File

@@ -12,11 +12,11 @@ Index: pyenchant-2.0.0/enchant/_enchant.py
=================================================================== ===================================================================
--- pyenchant-2.0.0.orig/enchant/_enchant.py --- pyenchant-2.0.0.orig/enchant/_enchant.py
+++ pyenchant-2.0.0/enchant/_enchant.py +++ pyenchant-2.0.0/enchant/_enchant.py
@@ -71,6 +71,7 @@ def _e_path_possibilities(): @@ -65,6 +65,7 @@ def _e_path_possibilities():
yield "libenchant.so.1" """Generator yielding possible locations of the enchant library."""
yield "libenchant.so" # Allow it to be overridden using an environment variable.
# See if ctypes can find the library for us, under various names. yield os.environ.get("PYENCHANT_LIBRARY_PATH")
+ yield find_library("enchant-2") + yield find_library("enchant-2")
yield find_library("enchant") # For linuxish systems, allow default soname lookup a chance to succeed.
yield find_library("libenchant") if sys.platform not in ("win32", "darwin"):
yield find_library("libenchant-1") yield "libenchant.so.1.6.0"

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 19 10:11:23 UTC 2019 - Antonio Larrosa <alarrosa@suse.com>
- Modified enchant2.patch so the enchant-2 library is used when both
enchant 1 and enchant 2 are installed on the system (boo#1141993).
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 8 10:48:47 UTC 2019 - alarrosa@suse.com Tue Jan 8 10:48:47 UTC 2019 - alarrosa@suse.com