mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
package/python3: remove nis and ossaudiodev modules
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]fc07fe4e37[3]17e1fe0f9bSigned-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com> [Julien: - add links in commit log - move legacy option in 2026.05 section ] Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
3506c8a0f8
commit
df6e7a6664
@@ -146,6 +146,12 @@ endif
|
|||||||
|
|
||||||
comment "Legacy options removed in 2026.05"
|
comment "Legacy options removed in 2026.05"
|
||||||
|
|
||||||
|
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_TARGET_EDK2_PLATFORM_OVMF_I386
|
config BR2_TARGET_EDK2_PLATFORM_OVMF_I386
|
||||||
bool "EDK2 OVMF IA32 removed"
|
bool "EDK2 OVMF IA32 removed"
|
||||||
select BR2_LEGACY
|
select BR2_LEGACY
|
||||||
|
|||||||
@@ -76,11 +76,6 @@ config BR2_PACKAGE_PYTHON3_DECIMAL
|
|||||||
help
|
help
|
||||||
decimal module for Python3.
|
decimal module for Python3.
|
||||||
|
|
||||||
config BR2_PACKAGE_PYTHON3_OSSAUDIODEV
|
|
||||||
bool "ossaudiodev module"
|
|
||||||
help
|
|
||||||
ossaudiodev module for Python3.
|
|
||||||
|
|
||||||
config BR2_PACKAGE_PYTHON3_READLINE
|
config BR2_PACKAGE_PYTHON3_READLINE
|
||||||
bool "readline"
|
bool "readline"
|
||||||
select BR2_PACKAGE_READLINE
|
select BR2_PACKAGE_READLINE
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ HOST_PYTHON3_CONF_OPTS += \
|
|||||||
# Make sure that LD_LIBRARY_PATH overrides -rpath.
|
# Make sure that LD_LIBRARY_PATH overrides -rpath.
|
||||||
# This is needed because libpython may be installed at the same time that
|
# This is needed because libpython may be installed at the same time that
|
||||||
# python is called.
|
# python is called.
|
||||||
# TODO: nis and ossaudiodev modules will be dropped in 3.13: https://peps.python.org/pep-0594/
|
|
||||||
HOST_PYTHON3_CONF_ENV += \
|
HOST_PYTHON3_CONF_ENV += \
|
||||||
LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags" \
|
LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags" \
|
||||||
py_cv_module_unicodedata=yes \
|
py_cv_module_unicodedata=yes \
|
||||||
@@ -38,9 +37,7 @@ HOST_PYTHON3_CONF_ENV += \
|
|||||||
py_cv_module__codecs_jp=n/a \
|
py_cv_module__codecs_jp=n/a \
|
||||||
py_cv_module__codecs_kr=n/a \
|
py_cv_module__codecs_kr=n/a \
|
||||||
py_cv_module__codecs_tw=n/a \
|
py_cv_module__codecs_tw=n/a \
|
||||||
py_cv_module__uuid=n/a \
|
py_cv_module__uuid=n/a
|
||||||
py_cv_module_nis=n/a \
|
|
||||||
py_cv_module_ossaudiodev=n/a
|
|
||||||
|
|
||||||
PYTHON3_DEPENDENCIES = host-python3 libffi
|
PYTHON3_DEPENDENCIES = host-python3 libffi
|
||||||
|
|
||||||
@@ -176,17 +173,12 @@ else
|
|||||||
PYTHON3_CONF_ENV += py_cv_module__zstd=n/a
|
PYTHON3_CONF_ENV += py_cv_module__zstd=n/a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_PYTHON3_OSSAUDIODEV),y)
|
|
||||||
PYTHON3_CONF_ENV += py_cv_module_ossaudiodev=n/a
|
|
||||||
endif
|
|
||||||
|
|
||||||
PYTHON3_CONF_ENV += \
|
PYTHON3_CONF_ENV += \
|
||||||
ac_cv_have_long_long_format=yes \
|
ac_cv_have_long_long_format=yes \
|
||||||
ac_cv_buggy_getaddrinfo=no \
|
ac_cv_buggy_getaddrinfo=no \
|
||||||
ac_cv_file__dev_ptmx=yes \
|
ac_cv_file__dev_ptmx=yes \
|
||||||
ac_cv_file__dev_ptc=yes \
|
ac_cv_file__dev_ptc=yes \
|
||||||
ac_cv_working_tzset=yes \
|
ac_cv_working_tzset=yes
|
||||||
py_cv_module_nis=n/a
|
|
||||||
|
|
||||||
# GCC is always compliant with IEEE754
|
# GCC is always compliant with IEEE754
|
||||||
ifeq ($(BR2_ENDIAN),"LITTLE")
|
ifeq ($(BR2_ENDIAN),"LITTLE")
|
||||||
|
|||||||
Reference in New Issue
Block a user