* [meta-filesystem] aufs-utils: Replace install paths with appropriate bitbake environment
@ 2017-02-08 13:17 Amarnath Valluri
2017-02-22 14:55 ` Amarnath Valluri
0 siblings, 1 reply; 2+ messages in thread
From: Amarnath Valluri @ 2017-02-08 13:17 UTC (permalink / raw)
To: openembedded-devel
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@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/
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-filesystem] aufs-utils: Replace install paths with appropriate bitbake environment
2017-02-08 13:17 [meta-filesystem] aufs-utils: Replace install paths with appropriate bitbake environment Amarnath Valluri
@ 2017-02-22 14:55 ` Amarnath Valluri
0 siblings, 0 replies; 2+ messages in thread
From: Amarnath Valluri @ 2017-02-22 14:55 UTC (permalink / raw)
To: openembedded-devel
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@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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-22 14:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-08 13:17 [meta-filesystem] aufs-utils: Replace install paths with appropriate bitbake environment Amarnath Valluri
2017-02-22 14:55 ` Amarnath Valluri
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.