[oe-commits] [meta-openembedded] 05/21: libgpiod: fix packaging of tools

git at git.openembedded.org git at git.openembedded.org
Sat Feb 24 04:47:06 UTC 2018


This is an automated email from the git hooks/post-receive script.

armin_kuster pushed a commit to branch master-next
in repository meta-openembedded.

commit d95320bd1e97332e89dc9c4160674ed362069f56
Author: Martin Hundebøll <mnhu at prevas.dk>
AuthorDate: Fri Jan 26 13:35:58 2018 +0100

    libgpiod: fix packaging of tools
    
    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 <mnhu at prevas.dk>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 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 6aa27ad..b2e3bae 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}"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list