mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
8c13f318ae
commit
d582e406ba
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user