debuginfo rpm packages are very useful in the sense they provide debugging symbols for the programs you want to analyze. I found a quite bizarre bug on the virtualization rawhide packages, and wanted to get a stack trace to analyze, but didn’t have debuginfo packages readily available, so I learned to generate my own packages. As lazy as I am, this blog is my notebook for small things I know I will need again. So here are the steps:
* Install the package redhat-rpm-config
* Get the source rpm for the package you want to build stuff from
* install the source package
rpm -ivh foo.src.rpm
* Go to root’s rpmbuild directory
* build the spec using
rpmbuild -ba foo.spec
It’s done
More small recipes will follow!
1 response so far ↓
Carl G // August 28, 2009 at 8:15 pm |
So far I’m unsuccessful at building debuginfo packages. There’s a note at https://bugzilla.redhat.com/show_bug.cgi?id=192422 saying you need a %build section in the .spec file but no luck so far. I’m building from scratch, no src RPMs.