summaryrefslogtreecommitdiffstats
path: root/meta/classes/libc-package.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-02-08 22:16:41 -0600
committerRichard Purdie <rpurdie@linux.intel.com>2011-02-09 22:46:30 +0000
commitd3d236b2bf2784d7454dcb7fce595b6aac6967cd (patch)
tree0c8f5f7a6b8ce9e6a3b20650bc2bd8f739d51da9 /meta/classes/libc-package.bbclass
parent3e6d91ece0556fa1c9c84bef60678d8148b789f4 (diff)
downloadpoky-d3d236b2bf2784d7454dcb7fce595b6aac6967cd.tar.gz
Misc hard link fixes
I searched the various classes and looked for copies that should attempt to preserve hardlinks. This fixes the majority of this copies by switching to using tar as the copy method. It also has the side effect of preserving sparse files. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
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