summaryrefslogtreecommitdiffstats
path: root/bin/prepstrip
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-23 23:21:28 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-23 23:21:28 +0000
commit5d0f42d74de3e311998dc6b225f30d06b37f704f (patch)
tree3003129aae72a26f0eb82f963e969ee6b8d2878b /bin/prepstrip
parent627b80e005628d6773b3de6622792525e847ab7e (diff)
downloadportage-5d0f42d74de3e311998dc6b225f30d06b37f704f.tar.gz
portage-5d0f42d74de3e311998dc6b225f30d06b37f704f.tar.bz2
portage-5d0f42d74de3e311998dc6b225f30d06b37f704f.zip
Filter paths matching '/<built-in>$' that come from debugedit. Thanks to Ed Catmur for this patch from bug #165342.
svn path=/main/branches/2.1.2/; revision=6061
Diffstat (limited to 'bin/prepstrip')
-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