Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392609 - portage tries to put debug informations into ROOT not EROOT with FEATURES=split-debug
Summary: portage tries to put debug informations into ROOT not EROOT with FEATURES=spl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-11-30 13:54 UTC by Justin Lecher (RETIRED)
Modified: 2011-12-14 18:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2011-11-30 13:54:17 UTC
When using splitdebug portage tries to place the debug information into /usr/lib/debug instead of EPREFIX/usr/lib/debug

* /usr/lib/debug/.build-id/0f/6fd6d112223fc064e18f216e3fabeb7ac31e5e
 * /usr/lib/debug/.build-id/0f/f822f4a5938d8270f6442041be677f8cbce0f9.debug
 * /usr/lib/debug/.build-id/0f/6fd6d112223fc064e18f216e3fabeb7ac31e5e.debug
 * /usr/lib/debug/.build-id/0f/f822f4a5938d8270f6442041be677f8cbce0f9
 * /usr/lib/debug/.build-id/12
 * /usr/lib/debug/.build-id/12/4f28bfda4c2e1d413427030c168370b98f90f8.debug
 * /usr/lib/debug/.build-id/12/4f28bfda4c2e1d413427030c168370b98f90f8
 * /usr/lib/debug/.build-id/1e
 * /usr/lib/debug/.build-id/1e/63cf9bdad0cc083631542522427a48ddd4081e
 * /usr/lib/debug/.build-id/1e/63cf9bdad0cc083631542522427a48ddd4081e.debug
 * ERROR: sci-chemistry/nmrpipe-6.0.2011.286.17.18 failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix
 * 
 * Call stack:
 *   misc-functions.sh, line 1748:  Called install_qa_check
 *   misc-functions.sh, line  210:  Called install_qa_check_prefix
 *   misc-functions.sh, line  800:  Called die
 * The specific snippet of code:
 *   			die "Aborting due to QA concerns: there are files installed outside the prefix"
Comment 1 Fabian Groffen gentoo-dev 2011-12-02 17:56:27 UTC
I think this should do it

diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip
index 077656f..0305f0a 100755
--- a/bin/ebuild-helpers/prepstrip
+++ b/bin/ebuild-helpers/prepstrip
@@ -108,7 +108,7 @@ save_elf_debug() {
 
        local inode=$(inode_var_name "$x")
        if [[ -n ${!inode} ]] ; then
-               ln "${D}usr/lib/debug/${!inode:${#D}}.debug" "$y"
+               ln "${ED}usr/lib/debug/${!inode:${#D}}.debug" "$y"
        else
                eval $inode=\$x
                if [[ -e ${T}/prepstrip.split.debug ]] ; then
@@ -129,7 +129,7 @@ save_elf_debug() {
                        | awk '$NF ~ /GNU/ { getline; printf $2$3$4$5; getline; print $2 }')
        fi
        if [[ -n ${buildid} ]] ; then
-               local buildid_dir="${D}usr/lib/debug/.build-id/${buildid:0:2}"
+               local buildid_dir="${ED}usr/lib/debug/.build-id/${buildid:0:2}"
                local buildid_file="${buildid_dir}/${buildid:2}"
                mkdir -p "${buildid_dir}"
                ln -s "../../${x:${#D}}.debug" "${buildid_file}.debug"
Comment 2 Fabian Groffen gentoo-dev 2011-12-14 18:32:54 UTC
this has been released by now