[oe] [meta-oe][PATCH v2 3/3] libldb: explain dependency to openldap better

Jens Rehsack rehsack at gmail.com
Thu Nov 12 16:18:11 UTC 2015


Since openldap is a "used when there" dependency, explain how to
get rid of it. To ensure successive builds have identical results,
ensure openldap is - in case it's wanted - available for configure
stage, not at packaging stage.

Signed-off-by: Jens Rehsack <sno at netbsd.org>
---
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
index 44f061a..128daf7 100644
--- a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
+++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
@@ -4,9 +4,14 @@ SECTION = "libs"
 LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
 
 DEPENDS += "libtdb talloc libtevent popt"
-RDEPENDS_${PN} += "libtevent popt libtalloc openldap"
+RDEPENDS_${PN} += "libtevent popt libtalloc"
 RDEPENDS_pyldb += "python libtdb libtalloc"
 
+# openldap is a "used when there" dependency without the opportunity
+# to disable via option
+# when this is the only recipe using openldap, remove it in .bbappend
+DEPENDS += "openldap"
+
 SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
            file://do-not-import-target-module-while-cross-compile.patch \
           "
-- 
2.4.9 (Apple Git-60)

-- 
Jens Rehsack - rehsack at gmail.com




More information about the Openembedded-devel mailing list