Skip to content

Commit a36235d

Browse files
authored
gh-84461: Omit resource mod and getresuid funcs on Emscripten (GH-96303)
1 parent 1fc8bd3 commit a36235d

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``wasm32-emscripten`` platform no longer builds :mod:`resource` module,
2+
:func:`~os.getresuid`, :func:`~os.getresgid`, and their setters. The APIs
3+
are stubs and not functional.

Tools/wasm/config.site-wasm32-emscripten

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ ac_cv_func_geteuid=no
4949
ac_cv_func_getegid=no
5050
ac_cv_func_seteuid=no
5151
ac_cv_func_setegid=no
52+
ac_cv_func_getresuid=no
53+
ac_cv_func_getresgid=no
54+
ac_cv_func_setresuid=no
55+
ac_cv_func_setresgid=no
5256

5357
# Syscalls not implemented in emscripten
5458
# [Errno 52] Function not implemented

configure

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -7095,6 +7095,7 @@ AS_CASE([$ac_sys_system],
70957095
dnl curses and tkinter user interface are not available.
70967096
dnl dbm and gdbm aren't available, too.
70977097
dnl Emscripten and WASI provide only stubs for pwd, grp APIs.
7098+
dnl resource functions (get/setrusage) are stubs, too.
70987099
PY_STDLIB_MOD_SET_NA(
70997100
[_curses],
71007101
[_curses_panel],
@@ -7110,6 +7111,7 @@ AS_CASE([$ac_sys_system],
71107111
[nis],
71117112
[ossaudiodev],
71127113
[pwd],
7114+
[resource],
71137115
[spwd],
71147116
[syslog],
71157117
)
@@ -7118,7 +7120,6 @@ AS_CASE([$ac_sys_system],
71187120
dnl These modules are not particularly useful in browsers.
71197121
PY_STDLIB_MOD_SET_NA(
71207122
[fcntl],
7121-
[resource],
71227123
[readline],
71237124
[termios],
71247125
)
@@ -7130,7 +7131,6 @@ AS_CASE([$ac_sys_system],
71307131
[_ctypes_test],
71317132
[fcntl],
71327133
[mmap],
7133-
[resource],
71347134
[termios],
71357135
)
71367136
]

0 commit comments

Comments
 (0)