summaryrefslogtreecommitdiffstats
path: root/meta/classes/libc-package.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/libc-package.bbclass')
-rw-r--r--meta/classes/libc-package.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass
index 733f26b85e..c9d81f0638 100644
--- a/meta/classes/libc-package.bbclass
+++ b/meta/classes/libc-package.bbclass
@@ -104,24 +104,24 @@ TMP_LOCALE="/tmp/locale${libdir}/locale"
104do_prep_locale_tree() { 104do_prep_locale_tree() {
105 treedir=${WORKDIR}/locale-tree 105 treedir=${WORKDIR}/locale-tree
106 rm -rf $treedir 106 rm -rf $treedir
107 mkdir -p $treedir/bin $treedir/lib $treedir/${datadir} $treedir/${libdir}/locale 107 mkdir -p $treedir/${base_bindir} $treedir/${base_libdir} $treedir/${datadir} $treedir/${libdir}/locale
108 cp -pPR ${PKGD}${datadir}/i18n $treedir/${datadir}/i18n 108 tar -cf - -C ${PKGD}${datadir} -ps i18n | tar -xf - -C $treedir/${datadir}
109 # unzip to avoid parsing errors 109 # unzip to avoid parsing errors
110 for i in $treedir/${datadir}/i18n/charmaps/*gz; do 110 for i in $treedir/${datadir}/i18n/charmaps/*gz; do
111 gunzip $i 111 gunzip $i
112 done 112 done
113 cp -pPR ${PKGD}${base_libdir}/* $treedir/lib 113 tar -cf - -C ${PKGD}${base_libdir} -ps . | tar -xf - -C $treedir/${base_libdir}
114 if [ -f ${STAGING_DIR_NATIVE}${prefix_native}/lib/libgcc_s.* ]; then 114 if [ -f ${STAGING_DIR_NATIVE}${prefix_native}/lib/libgcc_s.* ]; then
115 cp -pPR ${STAGING_DIR_NATIVE}/${prefix_native}/lib/libgcc_s.* $treedir/lib 115 tar -cf - -C ${STAGING_DIR_NATIVE}/${prefix_native}/${base_libdir} -ps libgcc_s.* | tar -xf - -C $treedir/${base_libdir}
116 fi 116 fi
117 install -m 0755 ${PKGD}${bindir}/localedef $treedir/bin 117 install -m 0755 ${PKGD}${bindir}/localedef $treedir/${base_bindir}
118} 118}
119 119
120do_collect_bins_from_locale_tree() { 120do_collect_bins_from_locale_tree() {
121 treedir=${WORKDIR}/locale-tree 121 treedir=${WORKDIR}/locale-tree
122 122
123 mkdir -p ${PKGD}${libdir} 123 mkdir -p ${PKGD}${libdir}
124 cp -pPR $treedir/${libdir}/locale ${PKGD}${libdir} 124 tar -cf - -C $treedir/${libdir} -ps locale | tar -xf - -C ${PKGD}${libdir}
125} 125}
126 126
127inherit qemu 127inherit qemu