Control: tags -1 patch, pending

Hi. Thanks for reporting.

Issue is fixed in git and it will be available in next upload. For a
quick workaround you can use supplied patches.
Description: gumbo python module is trying to load libgumbo.so
 libgumbo1 package is providing libgumbo.so.1
 This patch is making gumbo python module to load libgumbo.so.1
Author: Onur Aslan <o...@onur.im>
Forwarded: not-needed
Last-Update: 2015-06-20

--- a/python/gumbo/gumboc.py
+++ b/python/gumbo/gumboc.py
@@ -39,12 +39,8 @@
   _dll = ctypes.cdll.LoadLibrary(os.path.join(
       os.path.dirname(__file__), '..', '..', '.libs', _name_of_lib))
 except OSError:
-  # PyPI or setuptools install, look in the current directory.
-  _dll = ctypes.cdll.LoadLibrary(os.path.join(
-      os.path.dirname(__file__), _name_of_lib))
-except OSError:
   # System library, on unix or mac osx
-  _dll = ctypes.cdll.LoadLibrary(_name_of_lib)
+  _dll = ctypes.cdll.LoadLibrary(_name_of_lib + '.1')
 
 # Some aliases for common types.
 _bitvector = ctypes.c_uint
Description: Importing gumbo in python3 is not possible due to circular
 dependent imports. This patch is fixing this issue.
Author: Onur Aslan <o...@onur.im>
Bug-Debian: https://bugs.debian.org/789299
Forwarded: https://github.com/google/gumbo-parser/pull/343
Last-Update: 2015-06-20

--- a/python/gumbo/gumboc.py
+++ b/python/gumbo/gumboc.py
@@ -26,7 +26,7 @@
 import contextlib
 import ctypes
 import os.path
-import gumboc_tags
+from gumbo import gumboc_tags
 
 _name_of_lib = 'libgumbo.so'
 if sys.platform.startswith('darwin'):

Reply via email to