Skip to contentSkip to conversation

ostree: switch from BBFILE_COLLECTIONS to PTEST_ENABLED for ptest support

PATCH New akash hadke 1 participant 1 message Jun 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ostree: switch from BBFILE_COLLECTIONS to PTEST_ENABLED for ptest support

From: Mikko Rapeli <[email protected]>

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.

---
 meta-oe/recipes-extended/ostree/ostree_2020.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/ostree/ostree_2020.3.bb +1 -1
index 8640745..e13bb1f 100644
@@ -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"
Signature · 1 line
2.7.4