Skip to contentSkip to conversation

libgpiod: fix QA error in ptest RDEPENDS

PATCH New Xiangyu Chen 1 participant 1 message Apr 9, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libgpiod: fix QA error in ptest RDEPENDS

From: Xiangyu Chen <[email protected]>

The bash in ptest RDEPENDS would cause following QA error:

ERROR: QA Issue: lib32-libgpiod package lib32-libgpiod-ptest-dev - suspicious values 'bash-dev' in RRECOMMENDS [multilib]

Add a ptest enable dependency to avoid this QA error happens.

---
Changes:
v1->v2: merge bash and shunit2 checking into 1 line

---
 meta-oe/recipes-support/libgpiod/libgpiod_2.1.1.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-support/libgpiod/libgpiod_2.1.1.bb +1 -2
index c62c9a3567..4c13d67eba 100644
@@ -21,8 +21,7 @@ FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*"
 FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h"
 
 RDEPENDS:${PN}-ptest += " \
-    bash \
-    ${@bb.utils.contains('PTEST_ENABLED', '1', 'shunit2', '', d)} \
+    ${@bb.utils.contains('PTEST_ENABLED', '1', 'shunit2 bash', '', d)} \
 "
 RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim kernel-module-configfs"
 
Signature · 1 line
2.25.1