tags 606229 + patch
thanks

On 2010-12-07 16:31 +0100, Florian Ragwitz wrote:

> Package: emacs
> Version: 23.2+1-5.1
> Severity: wishlist
>
> Emacs crashes are annoying, and figuring out the issue that caused it
> can be hard at times. One thing making it much harder than it could be
> is the absence of debugging symbols, making backtrace from running
> within a debugger or using a coredump much less useful than they could
> be,
>
> I'd really appreciate an emacs23-dbg package containing those symbols,
> saving me from going through the trouble of compiling all of emacs
> myself only to be able to debug its crashes.

Here is a patch that adds such a package:

--8<---------------cut here---------------start------------->8---
diff -Nru emacs23-23.2+1/debian/control emacs23-23.2+1/debian/control
--- emacs23-23.2+1/debian/control       2010-11-03 20:00:05.000000000 +0100
+++ emacs23-23.2+1/debian/control       2010-12-08 11:50:05.000000000 +0100
@@ -79,3 +79,13 @@
  GNU Emacs is the extensible self-documenting text editor.
  This package contains the elisp sources for the convenience of users,
  saving space in the main package for small systems.
+
+Package: emacs23-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: emacs23 (= ${binary:Version}) | emacs23-lucid (= ${binary:Version})
+         | emacs23-nox (= ${binary:Version}), ${misc:Depends}
+Description: The GNU Emacs editor (debugging symbols)
+ GNU Emacs is the extensible self-documenting text editor.
+ This package contains the debugging symbols useful for debugging Emacs.
diff -Nru emacs23-23.2+1/debian/control.in emacs23-23.2+1/debian/control.in
--- emacs23-23.2+1/debian/control.in    2010-11-03 19:05:42.000000000 +0100
+++ emacs23-23.2+1/debian/control.in    2010-12-08 11:37:59.000000000 +0100
@@ -79,3 +79,13 @@
  GNU Emacs is the extensible self-documenting text editor.
  This package contains the elisp sources for the convenience of users,
  saving space in the main package for small systems.
+
+Package: @deb_fla...@-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: @DEB_FLAVOR@ (= ${binary:Version}) | @deb_fla...@-lucid (= 
${binary:Version})
+         | @deb_fla...@-nox (= ${binary:Version}), ${misc:Depends}
+Description: The GNU Emacs editor (debugging symbols)
+ GNU Emacs is the extensible self-documenting text editor.
+ This package contains the debugging symbols useful for debugging Emacs.
diff -Nru emacs23-23.2+1/debian/rules emacs23-23.2+1/debian/rules
--- emacs23-23.2+1/debian/rules 2010-08-14 23:36:55.000000000 +0200
+++ emacs23-23.2+1/debian/rules 2010-12-08 11:52:18.000000000 +0100
@@ -722,6 +722,9 @@
 override_dh_fixperms:
        dh_fixperms -X$(movemail_bin)
 
+override_dh_strip:
+       dh_strip -a --dbg-package=$(flavor)-dbg
+
 override_dh_clean: $(persistent_autogen_files)
        rm -rf \
          debian/build-x \
--8<---------------cut here---------------end--------------->8---

Cheers,
       Sven



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to