diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-03-02 01:11:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 01:11:41 (GMT) |
commit | 25b21596fe621fb2950d5ec630ca9e2c8880ddf8 (patch) | |
tree | 019f6d44ec5541758a15e71927bbc4c3fbb1a839 | |
parent | 90f75e1069f2d692480bcd305fc35b4fe7847e18 (diff) | |
download | cpython-25b21596fe621fb2950d5ec630ca9e2c8880ddf8.zip cpython-25b21596fe621fb2950d5ec630ca9e2c8880ddf8.tar.gz cpython-25b21596fe621fb2950d5ec630ca9e2c8880ddf8.tar.bz2 |
[3.12] GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) (GH-116231)
GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228)
Wasmtime doesn't implement these functions in a way to pass test_posix (https://github.com/bytecodealliance/wasmtime/issues/7830).
(cherry picked from commit 5dc8c84d397110f9edfa56793ad8887b1f176d79)
Co-authored-by: Brett Cannon <brett@python.org>
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-03-01-14-22-08.gh-issue-115978.r2ePTo.rst | 4 | ||||
-rw-r--r-- | Tools/wasm/config.site-wasm32-wasi | 9 |
2 files changed, 13 insertions, 0 deletions
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 index 0000000..2adac31 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-03-01-14-22-08.gh-issue-115978.r2ePTo.rst @@ -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). diff --git a/Tools/wasm/config.site-wasm32-wasi b/Tools/wasm/config.site-wasm32-wasi index 5e98775..4a1a466 100644 --- a/Tools/wasm/config.site-wasm32-wasi +++ b/Tools/wasm/config.site-wasm32-wasi @@ -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 |