summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmarnath Valluri <amarnath.valluri@intel.com>2017-02-08 11:15:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-21 22:43:01 +0000
commit3a571f24b183ba0bb0795b9df2b2c9bad331d715 (patch)
tree67407fb5a8affa7587bfbf49e310a117ed048d48
parenteebf0028f5cb30468fe5cd273a01b004a3936e21 (diff)
downloadopenembedded-core-3a571f24b183ba0bb0795b9df2b2c9bad331d715.tar.gz
openembedded-core-3a571f24b183ba0bb0795b9df2b2c9bad331d715.tar.bz2
openembedded-core-3a571f24b183ba0bb0795b9df2b2c9bad331d715.zip
mktemp: Move installed files only when needed
Move binary(ies) only when ${base_bindir} != ${bindir}. When usrmerge is enabled they both can point to same location. Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
-rw-r--r--meta/recipes-extended/mktemp/mktemp_1.7.bb8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-extended/mktemp/mktemp_1.7.bb b/meta/recipes-extended/mktemp/mktemp_1.7.bb
index 9accc6eed6..e8ae5c6b72 100644
--- a/meta/recipes-extended/mktemp/mktemp_1.7.bb
+++ b/meta/recipes-extended/mktemp/mktemp_1.7.bb
@@ -20,9 +20,11 @@ inherit autotools update-alternatives
EXTRA_OECONF = "--with-libc"
do_install_append () {
- install -d ${D}${base_bindir}
- mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp
- rmdir ${D}${bindir}
+ if [ "${base_bindir}" != "${bindir}" ] ; then
+ install -d ${D}${base_bindir}
+ mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp
+ rmdir ${D}${bindir}
+ fi
}
ALTERNATIVE_${PN} = "mktemp"