Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: BrunoVernay <brunovern.a@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 2/3] Modules require .so libraries to be present
Date: Sun, 31 Jan 2016 18:19:02 +0100	[thread overview]
Message-ID: <1454260743-18688-2-git-send-email-BrunoVern.a@gmail.com> (raw)
In-Reply-To: <1454260743-18688-1-git-send-email-BrunoVern.a@gmail.com>

Signed-off-by: BrunoVernay <BrunoVern.a@gmail.com>
---
 meta-oe/recipes-support/openldap/openldap_2.4.42.bb | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/meta-oe/recipes-support/openldap/openldap_2.4.42.bb b/meta-oe/recipes-support/openldap/openldap_2.4.42.bb
index caca16b..5f71930 100644
--- a/meta-oe/recipes-support/openldap/openldap_2.4.42.bb
+++ b/meta-oe/recipes-support/openldap/openldap_2.4.42.bb
@@ -197,6 +197,11 @@ do_install_append() {
     install -d ${D}${systemd_unitdir}/system/
     install -m 0644 ${WORKDIR}/slapd.service ${D}${systemd_unitdir}/system/
     sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/*.service
+    
+    # OpenLDAP will search for .so and .la if no extension is specified
+    sed -e 's/# modulepath/modulepath/' \
+        -e 's/# moduleload\s*back_bdb.*/moduleload    back_mdb/' \
+        -i ${D}${sysconfdir}/openldap/slapd.conf
 }
 
 INITSCRIPT_PACKAGES = "${PN}-slapd"
@@ -208,8 +213,19 @@ SYSTEMD_AUTO_ENABLE_${PN}-slapd ?= "disable"
 
 PACKAGES_DYNAMIC += "^${PN}-backends.* ^${PN}-backend-.*"
 
+# The modules require their .so to be dynamicaly loaded
+INSANE_SKIP_${PN}-backend-dnssrv  += "dev-so"
+INSANE_SKIP_${PN}-backend-ldap    += "dev-so"
+INSANE_SKIP_${PN}-backend-meta    += "dev-so"
+INSANE_SKIP_${PN}-backend-mdb     += "dev-so"
+INSANE_SKIP_${PN}-backend-monitor += "dev-so"
+INSANE_SKIP_${PN}-backend-null    += "dev-so"
+INSANE_SKIP_${PN}-backend-passwd  += "dev-so"
+INSANE_SKIP_${PN}-backend-shell   += "dev-so"
+
 python populate_packages_prepend () {
     backend_dir    = d.expand('${libexecdir}/openldap')
+    do_split_packages(d, backend_dir, 'back_([a-z]*)\.so$', 'openldap-backend-%s', 'OpenLDAP %s backend', prepend=True, extra_depends='', allow_links=True)
     do_split_packages(d, backend_dir, 'back_([a-z]*)\-.*\.so\..*$', 'openldap-backend-%s', 'OpenLDAP %s backend', extra_depends='', allow_links=True)
 
     metapkg = "${PN}-backends"
-- 
2.5.0



  reply	other threads:[~2016-01-31 17:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-31 17:19 [PATCH 1/3] Fixes runtime error when loading modules BrunoVernay
2016-01-31 17:19 ` BrunoVernay [this message]
2016-01-31 17:19 ` [PATCH 3/3] Creates a coherent and working default configuration BrunoVernay
2016-02-01 15:19 ` [PATCH 1/3] Fixes runtime error when loading modules Martin Jansa
2016-02-09 14:00   ` Bruno Vernay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454260743-18688-2-git-send-email-BrunoVern.a@gmail.com \
    --to=brunovern.a@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox