Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-84461: Omit resource mod and getresuid funcs on Emscripten (GH-96303) #96303

Merged
merged 2 commits into from
Sep 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
``wasm32-emscripten`` platform no longer builds :mod:`resource` module,
:func:`~os.getresuid`, :func:`~os.getresgid`, and their setters. The APIs
are stubs and not functional.
4 changes: 4 additions & 0 deletions Tools/wasm/config.site-wasm32-emscripten
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ ac_cv_func_geteuid=no
ac_cv_func_getegid=no
ac_cv_func_seteuid=no
ac_cv_func_setegid=no
ac_cv_func_getresuid=no
ac_cv_func_getresgid=no
ac_cv_func_setresuid=no
ac_cv_func_setresgid=no

# Syscalls not implemented in emscripten
# [Errno 52] Function not implemented
Expand Down
3 changes: 1 addition & 2 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7048,6 +7048,7 @@ AS_CASE([$ac_sys_system],
dnl curses and tkinter user interface are not available.
dnl dbm and gdbm aren't available, too.
dnl Emscripten and WASI provide only stubs for pwd, grp APIs.
dnl resource functions (get/setrusage) are stubs, too.
PY_STDLIB_MOD_SET_NA(
[_curses],
[_curses_panel],
Expand All @@ -7063,6 +7064,7 @@ AS_CASE([$ac_sys_system],
[nis],
[ossaudiodev],
[pwd],
[resource],
[spwd],
[syslog],
)
Expand All @@ -7071,7 +7073,6 @@ AS_CASE([$ac_sys_system],
dnl These modules are not particularly useful in browsers.
PY_STDLIB_MOD_SET_NA(
[fcntl],
[resource],
[readline],
[termios],
)
Expand All @@ -7083,7 +7084,6 @@ AS_CASE([$ac_sys_system],
[_ctypes_test],
[fcntl],
[mmap],
[resource],
[termios],
)
]
Expand Down