[arch-dev-public] [RFC] Debug packages and debuginfod
foxboron at archlinux.org
Mon Nov 23 15:52:21 UTC 2020
Give me cake, or give me debug symbols.
- Some comedian, probably.
For quite a few years people has wanted debug packages, but there has never
really been any progress towards them. Pacman got support almost 10 years ago,
and Allan wrote a POC for dbscripts in 2015.
In recent years this has largely been a discussion how large such a repository
would become, and how to distribute it. But since we don't have any numbers
things have more or less stalled with things being discussed, but never worked
on. Dropping an imaginary 100 GB on some poor mirror hosts doesn't seem quite
However, things has been been progressing for the better when it comes to the
distribution of debug symbols that can hopefully make this entire process easier
for us. debuginfod has been introduced into elfutils which allows a standardized
API for fetching remote debug symbols . Eli and I have have been chatting
a little with upstream since February to ensure we could get our package
format supported. This was fairly straight forward with an example package
from us and things have been working nicely.
Patches in elfutils:
We have been distributing debuginfod since 0.178-1 and debuginfod support came
to gdb with the 10.1 release, which is why I'm picking up on this now :)
We did some testing with the debuginfod support with Stapelberg during the
summer, and it works fairly well . Eli has also started writing up the
support for splitting out the debug packages into a separate pool . I have
since merged some of Elis dbscripts patches to the POC git migration server to
The idea is to allow uploads of debug packages to repos.a.o into a separate
package pool, have a public reachable debuginfod and then consider if we
want/need debug package distribution. We can then check the new mirror
requirements, and give a clear heads up to any potential mirror admin while
providing debug packages. I think this is a reasonable compromise for everyone.
OpenSUSE already has one such server as an example .
There isn't any one way we have to progress on this, but my proposed timeline is
- Add a debuginfod role to the infrastructure repository.
- Test and deploy the dbscripts support for debug packages.
- Add support to devtools for uploading debug packages.
- Announce debuginfod support.
- Discuss how to distribute the packages.
I anticipate we can start a new discussion for the last point as I think there
is some issues we should think about in terms of archiving debug packages and so
Is there any questions, concerns or suggestions for this proposed
If anyone is interested trying out debug packages and debuginfod, on the POC git
migration server, please do poke me!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the arch-dev-public