]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228)
authorBrett Cannon <brett@python.org>
Sat, 2 Mar 2024 00:52:12 +0000 (16:52 -0800)
committerGitHub <noreply@github.com>
Sat, 2 Mar 2024 00:52:12 +0000 (16:52 -0800)
Wasmtime doesn't implement these functions in a way to pass test_posix (https://github.com/bytecodealliance/wasmtime/issues/7830).

Misc/NEWS.d/next/Library/2024-03-01-14-22-08.gh-issue-115978.r2ePTo.rst [new file with mode: 0644]
Tools/wasm/config.site-wasm32-wasi

diff --git a/Misc/NEWS.d/next/Library/2024-03-01-14-22-08.gh-issue-115978.r2ePTo.rst b/Misc/NEWS.d/next/Library/2024-03-01-14-22-08.gh-issue-115978.r2ePTo.rst
new file mode 100644 (file)
index 0000000..2adac31
--- /dev/null
@@ -0,0 +1,4 @@
+Disable preadv(), readv(), pwritev(), and writev() on WASI.
+
+Under wasmtime for WASI 0.2, these functions don't pass test_posix
+(https://github.com/bytecodealliance/wasmtime/issues/7830).
index 5e98775400f6ead8114962be13f290559f6cbde6..4a1a466a4ab3f16b903686f26fee50f6397f84ad 100644 (file)
@@ -40,3 +40,12 @@ ac_cv_header_netpacket_packet_h=no
 
 # Disable int-conversion for wask-sdk as it triggers an error from version 17.
 ac_cv_disable_int_conversion=yes
+
+# preadv(), readv(), pwritev(), and writev() under wasmtime's WASI 0.2 support
+# do not use more than the first buffer provided, failing under test_posix.
+# Since wasmtime will not be changing this behaviour, disable the functions.
+# https://github.com/bytecodealliance/wasmtime/issues/7830
+ac_cv_func_preadv=no
+ac_cv_func_readv=no
+ac_cv_func_pwritev=no
+ac_cv_func_writev=no