summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/libldb
diff options
context:
space:
mode:
authorJens Rehsack <rehsack@gmail.com>2015-11-19 20:45:56 +0100
committerJoe MacDonald <joe_macdonald@mentor.com>2016-01-04 12:58:10 -0500
commit60699c92e17ef124307aded87d8e9bfe55460d22 (patch)
tree8487a0c03b6401e2a3562876b10e8977bfcacda1 /meta-networking/recipes-support/libldb
parent9546714d2464b950e91d0eaf330865e482450113 (diff)
downloadmeta-openembedded-60699c92e17ef124307aded87d8e9bfe55460d22.tar.gz
libldb: allow chosing ldap dependency instead of hard requiring it
Add a patch to remove the check for openldap but mark prove result negative unless ldap dependency is enabled explicitely. Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/libldb')
-rw-r--r--meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch13
-rw-r--r--meta-networking/recipes-support/libldb/libldb_1.1.17.bb6
2 files changed, 17 insertions, 2 deletions
diff --git a/meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch b/meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch
new file mode 100644
index 000000000..8ab094fa7
--- /dev/null
+++ b/meta-networking/recipes-support/libldb/libldb/avoid-openldap-unless-wanted.patch
@@ -0,0 +1,13 @@
1--- a/wscript 2015-11-18 12:43:33.000000000 +0100
2+++ b/wscript 2015-11-18 12:46:25.000000000 +0100
3@@ -58,9 +58,7 @@
4 if conf.env.standalone_ldb:
5 conf.CHECK_XSLTPROC_MANPAGES()
6
7- # we need this for the ldap backend
8- if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'):
9- conf.env.ENABLE_LDAP_BACKEND = True
10+ conf.env.ENABLE_LDAP_BACKEND = False
11
12 # we don't want any libraries or modules to rely on runtime
13 # resolution of symbols
diff --git a/meta-networking/recipes-support/libldb/libldb_1.1.17.bb b/meta-networking/recipes-support/libldb/libldb_1.1.17.bb
index e587858f5..2e708a524 100644
--- a/meta-networking/recipes-support/libldb/libldb_1.1.17.bb
+++ b/meta-networking/recipes-support/libldb/libldb_1.1.17.bb
@@ -3,14 +3,16 @@ HOMEPAGE = "http://ldb.samba.org"
3SECTION = "libs" 3SECTION = "libs"
4LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+" 4LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
5 5
6DEPENDS += "libtdb libtalloc libtevent popt" 6DEPENDS += "libbsd libtdb libtalloc libtevent popt"
7RDEPENDS_${PN} += "openldap"
8RDEPENDS_pyldb += "python" 7RDEPENDS_pyldb += "python"
9 8
10SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ 9SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
11 file://do-not-import-target-module-while-cross-compile.patch \ 10 file://do-not-import-target-module-while-cross-compile.patch \
12 " 11 "
13 12
13PACKAGECONFIG[ldap] = ",,openldap"
14SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'ldap', '', 'file://avoid-openldap-unless-wanted.patch', d)}"
15
14LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \ 16LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \
15 file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780 \ 17 file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780 \
16 file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891" 18 file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"