* Joey Hess <jo...@debian.org>, 2011-09-20, 14:11:
Here's a patch to make dh_strip use build-id if compat is >=9. Please note that this requires relatively new binutils to work as expected, but that shouldn't be a big deal, since it'll just fall back to the old path-based schema if build-id cannot be extracted.

Motivation is needing to support multiarch, I see..
http://lists.debian.org/debian-devel/2011/09/msg00375.html

upstream reference: http://fedoraproject.org/wiki/RolandMcGrath/BuildID

I don't understand the symlinks mentioned there:
/usr/lib/debug/.build-id/ab/cdef1234 -> ../../../../bin/foo
/usr/lib/debug/.build-id/ab/cdef1234.debug -> ../../usr/bin/foo.debug
Perhaps for backwards compatability to the old gdb,

The other advantage of such schema is that you know which files have debugging information just by looking at package contents.

although I don't know why the link to the binary would be needed.

This does not make sense to me either.

it seems we would not want to use these symlinks.

Agreed:
- gdb in stable already supports loading stuff from build-id directories. - Using the symlinks would defeat the purpose of helping to multi-archify -dbg packages. - If people complained that filenames in -dbg packages are not transparent enough, a script that would print mapping between binaries and their .debug counterparts could be easily written, to be included in devscripts.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to