summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-23 23:20:32 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-23 23:20:32 +0000
commitcf8c2092beef7260b0ac33ec123cda81c72e89f5 (patch)
treef0e0d1298484e1b15d29b0e52ec33c5a6049caf2 /bin
parent2edf3d59b5dc09b2f53ab3e1e1ecb1afb64c13bf (diff)
downloadportage-cf8c2092beef7260b0ac33ec123cda81c72e89f5.tar.gz
portage-cf8c2092beef7260b0ac33ec123cda81c72e89f5.tar.bz2
portage-cf8c2092beef7260b0ac33ec123cda81c72e89f5.zip
Filter paths matching '/<built-in>$' that come from debugedit. Thanks to Ed Catmur for this patch from bug #165342.
svn path=/main/trunk/; revision=6060
Diffstat (limited to 'bin')
-rwxr-xr-xbin/prepstrip3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index 1ff4c0d28..d903a649e 100755
--- a/bin/prepstrip
+++ b/bin/prepstrip
@@ -32,7 +32,8 @@ save_elf_debug() {
-l "${T}"/debug.sources "${x}"
if [[ -s ${T}/debug.sources ]] ; then
[[ -d ${D}${sources_dir} ]] || mkdir -p "${D}${sources_dir}"
- cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | \
+ grep -zv '/<built-in>$' "${T}"/debug.sources | \
+ (cd "${WORKDIR}"; LANG=C sort -z -u | \
rsync -rtL0 --files-from=- "${WORKDIR}/" "${D}${sources_dir}/" )
fi
fi