diff options
| author | Joe Slater <joe.slater@windriver.com> | 2023-07-12 14:43:36 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-07-13 07:22:17 -0700 |
| commit | 9904bd6a24ed9327bd05926ba28f9c2ea49e34dd (patch) | |
| tree | 8d1d6162f18d3d2be5fd425f2418aa295dde8bfe | |
| parent | e3606c223e8195dc57a41c64ca670958f1809d6f (diff) | |
| download | meta-openembedded-9904bd6a24ed9327bd05926ba28f9c2ea49e34dd.tar.gz | |
libgpiod: modify RDEPENDS for ptest
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 <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.inc b/meta-oe/recipes-support/libgpiod/libgpiod.inc index a2d1f57a8b..cb19bc5fb8 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod.inc +++ b/meta-oe/recipes-support/libgpiod/libgpiod.inc | |||
| @@ -34,7 +34,7 @@ FILES:${PN}-tools += " \ | |||
| 34 | FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*" | 34 | FILES:libgpiodcxx = "${libdir}/libgpiodcxx.so.*" |
| 35 | 35 | ||
| 36 | RRECOMMENDS:${PN}-ptest += "coreutils" | 36 | RRECOMMENDS:${PN}-ptest += "coreutils" |
| 37 | RDEPENDS:${PN}-ptest += "bats" | 37 | RDEPENDS:${PN}-ptest += "${@bb.utils.contains('PTEST_ENABLED', '1', 'bats', '', d)}" |
| 38 | 38 | ||
| 39 | do_install:append() { | 39 | do_install:append() { |
| 40 | rm -f ${D}${bindir}/gpiod-test | 40 | rm -f ${D}${bindir}/gpiod-test |
