diff options
author | Amarnath Valluri <amarnath.valluri@intel.com> | 2017-02-08 11:15:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-22 11:35:20 +0000 |
commit | d582e406ba1b41e7cee69b1bc4af4b389a14ed80 (patch) | |
tree | bbcace9d1bdb0b73a3319034c8478cf2cdd15550 /meta/recipes-extended/mktemp | |
parent | 8c13f318ae6e435934047d09c5cd4206f12256f1 (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-extended/mktemp/mktemp_1.7.bb | 8 |
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 | |||
20 | EXTRA_OECONF = "--with-libc" | 20 | EXTRA_OECONF = "--with-libc" |
21 | 21 | ||
22 | do_install_append () { | 22 | do_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 | ||
28 | ALTERNATIVE_${PN} = "mktemp" | 30 | ALTERNATIVE_${PN} = "mktemp" |