[Buildroot] [PATCH] package/ca-certificates: always use host-python3

John Keeping john at metanate.com
Thu Mar 25 12:46:16 UTC 2021

When no Python package is selected for the target, ca-certificate
defaults to host-python (as opposed to host-python3).  However, with
many packages using the meson build system, which requires host-python3,
it is likely that this results in both Python 2 and Python 3 being built
for the host.

One option would be to flip the default to use host-python3 when no
target Python package is selected, but Python 2 is no longer supported
and the package is marked as deprecated so it makes sense to just
require host-python3 here.

Signed-off-by: John Keeping <john at metanate.com>
 package/ca-certificates/ca-certificates.mk | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/package/ca-certificates/ca-certificates.mk b/package/ca-certificates/ca-certificates.mk
index 5c24d4be49..86e64f4270 100644
--- a/package/ca-certificates/ca-certificates.mk
+++ b/package/ca-certificates/ca-certificates.mk
@@ -7,11 +7,7 @@
 CA_CERTIFICATES_SITE = http://snapshot.debian.org/archive/debian/20200602T145955Z/pool/main/c/ca-certificates
-# ca-certificates can be built with either python 2 or python 3
-# but it must be at least python 2.7
-	$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)
+CA_CERTIFICATES_DEPENDENCIES = host-openssl host-python3
 CA_CERTIFICATES_LICENSE = GPL-2.0+ (script), MPL-2.0 (data)

More information about the buildroot mailing list