From 4adbbbbec3711bdeb868b80888d0b75d8529cbf1 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 3 Jan 2026 23:43:19 +0100 Subject: [PATCH] package/python-pillow: propagate python-pybind C++ dependency Commit 5f446a8d6dd8715385d6e2df2714f064bf26243d ("package/python-pillow: bump to version 12.0.0") added a select BR2_PACKAGE_PYTHON_PYBIND to python-pillow without propagating the C++ dependency, causing: WARNING: unmet direct dependencies detected for BR2_PACKAGE_PYTHON_PYBIND Depends on [n]: BR2_PACKAGE_PYTHON3 [=y] && BR2_INSTALL_LIBSTDCPP [=n] Selected by [y]: - BR2_PACKAGE_PYTHON_PILLOW [=y] && BR2_PACKAGE_PYTHON3 [=y] Fix this by propagating the dependency to python-pillow, and in turn to python-pillow reverse dependencies. Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- package/python-pillow/Config.in | 4 ++++ package/python-qrcode/Config.in | 4 ++++ package/python-weasyprint/Config.in | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package/python-pillow/Config.in b/package/python-pillow/Config.in index 51d8db5920..eaf98c85af 100644 --- a/package/python-pillow/Config.in +++ b/package/python-pillow/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_PYTHON_PILLOW bool "python-pillow" + depends on BR2_INSTALL_LIBSTDCPP # python-pybind select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime select BR2_PACKAGE_PYTHON3_ZLIB select BR2_PACKAGE_PYTHON_PYBIND @@ -14,3 +15,6 @@ config BR2_PACKAGE_PYTHON_PILLOW tiff, freetype, webp, and openjpeg (JPEG-2000). https://pypi.python.org/pypi/Pillow/ + +comment "python-pillow needs a toolchain w/ C++" + depends on !BR2_INSTALL_LIBSTDCPP diff --git a/package/python-qrcode/Config.in b/package/python-qrcode/Config.in index 9a17cc1f08..071c867b01 100644 --- a/package/python-qrcode/Config.in +++ b/package/python-qrcode/Config.in @@ -13,6 +13,10 @@ config BR2_PACKAGE_PYTHON_QRCODE_SVG config BR2_PACKAGE_PYTHON_QRCODE_PIL bool "PIL support" + depends on BR2_INSTALL_LIBSTDCPP # python-pillow select BR2_PACKAGE_PYTHON_PILLOW +comment "PIL support needs a toolchain w/ C++" + depends on !BR2_INSTALL_LIBSTDCPP + endif diff --git a/package/python-weasyprint/Config.in b/package/python-weasyprint/Config.in index 5ed84e075e..9db2a5afbb 100644 --- a/package/python-weasyprint/Config.in +++ b/package/python-weasyprint/Config.in @@ -1,6 +1,6 @@ config BR2_PACKAGE_PYTHON_WEASYPRINT bool "python-weasyprint" - depends on BR2_INSTALL_LIBSTDCPP # python-zopfli + depends on BR2_INSTALL_LIBSTDCPP # python-zopfli, python-pillow select BR2_PACKAGE_PYTHON_BROTLI # runtime select BR2_PACKAGE_PYTHON_CFFI # runtime select BR2_PACKAGE_PYTHON_CSSSELECT2 # runtime