RPM

Comment 18 for bug 633667

Revision history for this message
In , Matt (matt-redhat-bugs) wrote :

(In reply to comment #3)
> Duplication of source files can even be avoided by putting them
> in a -source package that is required by all the -debuginfo packages.

To clarify, I was suggesting putting all the debug source for a component in one package to keep matters simple. That would mean not getting the download savings for debug source. But it seems that the source tends to be smaller than the symbols, at least uncompressed. Here's the rather hacky shell command I used to check the sizes:

$ p=glibc-debuginfo; for c in /usr/lib/debug /usr/src/debug; do \
    du -c $(rpm -qvl $p | sed -nre "s,^-.*($c.*)\$,\\1,p") | tail -n 1; done
62040 total # symbols
39892 total # source

Here's the OpenSUSE patch for debug source (pretty straightforward changes to %debug_package and find-debuginfo.sh):

https://build.opensuse.org/package/view_file?file=debugsource-package.diff&package=rpm&project=openSUSE%3AFactory