libgpiod: modify RDEPENDS for ptest
PATCH 1/1 libgpiod: modify RDEPENDS for ptest
From: Joe Slater <[email protected]>
The current use of RDEPENDS to add a dependency on bats results in the QA warning/error
lib32-libgpiod package lib32-libgpiod-ptest-dev - suspicious values
'bats-dev' in RRECOMMENDS [multilib]
when building lib32-libgpiod with ptest not enabled. We add the dependency only if ptest is enabled.
Signed-off-by Joe Slater <[email protected]>
Signed-off-by Khem Raj <[email protected]>
(cherry picked from commit 9904bd6a24ed9327bd05926ba28f9c2ea49e34dd)
--- meta-oe/recipes-support/libgpiod/libgpiod.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/libgpiod/libgpiod.inc +1 -1
@@ -38,7 +38,7 @@ FILES:${PN}-ptest += " \ FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*" RRECOMMENDS:${PN}-ptest += "coreutils" -RDEPENDS:${PN}-ptest += "bats" +RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PTEST_ENABLED', '1', 'bats', '', d)}" do_install_ptest() { install -d ${D}${PTEST_PATH}/tests/
Signature · 1 line
2.25.1