From fd991649d39c143fa60419691d01ffb816b39bf0 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 17 Dec 2025 19:48:22 +0100 Subject: [PATCH] package/libselinux: host-python3 needs SSL support Buildroot commit 285097051d4a7dd821f01d15c705867f7e26c635 bumped python-pip to version 25.3, causing build errors when host-python3 was built without SSL support: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. [...] Could not fetch URL https://pypi.org/simple/setuptools/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/setuptools/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none) Reverting the python-pip bump reveals the true cause of the build error by showing these messages: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. [...] DEPRECATION: Building 'selinux' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'selinux'. Discussion can be found at https://github.com/pypa/pip/issues/6334 Selecting BR2_PACKAGE_HOST_PYTHON3_SSL fixes the problem. Criu, the only other buildroot package using host-python-pip as dependency, already selects BR2_PACKAGE_HOST_PYTHON3_SSL. Fixes: https://autobuild.buildroot.net/results/fd6/fd6d3edd5f74d094621ac9fdb93db24520b7a6e3/ Signed-off-by: Bernd Kuhls Signed-off-by: Julien Olivain --- package/libselinux/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libselinux/Config.in b/package/libselinux/Config.in index bc40e32a46..db5694e7bd 100644 --- a/package/libselinux/Config.in +++ b/package/libselinux/Config.in @@ -7,6 +7,7 @@ config BR2_PACKAGE_LIBSELINUX select BR2_PACKAGE_PCRE2 select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC select BR2_PACKAGE_PYTHON_SETUPTOOLS if BR2_PACKAGE_PYTHON3 + select BR2_PACKAGE_HOST_PYTHON3_SSL if BR2_PACKAGE_PYTHON3 help libselinux is the runtime SELinux library that provides interfaces (e.g. library functions for the SELinux kernel