From 69afaa9e8d2cbe2f910301731eb7d557e833ad24 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 29 Sep 2006 19:12:47 +0000 Subject: [PATCH] Move installed sources into ${CATEGORY} subdirectories in order to prevent collisions for bug #149491. svn path=/main/trunk/; revision=4559 --- bin/prepstrip | 8 +++++--- 1 file 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 -- 2.26.2