eglibc: avoid copying ${libdir} twice if it's the same as ${base_libdir}

Otherwise the following "mv ${libdir}/gconv" fails because the destination
has already been created.

(From OE-Core rev: f825e4ca619d3dc9c650343327a753eeb4a50e51)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Phil Blundell 2011-07-08 20:48:39 +01:00 committed by Richard Purdie
parent 104a1c2db9
commit ab7530ab38
1 changed files with 4 additions and 2 deletions

View File

@ -91,9 +91,11 @@ inherit libc-common
do_install_locale () {
dest=${D}/${includedir}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}
install -d ${dest}${base_libdir} ${dest}${bindir} ${dest}${libdir} ${dest}${datadir}
cp -fpPR ${D}${base_libdir}/* ${dest}${base_libdir}
if [ "${base_libdir}" != "${libdir}" ]; then
cp -fpPR ${D}${base_libdir}/* ${dest}${base_libdir}
fi
mv ${D}${bindir}/localedef ${dest}${bindir}
mv ${D}${libdir}/gconv ${dest}${libdir}
mv ${D}${libdir}/gconv ${dest}${libdir}
cp -fpPR ${D}${libdir}/* ${dest}${libdir}
mv ${D}${datadir}/i18n ${dest}${datadir}
cp -fpPR ${D}${datadir}/* ${dest}${datadir}