For availability in all stages, use rsync instead of cpio for bug #124638.
authorZac Medico <zmedico@gentoo.org>
Sat, 27 May 2006 00:09:31 +0000 (00:09 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 27 May 2006 00:09:31 +0000 (00:09 -0000)
svn path=/main/trunk/; revision=3420

bin/prepstrip

index 496415c9917c205874c07c80aeae86b8fbe4978f..a27b1c2608a8c57dbddd9b470113fa1ae19b20bd 100755 (executable)
@@ -40,7 +40,7 @@ save_elf_debug() {
                debugedit -b "${WORKDIR}" -d /usr/src/debug/${PF} -l "${T}"/debug.sources "${x}"
                if [[ -s ${T}/debug.sources ]] ; then 
                        [[ -d ${D}/usr/src/debug/${PF} ]] || mkdir -p "${D}/usr/src/debug/${PF}"
-                       cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | cpio -pdm0 "${D}/usr/src/debug/${PF}" )
+                       cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | rsync -a0 --files-from=- "${WORKDIR}/" "${D}/usr/src/debug/${PF}/" )
                fi
        fi
 }