All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: Nam Ninh <nam.ninh@windriver.com>,
	<meta-virtualization@yoctoproject.org>
Subject: Re: [PATCH 1/2] openldap: fix various build failures
Date: Thu, 17 Sep 2015 11:21:02 -0400	[thread overview]
Message-ID: <55FADA5E.8090008@windriver.com> (raw)
In-Reply-To: <1442503038-14210-1-git-send-email-nam.ninh@windriver.com>

merged to master.

Bruce

On 15-09-17 11:17 AM, Nam Ninh wrote:
> Fix wrong hard-coded OPENLDAP_LIBEXECDIR that causes the following
> build failure:
>
> mv: cannot stat `<build_dir>/bitbake_build/tmp/work/core2-64-wrs-linux/openldap/2.4.39-r0/image/usr/lib64/openldap/slapd': No such file or directory
>
> The base openldat bb installs slapd under ${sbindir}, so LIBEXEC should be
> replaced with sbindir instead of OPENLDAP_LIBEXECDIR. The "run" directory
> is already removed in the base bb, so removing the second time causes this
> build failure:
>
> rmdir: failed to remove `<build_dir>/bitbake_build/tmp/work/core2-64-wrs-linux/openldap/2.4.39-r0/image/var/run': No such file or directory
>
> Finally, ops-base.ldif is needed in the initscript, so we also include it
> in the package.
>
> Signed-off-by: Nam Ninh <nam.ninh@windriver.com>
> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
> ---
>   meta-openstack/recipes-support/openldap/openldap_2.4.39.bbappend | 9 +++++----
>   1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/meta-openstack/recipes-support/openldap/openldap_2.4.39.bbappend b/meta-openstack/recipes-support/openldap/openldap_2.4.39.bbappend
> index 296e275..63f6064 100644
> --- a/meta-openstack/recipes-support/openldap/openldap_2.4.39.bbappend
> +++ b/meta-openstack/recipes-support/openldap/openldap_2.4.39.bbappend
> @@ -8,7 +8,7 @@ SRC_URI += "file://ops-base.ldif"
>   LDAP_DN ?= "dc=my-domain,dc=com"
>   LDAP_DATADIR ?= "/etc/openldap-data/"
>
> -OPENLDAP_LIBEXECDIR = "/usr/libexec"
> +OPENLDAP_LIBEXECDIR = "${libexecdir}"
>
>   EXTRA_OECONF += "--libexecdir=${OPENLDAP_LIBEXECDIR}"
>
> @@ -16,11 +16,12 @@ do_install_append() {
>       install -D -m 0755 ${WORKDIR}/initscript ${D}${sysconfdir}/init.d/openldap
>       sed -i -e 's/%DEFAULT_DN%/${LDAP_DN}/g' ${D}${sysconfdir}/init.d/openldap
>       sed -i -e 's#%LDAP_DATADIR%#${LDAP_DATADIR}#g' ${D}${sysconfdir}/init.d/openldap
> -    sed -i -e 's#%LIBEXEC%#${OPENLDAP_LIBEXECDIR}#g' ${D}${sysconfdir}/init.d/openldap
> +    # Base openldat bb installs slapd under ${sbin}
> +    sed -i -e 's#%LIBEXEC%#${sbindir}#g' ${D}${sysconfdir}/init.d/openldap
>
>       # This is duplicated in /etc/openldap and is for slapd
>       rm -f ${D}${localstatedir}/openldap-data/DB_CONFIG.example
> -    rmdir "${D}${localstatedir}/run"
> +    rm -rf "${D}${localstatedir}/run"
>       rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
>
>       # remove symlinks for backends, recreating in postinstall
> @@ -68,5 +69,5 @@ inherit update-rc.d
>   INITSCRIPT_NAME = "openldap"
>   INITSCRIPT_PARAMS = "defaults"
>
> -FILES_${PN} += "${OPENLDAP_LIBEXECDIR}/*"
> +FILES_${PN} += "${OPENLDAP_LIBEXECDIR}/* ${sysconfdir}/openldap/ops-base.ldif"
>   FILES_${PN}-dbg += "${OPENLDAP_LIBEXECDIR}/openldap/.debug ${OPENLDAP_LIBEXECDIR}/.debug"
>



           reply	other threads:[~2015-09-17 15:21 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1442503038-14210-1-git-send-email-nam.ninh@windriver.com>]

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=55FADA5E.8090008@windriver.com \
    --to=bruce.ashfield@windriver.com \
    --cc=meta-virtualization@yoctoproject.org \
    --cc=nam.ninh@windriver.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.