On 2009-01-07 14:32 +0100, Vincent Lefevre wrote:

> On 2009-01-07 12:32:32 +0100, Sven Joachim wrote:
>
>> Not of much help, since debug symbols from Emacs itself are lacking and
>> gtk_main_iteration is called at seven places in the Emacs source code.
>
> Isn't there an emacs22-gtk-dbg package?

You can see for yourself: there isn't.  And there should at most be one
-dbg package for all the emacs22 flavors to avoid archive bloat; since
it might be useful, I've played around with creating one.  A debdiff is
attached, the size of the emacs22-dbg package is not so bad: 4.1
Megabyte for the .deb, 9.7 Megabyte for the installed files.

Note that I had to bump the debhelper compatibility level to 5 to make
"dh_strip --dbg-package" work properly.

Cheers,
       Sven

diff -u emacs22-22.2+2/debian/compat emacs22-22.2+2/debian/compat
--- emacs22-22.2+2/debian/compat
+++ emacs22-22.2+2/debian/compat
@@ -1 +1 @@
-4
+5
diff -u emacs22-22.2+2/debian/control emacs22-22.2+2/debian/control
--- emacs22-22.2+2/debian/control
+++ emacs22-22.2+2/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Rob Browning <r...@defaultvalue.org>
 Uploaders: Jerome Marant <jer...@debian.org>
-Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libgif-dev | 
libungif4-dev, libtiff4-dev | libtiff-dev, xaw3dg-dev, libpng12-dev, 
libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), quilt (>= 0.42-1), 
debhelper (>= 4), libxaw7-dev, sharutils, imagemagick, libgtk2.0-dev, 
libasound2-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64]
+Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libgif-dev | 
libungif4-dev, libtiff4-dev | libtiff-dev, xaw3dg-dev, libpng12-dev, 
libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), quilt (>= 0.42-1), 
debhelper (>= 5), libxaw7-dev, sharutils, imagemagick, libgtk2.0-dev, 
libasound2-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64]
 Standards-Version: 3.7.2
 
 Package: emacs
@@ -89,0 +90,10 @@
+
+Package: emacs22-dbg
+Section: devel
+Priority: extra
+Architecture: any
+Depends: emacs22 (= ${binary:Version}) | emacs22-gtk (= ${binary:Version}) | 
emacs22-nox (= ${binary:Version})
+Description: Debugging symbols for emacs22
+ GNU Emacs is the extensible self-documenting text editor.
+ This package contains the debugging symbols for Emacs. You only
+ need these if you want to generate debugging backtraces of Emacs.
diff -u emacs22-22.2+2/debian/rules emacs22-22.2+2/debian/rules
--- emacs22-22.2+2/debian/rules
+++ emacs22-22.2+2/debian/rules
@@ -851,7 +851,7 @@
 #      dh_install -a
        dh_installmenu -a
        dh_link -a
-       dh_strip -a
+       dh_strip -a --dbg-package=$(flavor)-dbg
        dh_compress -a
        dh_fixperms -a -X$(movemail_bin)
        dh_installdeb -a
diff -u emacs22-22.2+2/debian/control.in emacs22-22.2+2/debian/control.in
--- emacs22-22.2+2/debian/control.in
+++ emacs22-22.2+2/debian/control.in
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Rob Browning <r...@defaultvalue.org>
 Uploaders: Jerome Marant <jer...@debian.org>
-Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libgif-dev | 
libungif4-dev, libtiff4-dev | libtiff-dev, xaw3dg-dev, libpng12-dev, 
libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), quilt (>= 0.42-1), 
debhelper (>= 4), libxaw7-dev, sharutils, imagemagick, libgtk2.0-dev, 
libasound2-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64]
+Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libgif-dev | 
libungif4-dev, libtiff4-dev | libtiff-dev, xaw3dg-dev, libpng12-dev, 
libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), quilt (>= 0.42-1), 
debhelper (>= 5), libxaw7-dev, sharutils, imagemagick, libgtk2.0-dev, 
libasound2-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64]
 Standards-Version: 3.7.2
 
 Package: emacs
@@ -89,0 +90,10 @@
+
+Package: @deb_fla...@-dbg
+Section: devel
+Priority: extra
+Architecture: any
+Depends: @DEB_FLAVOR@ (= ${binary:Version}) | @deb_fla...@-gtk (= 
${binary:Version}) | @deb_fla...@-nox (= ${binary:Version})
+Description: Debugging symbols for @DEB_FLAVOR@
+ GNU Emacs is the extensible self-documenting text editor.
+ This package contains the debugging symbols for Emacs. You only
+ need these if you want to generate debugging backtraces of Emacs.
diff -u emacs22-22.2+2/debian/changelog emacs22-22.2+2/debian/changelog
--- emacs22-22.2+2/debian/changelog
+++ emacs22-22.2+2/debian/changelog
@@ -1,3 +1,10 @@
+emacs22 (22.2+2-5sven1) unstable; urgency=low
+
+  * Add emacs22-dbg package.
+  * Upgrade debhelper compatibility level to 5 for dh_strip.
+
+ -- Sven Joachim <svenj...@gmx.de>  Sat, 10 Jan 2009 20:07:18 +0100
+
 emacs22 (22.2+2-5) unstable; urgency=low
 
   * Add a build dependency on libasound2-dev which emacs22 is already

Reply via email to