From c09fcd618e3e6cb38748de96d8e6864086559d52 Mon Sep 17 00:00:00 2001 From: Martin Hundebøll Date: Fri, 26 Jan 2018 13:35:58 +0100 Subject: libgpiod: fix packaging of tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default packaging adds files from ${bindir} to the primary package, so that following packages don't see any files in ${bindir}. This causes the libgpiod-tools package to empty, as it is appended (+=) to PACKAGES. Change the assignment to PACKAGES to a prepend (=+) to populate the libgpiod-tools package with the gpio{detect,find,get,info,mon,set} executables. To avoid missing tools for existing installations of libgpiod, the libgpiod-tools package is setup as a recommendation by libgpiod when the tools package config is enabled. Signed-off-by: Martin Hundebøll Signed-off-by: Armin Kuster --- meta-oe/recipes-support/libgpiod/libgpiod.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.bb b/meta-oe/recipes-support/libgpiod/libgpiod.bb index 6aa27ad574..b2e3bae69b 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod.bb @@ -18,6 +18,9 @@ PACKAGECONFIG ?= "tools" PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev" PACKAGECONFIG[tools] = "--enable-tools,--disable-tools," -PACKAGES += " ${PN}-tools" +PACKAGES =+ " ${PN}-tools" FILES_${PN}-tools = "${bindir}/*" + +RRECOMMENDS_TOOLS = "${@bb.utils.contains('PACKAGECONFIG', 'tools', '${PN}-tools', '',d)}" +RRECOMMENDS_${PN} += "${RRECOMMENDS_TOOLS}" -- cgit 1.2.3-korg