[Buildroot] [PATCH 2/2] package/alsa-lib: always use python3
Illia Bitkov
illia.bitkov at mind.be
Fri Sep 3 12:21:52 UTC 2021
Python is only required for smixer-python and it supports python3
Because python2 is deprecated removing it as a build dependacy
Signed-off-by: Illia Bitkov <illia.bitkov at mind.be>
---
package/alsa-lib/Config.in | 2 +-
package/alsa-lib/alsa-lib.mk | 11 ++---------
2 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/package/alsa-lib/Config.in b/package/alsa-lib/Config.in
index 4168d1f220..af3de984d9 100644
--- a/package/alsa-lib/Config.in
+++ b/package/alsa-lib/Config.in
@@ -22,7 +22,7 @@ if BR2_PACKAGE_ALSA_LIB
config BR2_PACKAGE_ALSA_LIB_PYTHON
bool "Python support for alsa-lib"
- depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
+ depends on BR2_PACKAGE_PYTHON3
help
Add python support for alsa-lib.
Python will be built and libpython will be installed
diff --git a/package/alsa-lib/alsa-lib.mk b/package/alsa-lib/alsa-lib.mk
index 57c654649f..f1a65b8e40 100644
--- a/package/alsa-lib/alsa-lib.mk
+++ b/package/alsa-lib/alsa-lib.mk
@@ -58,18 +58,11 @@ endif
ifeq ($(BR2_PACKAGE_ALSA_LIB_PYTHON),y)
ALSA_LIB_CONF_OPTS += \
- --enable-mixer-pymods
-ifeq ($(BR2_PACKAGE_PYTHON),y)
-ALSA_LIB_CONF_OPTS += --with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR) \
- --with-pythonincludes=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
-ALSA_LIB_CFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
-ALSA_LIB_DEPENDENCIES = python
-else
-ALSA_LIB_CONF_OPTS += --with-pythonlibs=-lpython$(PYTHON3_VERSION_MAJOR) \
+ --enable-mixer-pymods\
+ --with-pythonlibs=-lpython$(PYTHON3_VERSION_MAJOR) \
--with-pythonincludes=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
ALSA_LIB_CFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
ALSA_LIB_DEPENDENCIES = python3
-endif
else
ALSA_LIB_CONF_OPTS += --disable-python
endif
--
2.25.1
More information about the buildroot
mailing list