From patchwork Tue Feb 21 20:21:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 19956 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54CB5C636D7 for ; Tue, 21 Feb 2023 20:21:49 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by mx.groups.io with SMTP id smtpd.web11.53832.1677010907828715513 for ; Tue, 21 Feb 2023 12:21:49 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@denx.de header.s=phobos-20191101 header.b=GMM4dumF; spf=pass (domain: denx.de, ip: 85.214.62.61, mailfrom: marex@denx.de) Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 7ACA8857F9; Tue, 21 Feb 2023 21:21:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1677010905; bh=5OWTmZQsIcYzhaMeUd7qbbRoDwxXYIhOr/LbgnJwdq4=; h=From:To:Cc:Subject:Date:From; b=GMM4dumFaOP8xJj6wo56YAnIwZ8mJVMAjgcVb78yrirCQVd8JBSeqiitPyjGpusKm OdZ2wTfDWoIp+NTbYSJE2f18x9iIOHunjpfPb9UKw8d74dJGVvlRjwK4ZiV8bhn7xh UETYnoTfWE7RTwcA/hOCaZv1F2QGt74QUlqUZklgt+3/tgpcNznoYMb9A3D6CR5t/Y yJmCxh4dnxXfDpmblae4D7Ube+mppLe+ifjSg7QXqgGkCK7b4LglwK6JxLmYl+M5SQ 4oXUJ+g0nvp27yZwoAgFUDEoUzrx6PsZN8nG2QPT33lCATR0XJ8jG6CEE3mS9on8Gl UXxxgKI5tZciw== From: Marek Vasut To: openembedded-devel@lists.openembedded.org Cc: Geoff Parker , Khem Raj , Armin Kuster Subject: [meta-python][langdale][PATCH] python3-pillow: add tk to RDEPENDS ptest pkg only if x11 in DISTRO_FEATURES Date: Tue, 21 Feb 2023 21:21:29 +0100 Message-Id: <20230221202129.17282-1-marex@denx.de> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 21 Feb 2023 20:21:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/101199 From: Geoff Parker commit 7b0e71e00 ("python3-pillow: add ptest support", 2023-01-31) added tk to RDEPENDS:${PN}-ptest. Which cause this error on non x11 builds: ERROR: Nothing RPROVIDES 'tk' (but meta-openembedded/meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb RDEPENDS on or otherwise requires it) tk was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES) NOTE: Runtime target 'tk' is unbuildable, removing... Missing or unbuildable dependency chain was: ['tk'] NOTE: Runtime target 'iotmanager' is unbuildable, removing... Missing or unbuildable dependency chain was: ['iotmanager', 'python3-pillow', 'tk'] ERROR: Required build target 'update-runtime' has no buildable providers. Missing or unbuildable dependency chain was: ['update-runtime', 'runtime-image', 'iotmanager', 'python3-pillow', 'tk'] Add tk dependency only if DISTRO_FEATURES includes x11 (cherry picked from commit 6e8c90560e0aa8fe2ebfb791985cb75fd7490527) Signed-off-by: Geoff Parker Signed-off-by: Khem Raj --- Cc: Armin Kuster --- meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb b/meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb index 5a466778c..86705d2d8 100644 --- a/meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb +++ b/meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb @@ -45,7 +45,7 @@ RDEPENDS:${PN}-ptest += " \ ${PYTHON_PN}-pytest-timeout \ ${PYTHON_PN}-resource \ ${PYTHON_PN}-unixadmin\ - tk \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'tk', '', d)} \ " CVE_PRODUCT = "pillow"