[Buildroot] [git commit] package/cracklib: move python support to python3

Yann E. MORIN yann.morin.1998 at free.fr
Wed Feb 9 21:07:47 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=6ab41d540ef7b88496bf3fe9cb39a1c747f29f3e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The configure script needs a bit of help to detect the python version.

Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
 package/cracklib/cracklib.mk | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/package/cracklib/cracklib.mk b/package/cracklib/cracklib.mk
index 8e6a844f11..46917b7926 100644
--- a/package/cracklib/cracklib.mk
+++ b/package/cracklib/cracklib.mk
@@ -20,9 +20,12 @@ else
 CRACKLIB_CONF_OPTS += --without-zlib
 endif
 
-ifeq ($(BR2_PACKAGE_PYTHON),y)
+ifeq ($(BR2_PACKAGE_PYTHON3),y)
 CRACKLIB_CONF_OPTS += --with-python
-CRACKLIB_DEPENDENCIES += python
+CRACKLIB_CONF_ENV += \
+	ac_cv_path_PYTHON=$(HOST_DIR)/bin/python3 \
+	am_cv_python_version=$(PYTHON3_VERSION_MAJOR)
+CRACKLIB_DEPENDENCIES += python3
 else
 CRACKLIB_CONF_OPTS += --without-python
 endif



More information about the buildroot mailing list