aufs-utils: Replace install paths with appropriate bitbake environment
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 <[email protected]>
--- meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb | 7 +++++++ 1 file changed, 7 insertions(+)
meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb +7 -0
@@ -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/
Signature · 1 line
2.7.4
ping - reminder request for feedback
Quoted 27 lines · Amarnath Valluri
autf-utils
Makefileis 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 <[email protected]>--- meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb | 7 +++++++ 1 file changed, 7 insertions(+)meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb +7
-0@@ -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/