provide trivial method to have debug symbol packages built in PPAs

Bug #782236 reported by James Hunt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

Ubuntu is constantly attempting to attract new developers. As such, I think it would be a great idea to be able to have a very simple way to build not only a binary PPA package for consumption by all, but also correspnding debug packages.

This would help the new dev who has created a PPA and has started to build a community around their new package, since it will make debugging bug reports easier for them.

Crucial to this idea is documentation explaining:

1) How to enable the additional -dbg package build for their PPA.
2) How to install the debug package ("apt-get install mypackage-dbg").
3) How to run gdb and see the full source ("apt-get source mypackage && gdb /usr/bin/myapp core")

Revision history for this message
James Hunt (jamesodhunt) wrote :

After a lot of hacking around, the best info I found to create debug packages in my PPA was from the debian wiki:

http://wiki.debian.org/DebugPackage

The key info:

1) Update your package to build a debug package alongside a stripped package:

$ pkg=mypackage
$ cd mypackage-source-directory
$ cat >>debian/rules<<EOT

.PHONY: override_dh_strip
override_dh_strip:
        dh_strip --dbg-package=${pkg}-dbg

override_dh_auto_install:
        dh_auto_install --destdir=debian/$pkg

override_dh_installdocs:
        dh_installdocs --link-doc=$pkg
EOT

2) Build a source package:

$ bzr bd -S

3) Upload to your PPA:

dput ppa:userid/ppa-name mypackage-<version>_source.changes

summary: - provide trivial method to have debug symbol packages build in PPAs
+ provide trivial method to have debug symbol packages built in PPAs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.