All of lore.kernel.org
 help / color / mirror / Atom feed
From: akuster <akuster@mvista.com>
To: mingli.yu@windriver.com, yocto@yoctoproject.org
Subject: Re: [meta-security][PATCH] ecryptfs-utils: fix usrmerge install path
Date: Sun, 2 Sep 2018 07:51:13 -0700	[thread overview]
Message-ID: <49fff4dc-71e5-83d0-5be1-48dbc7d7e56b@mvista.com> (raw)
In-Reply-To: <1535435107-101357-1-git-send-email-mingli.yu@windriver.com>



On 08/27/2018 10:45 PM, mingli.yu@windriver.com wrote:
> From: Mingli Yu <Mingli.Yu@windriver.com>
>
> Update rootsbindir from /sbin to ${base_sbindir}
> to fix below do_install error when usrmerge
> enabled in DISTRO_FEATURES
> | chmod: cannot access '/poky-build/tmp-glibc/work/core2-64-wrs-linux/ecryptfs-utils/111-r0/image/usr/sbin/mount.ecryptfs_private': No such file or directory
>
> And pass "--with-pamdir=${base_libdir}/security"
> to configure script to fix below warning when
> usrmerge enabled in DISTRO_FEATURES
> | WARNING: ecryptfs-utils-111-r0 do_package: QA Issue: ecryptfs-utils: Files/directories were installed but not shipped in any package:
>   /lib64/security/pam_ecryptfs.so
merged
> Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
> ---
>  recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb b/recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb
> index f55b0c3..1f780f9 100644
> --- a/recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb
> +++ b/recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb
> @@ -29,6 +29,7 @@ EXTRA_OECONF = "\
>      --libdir=${base_libdir} \
>      --disable-pywrap \
>      --disable-nls \
> +    --with-pamdir=${base_libdir}/security \
>      "
>  
>  PACKAGECONFIG ??= "nss \
> @@ -43,12 +44,16 @@ do_configure_prepend() {
>      export NSS_LIBS="-L${STAGING_BASELIBDIR} -lssl3 -lsmime3 -lnss3 -lsoftokn3 -lnssutil3"
>      export KEYUTILS_CFLAGS="-I${STAGING_INCDIR}"
>      export KEYUTILS_LIBS="-L${STAGING_LIBDIR} -lkeyutils"
> +    sed -i -e "s;rootsbindir=\"/sbin\";rootsbindir=\"\${base_sbindir}\";g" ${S}/configure.ac
>  }
>  
>  do_install_append() {
>      chmod 4755 ${D}${base_sbindir}/mount.ecryptfs_private
> -    mkdir -p ${D}/${libdir}
> -    mv ${D}/${base_libdir}/pkgconfig ${D}/${libdir}
> +    # ${base_libdir} is identical to ${libdir} when usrmerge enabled
> +    if ! ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)}; then
> +        mkdir -p ${D}/${libdir}
> +        mv ${D}/${base_libdir}/pkgconfig ${D}/${libdir}
> +    fi
>      sed -i -e 's:-I${STAGING_INCDIR}::' \
>             -e 's:-L${STAGING_LIBDIR}::' ${D}/${libdir}/pkgconfig/libecryptfs.pc
>      sed -i -e "s: ${base_sbindir}/cryptsetup: ${sbindir}/cryptsetup:" ${D}${bindir}/ecryptfs-setup-swap



      reply	other threads:[~2018-09-02 14:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-28  5:45 [meta-security][PATCH] ecryptfs-utils: fix usrmerge install path mingli.yu
2018-09-02 14:51 ` akuster [this message]

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=49fff4dc-71e5-83d0-5be1-48dbc7d7e56b@mvista.com \
    --to=akuster@mvista.com \
    --cc=mingli.yu@windriver.com \
    --cc=yocto@yoctoproject.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 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.