Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/python-shapely/load_dll_c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/python-shapely/load_dll_c.patch')
-rw-r--r--community/python-shapely/load_dll_c.patch42
1 files changed, 11 insertions, 31 deletions
diff --git a/community/python-shapely/load_dll_c.patch b/community/python-shapely/load_dll_c.patch
index ac1c2ec9..8efc8ec5 100644
--- a/community/python-shapely/load_dll_c.patch
+++ b/community/python-shapely/load_dll_c.patch
@@ -1,33 +1,13 @@
-diff -rauN a/shapely/_buildcfg.py b/shapely/_buildcfg.py
---- a/shapely/_buildcfg.py 2018-07-18 22:12:15.000000000 +0200
-+++ b/shapely/_buildcfg.py 2019-10-31 17:08:46.860770741 +0100
-@@ -165,7 +165,7 @@
- if not lgeos:
- lgeos = load_dll('geos_c',
- fallbacks=['libgeos_c.so.1', 'libgeos_c.so'])
-- free = load_dll('c').free
-+ free = load_dll('c', fallbacks=['/usr/lib/libc.so.6']).free
- free.argtypes = [c_void_p]
- free.restype = None
-
-diff -rauN a/shapely/geos.py b/shapely/geos.py
---- a/shapely/geos.py 2018-07-18 22:12:15.000000000 +0200
-+++ b/shapely/geos.py 2019-10-31 17:09:36.292815253 +0100
-@@ -73,7 +73,7 @@
- os.path.join(sys.prefix, "lib", "libgeos_c.so"),
- ]
- _lgeos = load_dll('geos_c', fallbacks=alt_paths)
-- free = load_dll('c').free
-+ free = load_dll('c', fallbacks=['/usr/lib/libc.so.6']).free
- free.argtypes = [c_void_p]
- free.restype = None
-
-@@ -110,7 +110,7 @@
- ]
+diff -rauN Shapely-1.7.0/shapely/geos.py Shapely-1.7.0-load_dll-patch/shapely/geos.py
+--- Shapely-1.7.0/shapely/geos.py 2019-12-31 18:31:44.000000000 +0100
++++ Shapely-1.7.0-load_dll-patch/shapely/geos.py 2020-04-23 08:46:30.677274478 +0200
+@@ -87,7 +87,8 @@
_lgeos = load_dll('geos_c', fallbacks=alt_paths)
-
-- free = load_dll('c').free
-+ free = load_dll('c', fallbacks=['/usr/lib/libc.so.6']).free
+ # Necessary for environments with only libc.musl
+ c_alt_paths = [
+- 'libc.musl-x86_64.so.1'
++ 'libc.musl-x86_64.so.1',
++ 'libc.so.6'
+ ]
+ free = load_dll('c', fallbacks=c_alt_paths).free
free.argtypes = [c_void_p]
- free.restype = None
-