aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-augeas/dlopen-libc-explicitly.patch
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-09-10 00:32:02 +0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-10 10:15:33 -0300
commitbffae3f271f373337929f3d30ec9b3ea1ae51ac2 (patch)
tree826972b709962bbd673ef5b9b1d6c29810bf177f /community/py3-augeas/dlopen-libc-explicitly.patch
parent26e6f0d4abccea74826d47c5085d0252cfb069e6 (diff)
downloadaports-bffae3f271f373337929f3d30ec9b3ea1ae51ac2.tar.bz2
aports-bffae3f271f373337929f3d30ec9b3ea1ae51ac2.tar.xz
community/py-augeas: drop python2
Signed-off-by: prspkt <prspkt@protonmail.com>
Diffstat (limited to 'community/py3-augeas/dlopen-libc-explicitly.patch')
-rw-r--r--community/py3-augeas/dlopen-libc-explicitly.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/py3-augeas/dlopen-libc-explicitly.patch b/community/py3-augeas/dlopen-libc-explicitly.patch
new file mode 100644
index 0000000000..c7aa05a2b8
--- /dev/null
+++ b/community/py3-augeas/dlopen-libc-explicitly.patch
@@ -0,0 +1,32 @@
+--- a/augeas/__init__.py
++++ b/augeas/__init__.py
+@@ -42,7 +42,7 @@
+
+ import cffi
+ import types
+-from augeas.ffi import ffi, lib
++from augeas.ffi import ffi, lib, c89
+
+ PY3 = _pyver >= (3,)
+ AUGENC = 'utf8'
+@@ -421,8 +421,8 @@
+ # Create a python string and append it to our matches list
+ item = ffi.string(array[i])
+ matches.append(dec(item))
+- lib.free(array[i])
+- lib.free(array)
++ c89.free(array[i])
++ c89.free(array)
+ return matches
+
+ def span(self, path):
+--- a/augeas/ffi.py
++++ b/augeas/ffi.py
+@@ -40,6 +40,7 @@
+ """)
+
+ lib = ffi.dlopen("augeas")
++c89 = ffi.dlopen(None)
+
+ if __name__ == "__main__":
+ ffi.compile(verbose=True)