[oe] [meta-filesystem] aufs-utils: Replace install paths with appropriate bitbake environment

Amarnath Valluri amarnath.valluri at intel.com
Wed Feb 22 14:55:05 UTC 2017


ping - reminder request for feedback

On 08.02.2017 15:17, Amarnath Valluri wrote:
> autf-utils Makefile is using hardcoded /bin, /sbin paths, instead we should
> respect the bitbake environment. This change makes the recipe portable to
> environments where ${base_bindir} != /bin or ${base_sbindir} != /sbin.
>
> Signed-off-by: Amarnath Valluri <amarnath.valluri at intel.com>
> ---
>   meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
> index 8980980..3d59e50 100644
> --- a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
> +++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
> @@ -18,6 +18,13 @@ PV = "3.14+git${SRCPV}"
>   
>   S = "${WORKDIR}/git"
>   
> +do_configure_prepend() {
> +   # Replace sbin,bin paths with bitbake environment
> +   sed -i -e 's;install_sbin: Tgt = ${DESTDIR}/sbin;install_sbin: Tgt = ${DESTDIR}/${base_sbindir};' \
> +          -e 's;install_ubin: Tgt = ${DESTDIR}/usr/sbin;install_sbin: Tgt = ${DESTDIR}/${bindir};' \
> +	  ${S}/Makefile
> +}
> +
>   do_configure_append () {
>       install -d ${S}/include/linux/
>       cp ${WORKDIR}/aufs_type.h ${S}/include/linux/




More information about the Openembedded-devel mailing list