[Rpm-ecosystem] Improving debuginfo packages
Mark Wielaard
mjw at redhat.com
Fri May 20 14:53:09 UTC 2016
Hi Michael,
On Fri, 2016-05-20 at 16:43 +0200, Michael Schroeder wrote:
> On Fri, May 20, 2016 at 04:36:08PM +0200, Mark Wielaard wrote:
> > - Dependencies by Build-Id. Debian debs provide the Build-Id for each
> > ELF file (executable, shared library, etc) in the package. And similar
> > for their debug packages. This makes it easy request the matching
> > debuginfo package for a main package. I think it make sense to somehow
> > add that to rpm too. Then you could easily request a package or debug
> > package based on build-id directly. Currently that is possible if you
> > have a file list and can resolve a request for
> > the /usr/lib/debug/.build-id/XX/YYYYY.debug file.
> > But that is somewhat cumbersome.
>
> SUSE automatically adds "debuginfo(build-id) = XXX" provides via the
> following fileattr scriptlet:
>
> #!/bin/sh
>
> while read instfile ; do
> case $instfile in
> */usr/lib/debug/.build-id/*.debug)
> if [ -f "$instfile" ] ; then
> BUILDID=$(echo $instfile | sed -ne 's|.*/usr/lib/debug/.build-id/\([0-9a-f]*\)/\([0-9a-f]*\)\.debug|\1\2|p')
> echo "debuginfo(build-id) = $BUILDID"
> fi
> ;;
> esac
> done
Nice. Would it make sense to submit that to upstream rpm so other
distros can easily adopt the same?
> > - Suppress or split build sources from debuginfo package.
> > Not all debuginfo consumers also need the full build sources.
> > So it might make sense to split off the build sources into
> > a separate -debugsrc package (which the -debuginfo could recommend).
>
> SUSE already does that, but we use "-debugsource" as suffix.
Do you have a pointer to the config/patch that does this in SUSE?
And same question as above. Could it be submitted upstream?
Thanks,
Mark
More information about the Rpm-ecosystem
mailing list