Debug packages for Debian (-dbg)

My Debian Etch packages for sipXecs 3.8 beta are stabilizing so I had some time to actually look at the rest of the system.

I discovered a couple of cores from /usr/lib/sipx/sipxrls in /var/log/sipxpbx and fired up gdb which, alas, didn't provide too much information due to the stripped debug symbols. So I went and enabled the creation of -dbg packages with debug symbols for all sipXecs packages.

All I needed to do was to add a new package description to debian/control and add the debug package name to dh_strip in debian/rules.

Package: sipxacd-dbg
Architecture: any
Section: comm
Priority: optional
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: sipXecs sipXacd debug symbols
Debug symbols for sipXecs sipXacd
dh_strip --dbg-package=sipxacd-dbg

While I was at it I also enabled JAVAC_DEBUG=on for sipXconfig, as per the draft Debian Java policy.

mike – Sun, 2007 – 05 – 20 21:56