Skip to contentSkip to conversation

libgpiod: modify RDEPENDS for ptest

PATCH Slater, Joseph 1 participant 1 message Jul 12, 2023 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Wrong list -- ignore Joe

Quoted 43 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Joe Slater via lists.openembedded.org
Sent: Wednesday, July 12, 2023 2:33 PM
To: [email protected]
Cc: Slater, Joseph <[email protected]>; MacLeod, Randy <[email protected]>
Subject: [oe-core][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.

---
 meta-oe/recipes-support/libgpiod/libgpiod.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes- renamed from meta-oe/recipes-support/libgpiod/libgpiod.inc +0 -0

support/libgpiod/libgpiod.inc
index a2d1f57a8b..cb19bc5fb8 100644

meta-oe/recipes-support/libgpiod/libgpiod.inc +0 -0
@@ -34,7 +34,7 @@ FILES:${PN}-tools += " \  FILES:libgpiodcxx =

"${libdir}/libgpiodcxx.so.*"

RRECOMMENDS:${PN}-ptest += "coreutils"

meta-oe/recipes-support/libgpiod/libgpiod.inc +1 -1
-RDEPENDS:${PN}-ptest += "bats"
+RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PTEST_ENABLED', '1', 'bats',

'', d)}"

 do_install:append() {
     rm -f ${D}${bindir}/gpiod-test

--
2.25.1