Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378537 - sys-devel/gdb looks for debug files in /usr/$(get_libdir) while they are installed in /usr/lib
Summary: sys-devel/gdb looks for debug files in /usr/$(get_libdir) while they are inst...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 16:12 UTC by Michał Górny
Modified: 2011-08-22 04:48 UTC (History)
1 user (show)

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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-09 16:12:32 UTC
As the summary states. FEATURES=splitdebug results in debuginfo installed to /usr/lib/debug, while gdb looks for it in /usr/$(get_libdir). If /usr/lib is not a symlink to lib64, gdb is unable to find debuginfo.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2011-08-10 00:41:43 UTC
Packages should be installing to $(get_libdir) then.

*** This bug has been marked as a duplicate of bug 293361 ***
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-10 06:41:34 UTC
It's not the same bug. As I see that bug is about packages which install into /usr/lib/debug/lib or */lib64. My bug is about the overall fact that all packages install into /usr/lib/debug while gdb seems to look in /usr/lib64/debug. And the former location seems more correct as that directory contains 32-bit libs as well (in /usr/lib64/debug/usr/lib32/*).
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-10 07:50:33 UTC
Not to mention the fix seems as simple as passing '--with-separate-debug-dir=/usr/lib/debug' in the ebuild.
Comment 4 Matt Turner gentoo-dev 2011-08-21 01:26:27 UTC
So the question is which is better:

install into (for an ABI whose LIBDIR is lib32)
 - /usr/lib32/debug/{bin,lib32,...}
 - /usr/lib/debug/{bin,lib32,...}
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-21 06:31:05 UTC
(In reply to comment #4)
> So the question is which is better:
> 
> install into (for an ABI whose LIBDIR is lib32)
>  - /usr/lib32/debug/{bin,lib32,...}

That would require patching gcc, I guess. It does support a single directory only. Unless we're requiring 32-bit users to use 32-bit gdb but I don't see a reason to.

>  - /usr/lib/debug/{bin,lib32,...}

That's what portage does now.
Comment 6 SpanKY gentoo-dev 2011-08-22 03:43:00 UTC
i dont think gcc would need anything.  splitdebug install is handled completely by portage in prepstrip.

since everything else atm assumes a hard coded path of /usr/lib/debug, ive simply official-ized this in gdb itself.  a sep discussion can be held on the gentoo-dev lists as to a better framework.

http://sources.gentoo.org/sys-devel/gdb/gdb-7.3.ebuild?r1=1.3&r2=1.4
http://sources.gentoo.org/sys-devel/gdb/gdb-9999.ebuild?r1=1.1&r2=1.2
Comment 7 SpanKY gentoo-dev 2011-08-22 04:48:02 UTC
(dont take my last comment to mean i care one way or the other and that i think we need to discuss this on the gentoo-dev ml to death.  the current system works fine by me and the alternative proposals dont really add anything imo.)