eglibc: avoid copying ${libdir} twice if it's the same as ${base_libdir}
PATCH 1/1 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.
Signed-off-by Phil Blundell <[email protected]>
--- meta/recipes-core/eglibc/eglibc-package.inc | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-core/eglibc/eglibc-package.inc +4 -2
@@ -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}
Signature · 1 line
1.7.4.1
Richard Purdie
AppliedQuoted 7 lines · Phil Blundell
Otherwise the following "mv ${libdir}/gconv" fails because the destination has already been created.
Signed-off-by Phil Blundell <[email protected]>--- meta/recipes-core/eglibc/eglibc-package.inc | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
Merged to master, thanks.
Richard