diff mbox series

[meta-openembedded,2/2] python3-pillow: add libxcb to RDEPENDS for x11

Message ID 20230504091621.2607413-2-f_l_k@t-online.de
State Under Review
Headers show
Series [meta-openembedded,1/2] xdg-desktop-portal-wlr: update 0.6.0 -> 0.7.0 | expand

Commit Message

Markus Volk May 4, 2023, 9:16 a.m. UTC
This fixes:
ERROR: python3-pillow-9.5.0-r0 do_package_qa: QA Issue: /usr/lib/python3.11/site-packages/PIL/_imaging.cpython-311-x86_64-linux-gnu.so contained in package python3-pillow requires libxcb.so.1()(64bit), but no providers found in RDEPENDS:python3-pillow? [file-rdeps]
ERROR: python3-pillow-9.5.0-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/flk/poky/build-intel-sway/tmp/work/corei7-64-poky-linux/python3-pillow/9.5.0-r0/temp/log.do_package_qa.2328146
ERROR: Task (/home/flk/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-pillow_9.5.0.bb:do_package_qa) failed with exit code '1'

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta-python/recipes-devtools/python/python3-pillow_9.5.0.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pillow_9.5.0.bb b/meta-python/recipes-devtools/python/python3-pillow_9.5.0.bb
index 76b3a82db..7ec43c60d 100644
--- a/meta-python/recipes-devtools/python/python3-pillow_9.5.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pillow_9.5.0.bb
@@ -30,6 +30,7 @@  RDEPENDS:${PN} += " \
     ${PYTHON_PN}-misc \
     ${PYTHON_PN}-logging \
     ${PYTHON_PN}-numbers \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcb', '', d)} \
 "
 
 RDEPENDS:${PN}-ptest += " \