summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2021-06-02 16:14:55 +0200
committerKhem Raj <raj.khem@gmail.com>2021-06-04 07:08:13 -0700
commit1b26441296f942bcebbc48a23148b44bc0340bb5 (patch)
treea5340dfc9b1e6e77fa0a8bf7df419b56bd2b2726
parent187beae6bc6351e9a09c48c5cb5b871daf736040 (diff)
downloadmeta-openembedded-1b26441296f942bcebbc48a23148b44bc0340bb5.tar.gz
libgpiod: fix RRECOMMENDS for python bindings
RRECOMMENDS for the python module doesn't work because it specifies the module itself as its own RRECOMMENDS. Fix it to recommend the python package if python3 is in PACKAGECONFIG for the main package. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
index e1c0e8922a..43264782e2 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
+++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb
@@ -32,8 +32,8 @@ FILES_${PN}-tools = "${bindir}/*"
32FILES_libgpiodcxx = "${libdir}/libgpiodcxx.so.*" 32FILES_libgpiodcxx = "${libdir}/libgpiodcxx.so.*"
33FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*.so" 33FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*.so"
34FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a" 34FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
35RRECOMMENDS_PYTHON = "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '',d)}" 35
36RRECOMMENDS_${PN}-python += "${RRECOMMENDS_PYTHON}" 36RRECOMMENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '', d)}"
37 37
38PACKAGECONFIG_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}" 38PACKAGECONFIG_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}"
39 39