summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mktemp/mktemp_1.7.bb
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-22 11:35:20 +0000
commitd582e406ba1b41e7cee69b1bc4af4b389a14ed80 (patch)
treebbcace9d1bdb0b73a3319034c8478cf2cdd15550 /meta/recipes-extended/mktemp/mktemp_1.7.bb
parent8c13f318ae6e435934047d09c5cd4206f12256f1 (diff)
downloadpoky-d582e406ba1b41e7cee69b1bc4af4b389a14ed80.tar.gz
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. (From OE-Core rev: 3a571f24b183ba0bb0795b9df2b2c9bad331d715) Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mktemp/mktemp_1.7.bb')
-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
20EXTRA_OECONF = "--with-libc" 20EXTRA_OECONF = "--with-libc"
21 21
22do_install_append () { 22do_install_append () {
23 install -d ${D}${base_bindir} 23 if [ "${base_bindir}" != "${bindir}" ] ; then
24 mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp 24 install -d ${D}${base_bindir}
25 rmdir ${D}${bindir} 25 mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp
26 rmdir ${D}${bindir}
27 fi
26} 28}
27 29
28ALTERNATIVE_${PN} = "mktemp" 30ALTERNATIVE_${PN} = "mktemp"