aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-cffi/musl-compat.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-19 18:15:50 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-09-20 11:05:35 +0000
commitc194901346a5e8e908198cd7c6c3d3dbdd4fda31 (patch)
tree7640b40627fc76e93493b1fcefd075ebe6d56f6c /main/py3-cffi/musl-compat.patch
parent18af55c38d38e7306c985bc184d02a71eb010e1f (diff)
downloadaports-c194901346a5e8e908198cd7c6c3d3dbdd4fda31.tar.bz2
aports-c194901346a5e8e908198cd7c6c3d3dbdd4fda31.tar.xz
main/py3-cffi: rename from py-cffi
Diffstat (limited to 'main/py3-cffi/musl-compat.patch')
-rw-r--r--main/py3-cffi/musl-compat.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/main/py3-cffi/musl-compat.patch b/main/py3-cffi/musl-compat.patch
new file mode 100644
index 0000000000..1145250a1b
--- /dev/null
+++ b/main/py3-cffi/musl-compat.patch
@@ -0,0 +1,65 @@
+--- a/c/test_c.py
++++ b/c/test_c.py
+@@ -86,7 +86,6 @@
+ if sys.platform.startswith("linux"):
+ RTLD_NODELETE
+ RTLD_NOLOAD
+- RTLD_DEEPBIND
+
+ def test_new_primitive_type():
+ py.test.raises(KeyError, new_primitive_type, "foo")
+@@ -1237,8 +1236,7 @@
+ def test_write_variable():
+ ## FIXME: this test assumes glibc specific behavior, it's not compliant with C standard
+ ## https://bugs.pypy.org/issue1643
+- if not sys.platform.startswith("linux"):
+- py.test.skip("untested")
++ py.test.skip("'stderr' is read-only in musl")
+ BVoidP = new_pointer_type(new_void_type())
+ ll = find_and_load_library('c')
+ stderr = ll.read_variable(BVoidP, "stderr")
+--- a/testing/cffi0/test_function.py
++++ b/testing/cffi0/test_function.py
+@@ -166,7 +166,7 @@
+ b"hello, world!\n"
+ b"hello, world2!\n"
+ b"hello int 42 long 84 long long 168\n"
+- b"hello (nil)\n")
++ b"hello 0\n")
+
+ def test_must_specify_type_of_vararg(self):
+ ffi = FFI(backend=self.Backend())
+@@ -249,8 +249,7 @@
+ assert res == 5
+
+ def test_write_variable(self):
+- if not sys.platform.startswith('linux'):
+- py.test.skip("probably no symbol 'stdout' in the lib")
++ py.test.skip("'stdout' is read-only in musl")
+ ffi = FFI(backend=self.Backend())
+ ffi.cdef("""
+ void *stdout;
+--- a/testing/cffi0/test_verify.py
++++ b/testing/cffi0/test_verify.py
+@@ -1612,8 +1612,7 @@
+ assert func() == 42
+
+ def test_FILE_stored_in_stdout():
+- if not sys.platform.startswith('linux'):
+- py.test.skip("likely, we cannot assign to stdout")
++ py.test.skip("'stdout' is read-only in musl")
+ ffi = FFI()
+ ffi.cdef("int printf(const char *, ...); FILE *setstdout(FILE *);")
+ lib = ffi.verify("""
+--- a/testing/cffi1/test_verify1.py
++++ b/testing/cffi1/test_verify1.py
+@@ -1576,8 +1576,7 @@
+ assert func() == 42
+
+ def test_FILE_stored_in_stdout():
+- if not sys.platform.startswith('linux'):
+- py.test.skip("likely, we cannot assign to stdout")
++ py.test.skip("'stdout' is read-only in musl")
+ ffi = FFI()
+ ffi.cdef("int printf(const char *, ...); FILE *setstdout(FILE *);")
+ lib = ffi.verify("""