Re: [meta-oe][dunfell][PATCH] ostree: switch from BBFILE_COLLECTIONS to PTEST_ENABLED for ptest support


Martin Jansa
 


On Tue, Jun 8, 2021 at 6:57 AM akash hadke <akash.hadke@...> wrote:
From: Mikko Rapeli <mikko.rapeli@...>

Just including a layer, like meta-python, should not change the way the recipes
compile. Instead, if ptest support is enabled, then require the python dependency
for running ptests in ostree. Fixes yocto-check-layer error.

Signed-off-by: Mikko Rapeli <mikko.rapeli@...>
Signed-off-by: akash hadke <akash.hadke@...>
---
 meta-oe/recipes-extended/ostree/ostree_2020.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/ostree/ostree_2020.3.bb b/meta-oe/recipes-extended/ostree/ostree_2020.3.bb
index 8640745..e13bb1f 100644
--- a/meta-oe/recipes-extended/ostree/ostree_2020.3.bb
+++ b/meta-oe/recipes-extended/ostree/ostree_2020.3.bb
@@ -176,7 +176,7 @@ RDEPENDS_${PN}-ptest += " \
     util-linux \
     xz \
     ${PN}-trivial-httpd \
-    ${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-python', 'python3-pyyaml', '', d)} \
+    ${@bb.utils.contains('PTEST_ENABLED', '1', 'python3-pyyaml', '', d)} \
     ${@bb.utils.contains('PACKAGECONFIG', 'gjs', 'gjs', '', d)} \
 "
 RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-utils glibc-localedata-en-us"
--
2.7.4




Join openembedded-devel@lists.openembedded.org to automatically receive all group messages.