From 7e1c37053bfe78d636f0a22ae3b609eba47c45d2 Mon Sep 17 00:00:00 2001
From: Jan Luebbe <jluebbe@debian.org>
Date: Sun, 24 May 2009 15:18:25 +0200
Subject: [PATCH 2/2] don't strip the binary, put debug symbols in -dbg package

---
 debian/control |    8 ++++++++
 debian/rules   |    2 +-
 src/Makefile   |    1 -
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index b428042..a3783df 100644
--- a/debian/control
+++ b/debian/control
@@ -21,3 +21,11 @@ Description: HeeksCAD is a free, open source, CAD application written by Dan Hee
  .
   Homepage: http://code.google.com/p/heekscad/
 
+Package: heekscad-dbg
+Architecture: any
+Section: debug
+Depends: heekscad (= ${binary:Version})
+Priority: extra
+Description: Debugging info for heekscad
+ This package contains the debugging symbols for heekscad.
+
diff --git a/debian/rules b/debian/rules
index c3b2751..ffb243d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -81,7 +81,7 @@ binary-arch: build install
 #	dh_installinfo
 	dh_installman
 	dh_link
-	dh_strip
+	dh_strip --dbg-package=heekscad-dbg
 	dh_compress
 	dh_fixperms
 #	dh_perl
diff --git a/src/Makefile b/src/Makefile
index ba19e10..ce35369 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -327,7 +327,6 @@ install:
 	test -z "$(DESTDIR)$(HEEKSCADDIR)/icons" || $(mkdir_p) "$(DESTDIR)$(HEEKSCADDIR)/icons"
 	test -z "$(DESTDIR)$(PIXMAPSDIR)" || $(mkdir_p) "$(DESTDIR)$(PIXMAPSDIR)"
 	test -z "$(DESTDIR)$(APPSDIR)" || $(mkdir_p) "$(DESTDIR)$(APPSDIR)"
-	strip $(EXECUTABLE)
 	cp $(EXECUTABLE) $(DESTDIR)$(BINDIR)/
 	cp ../bitmaps/*.png $(DESTDIR)$(HEEKSCADDIR)/bitmaps/
 	cp ../bitmaps/*.svg $(DESTDIR)$(HEEKSCADDIR)/bitmaps/
-- 
1.6.3.1


