ostree: switch from BBFILE_COLLECTIONS to PTEST_ENABLED for ptest support
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
@@ -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
Martin Jansa
NAKNAK, this change is wrong, see how it looks in newer meta-oe:
https://git.openembedded.org/meta-openembedded/commit/?id=f6df0263f768108db5c5b8c098ef0d4c699841a4
Quoted 37 lines · akash hadke
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.Signed-off-by Mikko Rapeli <[email protected]>Signed-off-by akash hadke <[email protected]>--- 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@@ -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