[yocto] [meta-cloud-services][PATCH] glusterfs: support usrmerge

Bruce Ashfield bruce.ashfield at gmail.com
Tue Sep 3 12:54:50 PDT 2019


merged

Bruce

On Fri, Aug 30, 2019 at 2:13 AM <changqing.li at windriver.com> wrote:
>
> From: Changqing Li <changqing.li at windriver.com>
>
> Signed-off-by: Changqing Li <changqing.li at windriver.com>
> ---
>  recipes-extended/glusterfs/glusterfs.inc | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/recipes-extended/glusterfs/glusterfs.inc b/recipes-extended/glusterfs/glusterfs.inc
> index 40a3922..66e2bf1 100644
> --- a/recipes-extended/glusterfs/glusterfs.inc
> +++ b/recipes-extended/glusterfs/glusterfs.inc
> @@ -64,9 +64,11 @@ do_install_append() {
>      install -m 0755 ${WORKDIR}/glusterd.init \
>          ${D}${sysconfdir}/init.d/glusterd
>
> -    # Mount looks for mount.* plug-ins in /sbin; fix it with a symlink.
> -    mkdir -p ${D}${base_sbindir}
> -    (cd ${D}${base_sbindir}; ln -s ..${sbindir}/mount.glusterfs .)
> +    if ! ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)}; then
> +        # Mount looks for mount.* plug-ins in /sbin; fix it with a symlink.
> +        mkdir -p ${D}${base_sbindir}
> +        (cd ${D}${base_sbindir}; ln -s ..${sbindir}/mount.glusterfs .)
> +    fi
>
>      # These are plug-ins, so they don't need libtool configs.
>      find ${D}${libdir}/glusterfs/${PV} -name '*.la' -exec rm -f '{}' ';'
> --
> 2.7.4
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


More information about the yocto mailing list