diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-09-29 19:12:47 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-09-29 19:12:47 +0000 |
commit | 69afaa9e8d2cbe2f910301731eb7d557e833ad24 (patch) | |
tree | ee9275bc645a4f81795d79fae62c2f186e2261ae | |
parent | 1df6d9a69ac665d561043cd744d4c36028254b94 (diff) | |
download | portage-69afaa9e8d2cbe2f910301731eb7d557e833ad24.tar.gz portage-69afaa9e8d2cbe2f910301731eb7d557e833ad24.tar.bz2 portage-69afaa9e8d2cbe2f910301731eb7d557e833ad24.zip |
Move installed sources into ${CATEGORY} subdirectories in order to prevent collisions for bug #149491.
svn path=/main/trunk/; revision=4559
-rwxr-xr-x | bin/prepstrip | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/prepstrip b/bin/prepstrip index a498b182c..75d973e07 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -27,11 +27,13 @@ save_elf_debug() { local y="${D}usr/lib/debug/${x:${#D}}.debug" if hasq installsources ${FEATURES} && [ -x /usr/bin/debugedit ] ; then - debugedit -b "${WORKDIR}" -d /usr/src/debug/${PF} -l "${T}"/debug.sources "${x}" + local sources_dir=/usr/src/debug/${CATEGORY}/${PF} + debugedit -b "${WORKDIR}" -d "${sources_dir}" \ + -l "${T}"/debug.sources "${x}" if [[ -s ${T}/debug.sources ]] ; then - [[ -d ${D}/usr/src/debug/${PF} ]] || mkdir -p "${D}/usr/src/debug/${PF}" + [[ -d ${D}${sources_dir} ]] || mkdir -p "${D}${sources_dir}" cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | \ - rsync -aL0 --files-from=- "${WORKDIR}/" "${D}/usr/src/debug/${PF}/" ) + rsync -aL0 --files-from=- "${WORKDIR}/" "${D}${sources_dir}/" ) fi fi |