[Buildroot] [git commit branch/2025.11.x] package/python3: remove nis and ossaudiodev modules
Thomas Perale
thomas.perale at mind.be
Fri Mar 13 15:14:33 UTC 2026
commit: https://gitlab.com/buildroot.org/buildroot/-/commit/13241770277b4809c3633c6855a216f3ecbfaed4
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/2025.11.x
These modules were dropped in Python 3.13 as per PEP 594.
The current version in Buildroot is 3.14.3.
- Remove the TODO and related config overrides in python3.mk.
- Remove BR2_PACKAGE_PYTHON3_OSSAUDIODEV from Config.in.
- Add BR2_PACKAGE_PYTHON3_OSSAUDIODEV to Config.in.legacy.
See [1] [2] [3].
[1] https://peps.python.org/pep-0594/
[2] https://github.com/python/cpython/commit/fc07fe4e37fbfd74e7130a20c13d0c07f0a5cff1
[3] https://github.com/python/cpython/commit/17e1fe0f9ba87eb170493daa0a4de207425195fd
Signed-off-by: Shubham Chakraborty <chakrabortyshubham66 at gmail.com>
[Julien:
- add links in commit log
- move legacy option in 2026.05 section
]
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit df6e7a6664482da53c8a65a526e8dc3f5dd8aae2)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
Config.in.legacy | 6 ++++++
package/python3/Config.in | 5 -----
package/python3/python3.mk | 12 ++----------
3 files changed, 8 insertions(+), 15 deletions(-)
diff --git a/Config.in.legacy b/Config.in.legacy
index 50d7253221..c5bae47061 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -146,6 +146,12 @@ endif
comment "Legacy options removed in 2025.11.3"
+config BR2_PACKAGE_PYTHON3_OSSAUDIODEV
+ bool "python3 ossaudiodev module removed"
+ select BR2_LEGACY
+ help
+ The ossaudiodev module was removed in Python 3.13.
+
config BR2_PACKAGE_QEMU_TARGET_CRIS
bool "qemu cris support has been removed"
select BR2_LEGACY
diff --git a/package/python3/Config.in b/package/python3/Config.in
index cfc08bad86..a2d62af2c6 100644
--- a/package/python3/Config.in
+++ b/package/python3/Config.in
@@ -76,11 +76,6 @@ config BR2_PACKAGE_PYTHON3_DECIMAL
help
decimal module for Python3.
-config BR2_PACKAGE_PYTHON3_OSSAUDIODEV
- bool "ossaudiodev module"
- help
- ossaudiodev module for Python3.
-
config BR2_PACKAGE_PYTHON3_READLINE
bool "readline"
select BR2_PACKAGE_READLINE
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index 8f7574347b..ccd6e06db3 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -28,7 +28,6 @@ HOST_PYTHON3_CONF_OPTS += \
# Make sure that LD_LIBRARY_PATH overrides -rpath.
# This is needed because libpython may be installed at the same time that
# python is called.
-# TODO: nis and ossaudiodev modules will be dropped in 3.13: https://peps.python.org/pep-0594/
HOST_PYTHON3_CONF_ENV += \
LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags" \
py_cv_module_unicodedata=yes \
@@ -38,9 +37,7 @@ HOST_PYTHON3_CONF_ENV += \
py_cv_module__codecs_jp=n/a \
py_cv_module__codecs_kr=n/a \
py_cv_module__codecs_tw=n/a \
- py_cv_module__uuid=n/a \
- py_cv_module_nis=n/a \
- py_cv_module_ossaudiodev=n/a
+ py_cv_module__uuid=n/a
PYTHON3_DEPENDENCIES = host-python3 libffi
@@ -170,17 +167,12 @@ else
PYTHON3_CONF_ENV += py_cv_module_zlib=n/a
endif
-ifneq ($(BR2_PACKAGE_PYTHON3_OSSAUDIODEV),y)
-PYTHON3_CONF_ENV += py_cv_module_ossaudiodev=n/a
-endif
-
PYTHON3_CONF_ENV += \
ac_cv_have_long_long_format=yes \
ac_cv_buggy_getaddrinfo=no \
ac_cv_file__dev_ptmx=yes \
ac_cv_file__dev_ptc=yes \
- ac_cv_working_tzset=yes \
- py_cv_module_nis=n/a
+ ac_cv_working_tzset=yes
# GCC is always compliant with IEEE754
ifeq ($(BR2_ENDIAN),"LITTLE")
More information about the buildroot
mailing list