provide trivial method to have debug symbol packages built in PPAs
Bug #782236 reported by
James Hunt
This bug report is a duplicate of:
Bug #747558: PPAs should create backtracable packages.
Edit
Remove
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")
To post a comment you must log in.
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/DebugPackag e
The key info:
1) Update your package to build a debug package alongside a stripped package:
$ pkg=mypackage source- directory
$ cd mypackage-
$ cat >>debian/rules<<EOT
.PHONY: override_dh_strip ${pkg}- dbg
override_dh_strip:
dh_strip --dbg-package=
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